Hi Aurelien, Sorry for the slow reply, no trying to catch up on my email backlog...
osgViewer::CompositeViewer is designed for applications that have multiple Views and your usage model fits this perfectly. The only thing to be careful of is when you are adding and removing View's from the CompositeViewer you should do is calling stopThreading() on the viewer prior to adding or removing views, then call startThreading() afterwards. If you are running SingleThreaded or CullDrawThreadPerContext you won't need to worry about stop and starting threads. Robert. On 29 November 2011 15:55, Aurelien Albert <[email protected]> wrote: > Hi Robert, > > In my application, there is a "main viewer" to edit the scene, and the user > can open/close secondary viewer windows. > > These secondary viewer windows are not limited in number (sure, there is > hardware limits...) and the camera is independant from the other viewers (to > see different point of view). > > So when user open a new secondary viewer window, I create a new viewer > instance, a new camera, and the context is shared with the main window. > > When user close a secondary window, I delete the associated viewer to release > some resources. > > The secondary windows can also be resized, so the viewport is also > independant. > > Each viewer (main and secondary) are embeded in a Qt widget. > > Is there any way to do this with a composite viewer ? > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=44119#44119 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

