Dirk Reiners wrote:

   Hi Patrick,

Patrick Hartling wrote:

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:
...
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.

Sorry, there is no way to do that right now. setActive (and the underling traversal mask) fully prevent the traversal of the node and all its children. The easiest way I can think of would be to temporarily replace the Geometry cores with Group cores. Not elegant, but it would work.

Thanks for the suggestion. As it turns out, I do not need this functionality--at least at the moment. There was a special case in my code that took a while to track down, and handling it eliminated the need for me to do what I was describing above.

 -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