On Fri, 2010-07-23 at 20:03 +0200, Stefanie Hoepner wrote: > Hi, > > I am trying to figure out how I can get two viewports in one window to show 2 > different osg scenes, videos in particular. I tried the CompositeViewer, but > it gives me two separate windows. I would like one window splitted in the > middle, the right side showing one video and the left side showing the other > video. > > So, my question is, can I either make the CompositeViewer show the 2 scenes > in one and the same window or can I set the Viewer to have two viewports? Or > do you have any other idea how to do this? > > Thank you very much for any hints!
Here's an example I have in osgCairo showing how to do what you want: http://code.google.com/p/osgcairo/source/browse/trunk/examples/osgcairoviewer/osgcairoviewer.cpp At the bottom, in main(). You can see how I create two osgViewer::View objects, set their viewports, and then add them to the CompositeViewer. > Stefanie > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=30220#30220 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Follow us on Twitter! http://twitter.com/emperorlinux EmperorLinux, Inc. http://www.emperorlinux.com 1-888-651-6686 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

