[osg-users] osgViewer::Viewer fullscreen dual monitor issue

Robert Osfield robert.osfield at gmail.com
Thu Apr 28 23:46:55 PDT 2016


Hi Soulaymen,

By default the osgViewer::Viewer calls View::setUpViewAcrossAllScreens() as
a fallback if no windows have been assigned to viewer when viewer.realize()
or viewer.run() is called.  The setUpViewAcrossAllScreen() detects how many
screens you have on your system and then opens up a window on each one, if
there are more than one then it assumes that screen 0 is to the left,
screen 1 is directly to it's right and so on for all your screens.  On you
system it looks like you have screen 1 to the left of screen 0.

I think there may be a way to configure Windows to use a different ordering
of screens, so you could look at the display/driver settings for a solution.

The other route would be to explicitly tell the viewer what display
configuration you want to use.  There are various ways you can do this,
rather than go through all the possible combinations could you give us an
idea of what you'd like to see as your default setup?

Robert.

On 28 April 2016 at 19:32, Soulaymen Chouri <akaisora at tuta.io> wrote:

> Hi,
>
> I am still new around here, I've got the book "OpenSceneGraph 3.0
> Beginner's Guide" and learning step by step. But I have dual monitors and
> running any osg::Viewer example I got fullscreen window on both monitors,
> and a splitted view as demonstrated in the attached screenshot.
>
> Bascially it swaps the two monitors, the left render should have been on
> the right and vice versa.
>
> Any idea how to fix it? Except using only one monitor :)
>
> ...
>
> Thank you!
>
> Cheers,
> Soulaymen
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67010#67010
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/osg_209.png
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160429/b81443a0/attachment-0003.htm>


More information about the osg-users mailing list