Hi Gaëtan, Are you wanting all your views to share the same graphics window? Or have different windows?
GraphicsWindowEmbedded can only work in applications with a single graphics context that is used single threaded viewer as it's written to be so simplified that it doesn't provide any of the makeCurrent/releaseContext/swapBuffes implementations that are required for multiple windows and multithread viewers. For clarification, when I say multi-threaded viewer I'm not talking about the DatabasePager and it's thread, you can safely have a single threaded viewer with GraphicsWindowEmbedded and still have the DatabasePager working with multi-threading in the background. Robert. On 25 February 2013 21:39, Gaëtan André <gaetan.an...@gmail.com> wrote: > Hi, > > I am sort of stuck with a thing: > > We can have multiview in one window has showed in example file > osgmultiviewpaging.cpp using a CompsiteViewer. > > We can have a Viewer in an existing opengl window using : > osg::ref_ptr<osgViewer::GraphicsWindowEmbedded> gw = > m_sceneViewer->setUpViewerAsEmbeddedInWindow(0, 0, grWinw, grWinh); > > But how can we mix the two ? > setUpViewerAsEmbeddedInWindow is not defined for CoMpositeViewer. > > Thanks in advance for your help, > > Cheers, > Gaëtan > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52866#52866 > > > > > > _______________________________________________ > 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