Hi Roman,
During traversal the cull traversal mask is AND'd with the node mask
and if it returns a non zero value then the node and its subgraph are
traversed, so as you've set it 0x2 & 0x2 will pass. Set the traversal
mask to ~0x2 and you should get the result you want.
On 5/17/07, Roman Grigoriev <[EMAIL PROTECTED]> wrote:
Hi guys!
Node masking don't work at all for me
I setup node like this:
osg::Group* heli=(osg::Group*) osgDB::readNodeFile("ah64d.flt");
heli->setDataVariance(osg::Object::DYNAMIC);
heli->setNodeMask(0x2);
osg::PositionAttitudeTransform* patTarget = new
osg::PositionAttitudeTransform();
patTarget->addChild(heli);
targetDataType* targetData = new targetDataType(patTarget);
patTarget->setUserData( targetData );
root->addChild(patTarget);
patTarget->setUpdateCallback(new updateTargetCB(tIDevState));
and viewer like this:
int inheritanceMask =
(osg::CullSettings::VariablesMask::ALL_VARIABLES &
~osg::CullSettings::VariablesMask::CULL_MASK);
viewer.getCamera()->setInheritanceMask(inheritanceMask);
viewer.getCamera()->setCullMask(0x2);
but I still see my node. How can I disable this node?
Could you please tell me what I'm doing wrong?
Thanx in advance
Bye
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/