HI Andreas, As Serge suggested, it might just be far more productive to use the OSG's built in database paging support. All you need to do is decorate your subgraphs with a osg::PagedLOD or osg::ProxyNode, with osg::PagedLOD being the method of choice as it'll do load balancing for you - both loading new tiles on demand and deleting ones that are no longer required, all automatically done by osgDB::DatabasePager/osgViewer.
Robert. On Tue, Jun 17, 2008 at 7: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 > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org