[osg-users] Different views hide/show different nodes shared scene graph

Catalin Flower inbox.icf at gmail.com
Thu Apr 18 03:09:05 PDT 2019

Hi Robert,

To hide the objects in views I found this solution:

getViewer()->getUpdateVisitor()->setTraversalMask(0b101); // skip update for hidden objects
getViewer()->getCamera()->setCullMask(0b101); // cull objects that are hidden

This is the solutions that I found for the views. Is this the way to do it?

Regarding your solution for the other issue, picking objects, it works by passing the traversal mask to that bool 	computeIntersections (float x....  osg::Node::NodeMask traversalMask) like you have said.

Thank you!


Read this topic online here:

More information about the osg-users mailing list