Hello Markus,
Thanks for addressing this Skylark. Yes, the application crashes due to what I
think you described (accessing the scene graph while it is being modified) I am
using osgEarth and running threads concurrently that need to intersect with the
surface of the earth model. Is there any thread-safe way to achieve this
without running everything on the main thread?
More generally, is there a way to ensure that you only traverse the scene
graph's nodes when you're supposed to?
You're in control of your application's main loop, so you can
synchronize things the way you want. You can set a mutex that will make
it safe to run intersections at given times, and then unlock the mutex
to let the viewer run its update and cull phases safely. That's just an
example.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org