[osg-users] Using NodeMask...

Vincent Bourdier vincent.bourdier at gmail.com
Mon Mar 3 07:11:37 PST 2008


Hi,

I am working on a hide/show function, and I've read some examples concerning
NodeMask.

It looks like a good and easy solution to do that, but I don't understand
why it doesn't work
on my application :


    int inheritanceMask =
        (osg::CullSettings::ALL_VARIABLES &
         ~osg::CullSettings::CULL_MASK);

    camera->setInheritanceMask(inheritanceMask);
    camera->setCullMask(0x1);


...

earthGroup->setNodeMask(0x1);

With this code I hope that the earthGroup will be alone on the view, or the
opposite (invisible).

Why it doesn't work ? is it the more easy way to make a hide/show function ?

Thanks.

Vincent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080303/477d9b89/attachment.htm 


More information about the osg-users mailing list