enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
244 stars 33 forks source link

LIVENODING Point Cloud Import into Geometry Nodes using SVerchok and Photogrammetry Addon #1305

Open enzyme69 opened 2 years ago

enzyme69 commented 2 years ago

sverchok #geometrynodes #pointcloud

In this episode, I am doing some explanation on latest Point Cloud situation in Blender. This problem is as old as time of Blender development: It is known that Blender import PLY does not come with Vertex Color data if the mesh does not have polygon face. We want to be able to just import Point and custom color data for Point.

You can use MeshLab or CloudCompare to mesh the point cloud and then export with vertex color for Blender that will work. But we just want the raw point cloud data to render with color.

Second fact with Blender 3.1 and 3.2 we finally have Point Info node, which currently does not have COLOR OUT yet, but should be coming soon!

The method I am using here is using Photogrammetry Addon SBCV and SV nodes simple node processing trickery to pass the data into Geometry Nodes. SV is doing some cool things here which transfer SBCV custom property "COLORS" into normal vertex color data.

Once it is stored as Vertex Color, it will hopefully can transfer into Point Color for render as spheres. Or if you actually instance geometry mesh into the points, Geometry Nodes can pass it into Cycles to render each instance with the color from point cloud.

enzyme69 commented 2 years ago
Screen Shot 2022-03-19 at 9 58 24 am