[osg-users] When is it safe to modify the scenegraph?

Stephan Maximilian Huber ratzfatz at digitalmind.de
Thu Nov 1 09:08:36 PDT 2007


Hi,

I am updating to osg2.2 and wnat to use the new threading models, but I 
am experiencing problems when using a threading model different to 
SingleThreaded.

So when it is safe to modify the scenegraph? My scenegraph is very 
dynamic, lots of geometries get added, recomputed or removed.

my run-loop looks something like this

while(!_done) {

  // do my animations
  af->animate();
 
  advance();
  eventTraversal();
  updateTraversal();
  renderingTraversal();
}

One of the observed problems is a crash, when I dirty the displaylist of 
a geometry (inside animate()) and when this geometry get drawn at the 
same time. My code Crashes with threading-model 
cullThreadPerCameraDrawThreadPerContext, all other seem to work.

So, when it is safe to modify the scenegraph?

thanks,
Stephan



More information about the osg-users mailing list