Tom Pearce wrote:
Thanks for the response. In regards to question 2, if I'm understanding you
right this will work if the node in question is the direct child of a switch.
However, if there are intervening nodes (such as a switch at the root of a
sub-graph, with a number of levels of nodes underneath it), I would essentially
need to follow the node path (obtained from the node visitor) all the way up to
the camera, checking to see if any of the nodes are switches with the child
along the path set to off. Does that sound right?
Yes, I figured that's what you meant about the time I hit 'send'. But yes,
you're correct: the NodeVisitor has the NodePath that got you to where you are,
so just stepping through that path would tell you whether or not any ancestor
nodes are Switch objects, then you'd do the same test I described.
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org