HI Mark,

What do you mean by a child being active?  The OSG's concept of a
child being active related to which of the children of switch or LOD
is selected for each frame.

FYI, the update traversal has a lazy traversal scheme that only
traverses a subgraph if it contains update callbacks or the node
signal to their parents that they need to be visited by the update
traversal.  This lazy traversal scheme avoid traversing of the scene
graph when updating isn't required so provided significant performance
gain over a traversal that visits all children regardless of whether
they need it or not.  The event traversal has a similar mechanism.

Robert.

On Tue, Aug 9, 2011 at 8:13 PM, Mark Acosta <[email protected]> wrote:
> Is there some mechanism to determine whether or not a node being traversed
> during an update traversal is active or not? I know I could change the
> TraversalMode in UpdateVisitor to traverse only active children, but what if
> I want to traverse all children and only take action if a particular type of
> node is active? I can't find anything in NodeVisitor that would let me do
> this.
>
> Thanks,
> Mark
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to