Did you looked at the DatabasePager ? It's made to load and unload models in a separated thread and merge them to the scenegraph.
Take a look at osgDB::DatabasePager and osg::PagedLOD. On Tue, Jun 17, 2008 at 8:51 AM, <[EMAIL PROTECTED]> wrote: > Thanks for your replies! > > In my self-made thread I'm loading large 3d models and attaching them as > PATs to the scene graph (or removing them). If I do this in the main loop, > the loading process is interrupting the image generation. That's why I > created the thread and so I need a sync so that the scene graph isn't > modified during cull and draw phase or the program will crash. > > After the replies I think the best way for me is using the mutex. I guess > the UpdateCallback interrupts the image generation, too (don't tested yet). > I will also look into osgterrain's multi-threaded code, may be I'll get some > further ideas... > -- > Andreas Richter > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Serge Lages http://www.tharsis-software.com
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org