Hello Olivier,

Olivier Tournaire wrote:
>     Olivier Tournaire wrote:
>      > Finally, I have a last question. Is there a way to disable the
>     rendering
>      > of a node. In fact, I would like to choose which are visible in
>     my scene.
>      > Any idea ?
> 
>     yes, every Node has a traversal mask (getTravMask()/setTravMask()) as
>     well as the RenderAction. A Node and its subtree are only shown if the
>     bitwise AND between the RenderAction trav mask and the node trav mask is
>     non-zero.
> 
> I do not understand what is the RenderAction. Could you explain a little 
> bit more ?

the RenderAction is the object that traverses the scene graph and 
renders the content (you can think of it as a visitor - from the design 
pattern of the same name).
If you are using the SimpleSceneManager you can get the RenderAction by 
calling mgr->getAction() and then set the traversal mask with setTravMask().

        Cheers,
                Carsten

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to