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.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to