Hi Roman,

On Wed, Sep 8, 2010 at 2:34 PM, Roman Grigoriev <[email protected]> wrote:
> Hi, Vincent
>
> 1.I've already placed my update callback under LOD child and it traversed, 
> maybe I need to setup viewer or over thing in osg to not travers hidden 
> childs?

The UpdateVisitor by default traverses all children, but you can
change it to traverse just the active children via:

viewer.getUpdateVisitor()->setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN);

There is however a problem in that LOD's activity is selected during
the cull traversal... the update visitor can only assume the highest
level of detail children.

> 2. How can I check in callback if node is active or not?

A cull callback on the child will tell you whether that child is active or not.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to