This blender file helps you load in point clouds with animation nodes and provides a starting point to render your own beautiful point clouds in Blender.
A script in Animation Nodes loads the point cloud from a .ply
file and checks if normals, colors, or scalars are available. It then instances spheres at the point locations and lets the user link the attributes from the ply file to attributes of the spheres (such as color used in shading). You can change the sphere into anything you'd like and expand the script to load from numpy files or other data types that store point clouds.
- Download the Animation Nodes plugin and install the plugin in Blender (Edit > Preferences... > Add-ons > Instal...). You can learn more about Animation Nodes in this tutorial series.
- Install plyfile in your python installation:
pip install plyfile
- Open the
pointcloud_animationnodes.blend
file in Blender and adjust theRead ply
script so that it has access to your python site packages folder (see screenshot, the script panel in bottom right of the screen). If you don't know what folder to use, runpython -m site
in you console. - Input the file path of your ply file in the
Input Path
frame in Animation Nodes (screenshot: panel in the bottom left). This must be an absolute path. - You can edit colors in the shading tab in Blender.
- You should now see something like the following screen:
Spot model by Keenan Crane.