Hi. I finally started to implement the described Timer functionality and
was faced with almost the same question: how do I subscribe to osgViewer
each frame update?
Should I add my class to osgViewer::ViewerBase::setUpdateVisitor?

2012/6/22 Robert Osfield <[email protected]>

> Hi Michael,
>
> On 22 June 2012 10:30, michael kapelko <[email protected]> wrote:
> > Am I understanding correctly that Object::STATIC is a flag that says
> > something won't be traversed/updated each frame (based on some
> > internal decision), and Object::DYNAMIC says: traverse/update it each
> > frame?
>
> DataVariance on Node's isn't used during the normal frame traversals
> like update, event and cull traverals, it's only used as hint to the
> osgUtil::Optimizer traversals to know whether it can optimize
> away/modify nodes for scene graph optimization purposes.
>
> However, the DataVarinace on StateSet and Drawable is used during draw
> dispatch when using the DrawThreadPerContext and
> CullThreadPerCameraDrawThreadPerContext threading models - it's used
> to prevent the next frame from commensing while there are still
> dyanmic leaves to be dispatched to OpenGL.
>
> Robert.
> _______________________________________________
> 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