Support for rendering large point clouds
Closed this issue · 3 comments
Hi,
This seems like a great visualization tool for 3D problems! It would be nice to have some support for rendering large colored and lit point clouds. I tried adding spheres to a scene (one per point) but this slowed down very quickly for even a moderately large number of spheres (~10-50k). It would be nice to have support for rendering very large point clouds!
We absolutely support this! We have some examples in the tutorial for point clouds:
C++ tutorial:
scenepic/src/examples/tutorial.cpp
Lines 106 to 129 in f695a29
Python tutorial (also in the Jupyter notebook of course):
scenepic/test/test_tutorial.py
Lines 49 to 59 in f695a29
The key thing is to use the enable_instancing
function on the mesh. It should be able to support as much as your graphics card can handle. Please let me know if this resolves your issue.
Thanks! This does work for me. I somehow missed the tutorial. I couldn't find a link in the main documentation. It would be really great to have a more fleshed out tutorial in the main documentation, but I'm sure this will happen eventually. Thanks for the cool library!
Great feedback! We'll work on making this more front and center in our documentation, as it is a very common use case. Thanks!