On 28 February 2013 17:19, jamie robertson <[email protected]> wrote:
> Is the following an option?
>
>
> Code:
> viewer->stopThreading();
> *add / remove objects here
> viewer->startThreading();

Start and stopping viewer threads is very expensive and should only be
done very occasionally such as during application start up/window
reconfiguration.

Doing operations on the scene graph during the update traversal is
easy, you either override the Viewer::updateTraversal() method, use an
custom osg::Operation that you add to the viewer via
addUpdateOperation(), or use an UpdateCallback attached to an scene
graph, or just add the operations before or after the call to
Viewer::updateTraversals().

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

Reply via email to