[osg-users] osg::Operation

Robert Osfield robert.osfield at gmail.com
Fri Mar 16 01:39:09 PDT 2018


Hi Adrian,

The OpenSceneGraph/examples/osgtext example has a code path that
includes use of UpdateOperation in the context of multi-threaded
operation.

If you run:

    osgtext --mt

You will seem a continuous random placement of osgText::Text labels
into a box using a custom osg::Operation in combination of
OperationThread ad Viewer::addUpdateOperation.

Robert.


On 16 March 2018 at 00:23, Adrian Jelffs <adrian.jelffs at makai.com> wrote:
> Hello,
>
> I am using osgEarth to add and remove layers but I get a crash when I am running in debug mode. I have read that this is probably a thread safety issue and I should probably be using osg::Operation and Viewer::addUpdateOperation().
>
> How do I use these methods? I have bought the book on OSG and Google online but I can't see any examples of documentation.
>
> Could somebody give me a few lines of code to show me how to use addUpdateOperation?
>
> Many thanks for your help! :)
>
> Cheers,
>
> Adrian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73102#73102
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list