HI Wu Zhicheng,

An UpdateOperation is a good way of adding updates to the scene graph.  You
can also add updates view local implementation of the viewer frame loop.
Finally NodeCallbacks assigned as update callback is good for many types of
updates, but one has to be careful about adding/removing nodes as this
could invalidate iterators and case problems if you aren't careful.

It's safe to do an viewer->addUpdateOperation() at any time as it's
designed to be a thread safe operation.

Robert.

On 10 January 2015 at 07:27, ttaw <[email protected]> wrote:

> Hi, all:
>   I wonder if it's safe that I modify (add node or remove children) the
> scenegraph in a custom updateoperation of a viewer in any threading model
> of osg. This update operation is added to view by
> viewer->addUpdateOperation().If not, what's the recommend time of doing
> this? Thanks.
>
>  ------------------
>  Failure is the mother of success.
> Wu Zhicheng
>
>
> _______________________________________________
> 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