Luigi,
It is funny you should ask this question as I just addressed this problem myself.

Each time you create a new SceneView (for your new context) I call the following two methods:

sceneview->getCullVisitor()->setDatabaseRequestHandler ( osgDB::Registery::instance()->getOrCreateDatabasePager() ); sceneview->setCompileGLObjectsForContextID( sceneview->getState()- >getContextID(), true );

This seemed to do the trick for me; however, I am not sure it is the most optimum solution. Can anyone comment on the implications of creating a new DatabasePager for each context vs sharing the singleton?


Dan


On Jul 26, 2006, at 11:00 AM, Luigi Calori wrote:

I' ve not found many examples of multiple windows working with Paged models (like what comes out of osgdem)

I' ve found that one can easily use multiple osgProducer::Viewer as long as it open all them prior to start paging. I' ve seen also osgwindows example that open one viewer with multiple vindows (all them prior to loading) Also osgsimplepager can open in sequence different windows, this seems the most promising example, but is also the most complex

I need to be able to open a window/viewer on a paged model then open another one on another paged model keeping the first "running" or at least freezed but NOT closing it.

Is it possible? any hint really welcome

Thanks in advance

Luigi
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to