-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy L. Moles wrote:
> On Tue, 2007-06-12 at 13:48 -0400, Jean-Sébastien Guay wrote:
>> Hello,
>>
>> A little OT, but I was hoping someone could help me with this. When I  
>> run osgviewer on my dual monitor Linux machine, it comes up as if it  
>> wanted to be on both screens but only displays on the left one (i.e.  
>> the object seems to be centered on the break between monitors, but I  
>> only get the osgviewer image on the left monitor).
>>
>> If I press 'f', it first goes to windowed mode, which works fine (I  
>> can move the window to both monitors and it seems to run at the same  
>> speed), then pressing 'f' again it goes to full screen on one monitor  
>> (the one where the window is currently, with the object centered in  
>> the monitor) and finally another 'f' gets it fullscreen across both  
>> monitors. At that point, it really is on both monitors, so it's only  
>> on startup that it seems to think it's on both but only displays on  
>> one...
>>
>> My system:
>> AMD Athlon 1600+, 1GB RAM
>> nVidia GeForce 5200 (I know, old, but that's what I have at the  
>> university for now)
>>
>> My xorg.conf contains this (among other things), I don't know if it's  
>> ok or not...
>>
>> Section "Device"
>>          Identifier  "Videocard0"
>>          Driver      "nvidia"
>>          Option      "AddARGBGLXVisuals" "True"
>>          Option      "DisableGLXRootClipping" "True"
>>          Option      "TwinView"
>>          Option      "MetaModes" "1280x1024,1280x1024; 1280x1024;  
>> 1024x768,1024x768; 1024x768
>>          Option      "TwinViewOrientation" "RightOf"
>>          Option      "SecondMonitorHorizSync" "UseEdidFreqs"
>>          Option      "SecondMonitorVertRefresh" "UseEdidFreqs"
>> EndSection
> 
> Try adding:
> 
>       Option "ConnectedMonitor" "DFP, CRT"
> 
> ...or whatever you combination of monitors is (Maybe DFP, DFP).
> 

That wouldn't help, that option is for overriding the monitor detection.
However, he said that the image appears on both monitors in windowed
mode, so the second screen was obviously detected right.

I have noticed another issue - "AddARGBGLXVisuals" is on. This is
usually needed by things like Beryl or Compiz. Jean-Sebastien, do you
have, by chance, also Composite extension enabled? That one is known to
interfere with OpenGL rendering, I would turn it off.

Also, you may want to explicitly specify the resolution and/or turn off
Xinerama extensions in your window manager. I presume that you want to
have the window maximized *on both* screens, not only on the current
one. My guess is that osgViewer detects the full resolution of the two
screens, however the window manager forces the window to be maximized
only on one display and OSG is not aware of it (therefore the "cut"
object centered on the screen boundary) . That is usually desired (e.g.
maximizing Firefox across two screens would be a pain to work with),
however in this case you need to turn it off.

You can turn off Xinerama globally in the xorg.conf using an option:
Option "Xinerama"  "false"

Alternatively, you can turn it off in KDE in control panel under "Window
Behavior" or you can force the window size to be always full screen
using the window specific settings, e.g. 2560*1024 if you have 2x
1280x1024 screens.

Regards,

Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFGburjn11XseNj94gRAv0cAJ49r+hlMUPNloQPrq6C2MZc88rP0ACfTgLu
PgNRVbHxIvhnRBoXiBXNy3I=
=gzRW
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to