Hi Miguel,

The traversal is from top down and will stop traversing if the
NodeMask of any node is 0, so it'll stop at transform1 is it's
NodeMask is 0.

If you want to get down to geode2 then you'll need to set the NodeMask
of transform1 to a none zero mask.

I don't know what you are trying to achieve, but at a guess you might
be trying to toggle geode1 and geode2 independently, and if this is
the case then you should be moving the NodeMask manipulation to the
geodes.

Robert.

On Mon, Feb 14, 2011 at 2:46 PM, Miguel Lokida <mlok...@yahoo.fr> wrote:
> Hi,
>
> I use osg 2.8.2 and I would like an advice on the problem that block me.
>
> I have this graph:
>
> transform1
>       |
>       |___ geode1
>       |
>       |___ transform2
>                      |
>                      |__geode2
>
> So, I have set this:
>
> int inheritanceMask = (osgUtil::SceneView::ALL_VARIABLES & 
> ~osgUtil::SceneView::CULL_MASK);
>
> myViewer->setInheritanceMask(inheritanceMask);
> myViewer->setCullMask(0x3);
>
> And I have set:
>
>  transform1->setNodeMask(0x0);
>  transform2->setNodeMask(0x1);
>
> The problem is that during the rendering process, geode2 is not rendering 
> whereas my nodeMask is valid for transform2. I guess that during traversal, 
> because transform1 node mask is false, the visit stop and transform2 is not 
> displayed.
>
> What is the solution to allow the process and display the transform2 and 
> geode2 ?
>
>
> Thank you for your advices.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=36627#36627
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to