I am working with an OpenSG-based application where I need to be able to enable and disable rendering of select geometry nodes in the scene graph without disabling traversal into children of said nodes. For example, consider the following graph:

           ROOT
          /    \
         /      \
       P1(G)     P2(T)
       /   \       |
     C1(G) C2(G)  C3(G)

P1, C1, C2, and C3 all have geometry cores; P2 has a transform core.

What I want to be able to do is disable rendering of P1's geometry without preventing rendering of the geometry associated with C1 and C2. Further, I may want to have C1 and P1 rendering but not C2. With P2, on the other hand, there is no geometry to render, but to keep things general, it would be good to be able to change the same rendering enable/disable setting.

I have already discovered that OSG::Node::setActive() is not what I want. Is there another option? Thanks in advance.

 -Patrick



--
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to