[osg-users] Show children with hidden parent

2017-04-25 Thread Yura Ivanov
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 ___

Re: [osg-users] Show children with hidden parent

2017-04-26 Thread Robert Osfield
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

Re: [osg-users] Show children with hidden parent

2017-04-26 Thread Yura Ivanov
Hi, We have scene with a lot of objects (1_Scene.png). Objects that have same name are instances of one object. Instances differ by transform. The count of instances of the same object can be up to 1000. User at a single time must see: 1) all instances of one object (2_C_only.png, 4_F_only.png),

Re: [osg-users] Show children with hidden parent

2017-04-27 Thread Robert Osfield
Hi Yura, Thanks for the explanation. I'm not entirely clear on what you are after, so will provide some general comments. First up, in the OSG a parent node is always traversed before children, so if you stop traversal at a parent none of the children will be traversed. So if you set the NodeMa