Hi Manu, You need to match the NodeMask bits to the TraversalMask bits for each of the NodeVisitors. The osg::Camera has setCullMask method that you can use for the case of the cull traversal. Note Camera inherits from osg::CullSettings which is where setCullMask is inherited from.
Robert. On Nov 22, 2007 11:54 AM, Emmanuel Roche <[EMAIL PROTECTED]> wrote: > hi again, > > > Just something about the nodemasks: suppose i want to stop drawing an > object, all the examples I've seen say claeraly that I have to set > node->setNodeMask(0x0), but suppose now that I really want to change only > one bit in this mask: where should I look for the bit field against which > this mask is checked ? (and the overriding bit field I guess...) > > I though only the first bit was checked, but it is not the case, as an > object with the mask 0x00000010 is also drawn for instance... > > Manu. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

