Thank you everyone and Happy New Year!

The Thanks scores for 2019 are in, make sure to read all about last year's highlights -> here <- !

Import ply and obj as PointCloud3D (WIP)

User avatar
SirEdric
Fusionator
Posts: 2165
Joined: Tue Aug 05, 2014 10:04 am
Answers: 7
Real name: Eric Westphal
Been thanked: 17 times
Contact:

Import ply and obj as PointCloud3D (WIP)

#1

Post by SirEdric » Thu Jan 16, 2020 3:12 am

Hey there.

Another spinoff....:-)
This comp script allows to import ply (ASCII) files as PointClouds in Fusion.
Only the vertices will be imported, no faces. (Hence pointcloud...:-))
In addition to that, it will also bring in the vertices of an obj file as a PointCloud.
se_plycloud_05.png
What's the reason for all that?
Well....first off Fusion can't read ply natively and for the currrent stuff I'm working on
I only get pure ply pointclouds without any faces anyways. so PointCloud is just sufficient.

Use a Replicate3D to scatter objects over the Cloud and/or use them as ParticleEmitters further downstream,
and/or...well...I bet someone will come up with other usecases...:-)
se_plycloud_bunny.png
This is an early version with a crappy dialogue, but does it's job.

Enjoy.

Eric.
se_plycloud.lua
You do not have the required permissions to view the files attached to this post.

User avatar
SirEdric
Fusionator
Posts: 2165
Joined: Tue Aug 05, 2014 10:04 am
Answers: 7
Real name: Eric Westphal
Been thanked: 17 times
Contact:

Re: Import ply and obj as PointCloud3D (WIP)

#2

Post by SirEdric » Thu Jan 16, 2020 5:17 am

And while we're at it....added a (very basic and experimental!) ply-to-obj converter for those rare cases when there are actually faces defined in the ply.
se_plycloud_075.png
se_plycloud.lua
You do not have the required permissions to view the files attached to this post.

User avatar
SirEdric
Fusionator
Posts: 2165
Joined: Tue Aug 05, 2014 10:04 am
Answers: 7
Real name: Eric Westphal
Been thanked: 17 times
Contact:

Re: Import ply and obj as PointCloud3D (WIP)

#3

Post by SirEdric » Thu Jan 16, 2020 6:23 am

Version 0.8 is now about 100 times faster on larger ply files!
se_plycloud.lua
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 3944
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 12
Location: Vancouver, Canada
Been thanked: 13 times
Contact:

Re: Import ply and obj as PointCloud3D (WIP)

#4

Post by SecondMan » Thu Jan 16, 2020 1:29 pm

Now that's optimising! :)

Love these little spin-offs - fun to see Fusion used in so many different ways.

User avatar
SirEdric
Fusionator
Posts: 2165
Joined: Tue Aug 05, 2014 10:04 am
Answers: 7
Real name: Eric Westphal
Been thanked: 17 times
Contact:

Re: Import ply and obj as PointCloud3D (WIP)

#5

Post by SirEdric » Thu Jan 16, 2020 2:12 pm

SecondMan wrote:
Thu Jan 16, 2020 1:29 pm
fun to see Fusion used in so many different ways.
Fusion rules, mate. Fusion just friggin rules!
:cheers: