Hi Calin, You can assign a separate DisplaySettings, using View.setDisplaySettings() to each View(er) that will override the default of using the osg::DisplaySettings::instance(), you'll need to do this prior to the viewer.realize() to make sure that the settings get used in context creation and renderer setup.
If you do have two Views in your scene I would recommend that you using a single CompositeViewer with two Views rather than try to manage two viewers. Robert. On Thu, Dec 10, 2009 at 1:48 PM, Teodor Hanchevici <[email protected]> wrote: > Hi all, > > is it possible to have two viewers in the same OSG application, one that > displays stereo the other one that does not? > > osg::DisplaySettings::instance is a singleton so it will affect all viewers I > am adding to the composite viewer. > > Thank you! > > Cheers, > Calin > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=21232#21232 > > > > > > _______________________________________________ > 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

