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