[osg-users] osg::LOD node not being considered in compute intersections

Julien Valentin julienvalentin51 at gmail.com
Sat Feb 23 13:22:26 PST 2019


have you implemented a visitor with traversalmode set to TRAVERSE_ACTIVE_CHILDREN ?

Josiah425 wrote:
> Hi,
> 
> I have a scenegraph which carries an LOD top level node with 2 children.
> 
> Each child has it's own range values, 0 to 5000 and 5001 to 25000.
> 
> I have an osgGA::GUIActionAdapter computing the intersections on a mouse click area in a handle function.  It recognizes any node in the LOD that has a minimum range value of 0.  Anything over 0 and it isn't considered by compute intersections.  It displays properly in the scene graph when within the ranges, so what is happening?  Why can't I click on something outside the range?
> 
> For more detail,  I have geodes under the two children in the LOD node.  These geodes hold an svg image drawable and displays those in the scene.  I want to select the svg nodes when they are visible.
> 
> 
> 
> 
> Thank you!
> 
> Cheers,
> Josiah


------------------------
Twirling twirling twirling toward freedom

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







More information about the osg-users mailing list