Hi Erland, For StateSet and Drawable that are dynamically updated (or their contents are dynamically updated) you'd should set the DataVariance to DYNAMIC on them to ensure that when using a multi-threaded viewer you don't have updates and rendering happening at the same time.
Robert. On Thu, Apr 24, 2008 at 2:45 PM, <[EMAIL PROTECTED]> wrote: > > > > > I have a osg objects (Drawables, StateAttributes ( Texture2D) Image, Arrays) > that need frequent update's, do I have to set datavariance DYNAMIC on all of > those objects? > > > > For example a Geode has Geometry of type DrawArrays and Vec3Array, do i set > DYNAMIC on all four objects in addition to set dirty() dirtyBound() and > dirtyDisplayList() or else the update will not be noticed by the scenegraph, > etc bounding box will not be recalculated, displaylists not recreated..? Is > it not easier if osg implmented so that a dirty flag is set each time an > object's value set? > > > > Erlend > > > > > _______________________________________________ > 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

