Hi Tugkan, Thanks for the example code. I've enable the compile of each of the three #if #elif sections in term and they are run and exit cleanly. Nothing appers to be amiss. Are you using the latest OSG in SVN?
W.r.t when its safe to modify the scene graph, its safe to modify any DYNAMIC scene graph leaves (Drawable + StateSet) any time outwith the Viewer::renderingTraversals() call. When you aren't running DrawThreadPerContext or CullThreadPerCameraDrawThreadPerContext there isn't even the limitation of modification of just DYNAMIC scene graph leaves. As to what might be amiss at your end I don't know. Robert. On 2/22/07, Tugkan Calapoglu <[EMAIL PROTECTED]> wrote:
I've worked more on the subject and repeated the crash in a simple application derived from osgviewer. You can find it attached. Unlike our application it also happens in SingleTreaded mode here. As far as I understand the new threading system it should be safe to access the scene graph outside the frame() method. And anyway it is single threaded mode here. As I was working on this problem I ran into another problem also. If I call viewer.getCamera()->getOrCreateStateSet()->setDataVariance( osg::Object::DYNAMIC ) before the main loop and switch to DrawThreadPerContext mode using 'm' application freezes. See if blocks at the end of the main(). First block is for freezing and the second block is for crash. Tugkan ------------------------------------- VIRES Simulationstechnologie GmbH Oberaustrasse 34 83026 Rosenheim Germany phone +49.8031.463640 fax +49.8031.463645 email [EMAIL PROTECTED] internet www.vires.com ------------------------------------- Sitz der Gesellschaft: Rosenheim Handelsregister Traunstein HRB 10410 Geschaeftsfuehrer: Marius Dupuis Wunibald Karl ------------------------------------- _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/