[osg-users] Display one scene, pick from another one

Antoine Rennuit antoinerennuit at hotmail.com
Fri Sep 8 04:50:47 PDT 2017


Hi all,

I handle a scene which is very dense (~4M triangles) and displayed with triangles only (no line, nor points). I would like to select the vertices of this scene though (not the displayed triangles).

I thought of reusing the same osg::Geometry twice in the graph and with different states (PolygonMode::FILL and PolygonMode::POINT to name them).

1) This does not seem to work, as I seem to still have triangles returned by the pick, not points
2) I need to swap osg::Geometry, just for the pick and I have not managed to find a way through

Any idea?

Thanks a lot for reading (and if you can help, it is even better ;)).

Antoine.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71659#71659







More information about the osg-users mailing list