best way to display pointclouds
best way to display pointclouds
Hello all, I was wondering, what is the best (read: fastest) way to display about a million 3D points? I'm trying to calibrate a model of a robot with its physical version, and it would be really handy to be able to overlay the physical one onto the model to see where they don't line up.
Re: best way to display pointclouds
The fastest standard way is to use a PointSetFactory to create an instance of PointSet which you can then put into a scene graph component. See this tutorial for how to do that.
For rendering purposes make sure that the Appearance attribute CommonAttributes.SPHERES_DRAW is set to false. Use the attribute CommonAttributes.POINT_SIZE to control the size of the displayed points. See this tutorial for more details on the default point shader.
For rendering purposes make sure that the Appearance attribute CommonAttributes.SPHERES_DRAW is set to false. Use the attribute CommonAttributes.POINT_SIZE to control the size of the displayed points. See this tutorial for more details on the default point shader.
jReality core developer
Re: best way to display pointclouds
That worked wonderfully, thanks! For future readers, the other thing I had to set was VERTEX_DRAW to true.
-
- Posts: 48
- Joined: Mon 16. May 2011, 16:29
Re: best way to display pointclouds
If you display a PointSet and SPHERES_DRAW=false then the jogl3-backend uses displacement mapped sprites, i.e. looks like spheres but is billboard and thus rather fast.