[osg-users] OSG 3.4.0 RC10 OSX - Viewport spans multiple monitors

Robert Osfield robert.osfield at gmail.com
Sun Aug 9 03:08:07 PDT 2015


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 <phciccone at gmail.com> 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list