Re: [osg-users] Realtime Pointpicking

2016-06-29 Thread Julien Valentin
Hi Daniel, A more complex and efficient way to achieve that would be to use Render2Texture approach: -Add a Camera attached to a lower resolution osg::Image -render your point cloud using a vertex shader that use gl_VertexID to affect a custom color -do your picking in the resulting image the

Re: [osg-users] Realtime Pointpicking

2016-06-24 Thread Robert Osfield
Hi Daniel, The PolytopeIntersector is the simplest route. If you want to make things more efficient then you may well need to come up with a custom approach. The LineSegmentIntersector is able to take advantage of KdTree graphs if they have been built for your scene graph and enables O(logn)

[osg-users] Realtime Pointpicking

2016-06-24 Thread Daniel Neos
Hi, I have a Pickhandler and a dynamically changing scene which consists only of a geometry node. To be more specific, the geometry node represents a point cloud consisting over ~10 vertices. Using a line intersector makes it nearly impossible to get an intersection, but the Intersector I