Hi,

Thanks for advices. But i have still one question to clarify. Let's assume, 
that i have simple node visitor, which traverses my terrain nodes - something 
like terrain->accept( myvisitor ). It calls myvisitor::apply( osg::Geode& geode 
) method.
Inside i want to create intersection visitor, which should check only given 
geode. In my current soultion i'm checkin intersections as:

picker = new osgUtil::LineSegmentIntersector( osgUtil::Intersector::WINDOW, x, 
y );
osgUtil::IntersectionVisitor iv( picker.get() );

and then it is passed to view->getCamera()->accept( iv );

Is it possible to change this code fragment to check only given geode as 
parameter, not all visible nodes on the scene? Is it enough to add NodeMask and 
TraversalMask to IntersectionVisitor to force checking only given geode?


Thank you!

Cheers,
Robert

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to