Re: [osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors
Thank you very much Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64688#64688 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors
Hi Paolo, > On a related topic, is there a way to query how many screens are available? > Try this: Code: unsigned int numScreens = osg::GraphicsContext::getWindowingSystemInterface()->getNumScreens(); Cheers, Jannik -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64686#64686 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors
On a related topic, is there a way to query how many screens are available? Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64685#64685 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors
Thank you very much Robert. Paolo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64684#64684 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors
Hi Paulo, The osgViewer::Viewer by default opens a single view across all the displays you have, so what you see is a feature rather a bug :-) You can control the default by setting env vars or by passing in command line arguments to the viewer. To see all the command line options run: osgviewer --help And to see the env vars support run: osgviewer --help-env In you case doing: setenv OSG_SCREEN=0; osgviewer cow.osgt Should do you fine. In your own applications you choose how you want to create the windows, or just leave the viewer to decide upon defaults. Robert. On 7 August 2015 at 05:34, Paolo Ciccone wrote: > Hi, > > I just discovered OSG and compiled it today on OS X 10.10.4. The machine used > has an AMD Radeon HD 7950 with two monitors attached. > > When I run any of the example programs the viewport span both monitors with > the origin being in between the two screens. > > Is there some configuration switch to change to display on one monitor or is > this a known bug, or...? :) > > Thank you! > > Paolo > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=64654#64654 > > > > > > ___ > 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