Hi Yura, The scene graph state works top down, so parent state affects the children. If you set parents NodeMask to 0 then it's children will not be traversed. This is fundamental to the design of the OSG and one of it's great strengths.
The real question I'd have is what you mean by hiding the parent as it's only leaf nodes that contain osg::Geometry/Drawble that can be rendered, internal nodes of the scene graph can't ever be seen themselves graphically. Given this is really hard to know what you mean, as it doesn't make any sense in the context of how the OSG works. Could you take a step back and describe what you are trying to achieve rather than how you are trying to achieve it, a higher level explanation will enable us how you should try and achieve it. Robert. On 26 April 2017 at 07:11, Yura Ivanov <de...@protonmail.com> wrote: > Hi, > > How can I hide parent only? Children must stay visible. I tried to do it by > setting zero nodemask to parent - it hides with children. > > Thank you! > > Cheers, > Yura > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=70838#70838 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org