Forums » Bugs

Dual Monitors

Feb 08, 2007 archaiq link
I'm in Linux, using Dual Monitors. I've got the latest nVidia driver. My monitors are in vertical mode. When I first started VO the game spanned both monitors (very stretched out). I would like to be able to full screen on just one of the monitors. I thought that I might be able to change the resolution in Video settings, but it refuses to let me change the current resolution. I did switch to Windowed mode, but that doesn't seem to help anything.
Feb 11, 2007 RelayeR link
I'm not privy to linux but it seems to me that it is a setting on your comp, not in VO. Try setting one of your monitors as the main monitor.
Feb 11, 2007 kihjin link
archaiq is my other account. Would have posted under this one, but didn't realize which one I was logged into when I posted above.

By default you must have a primary display device. Currently my primary is my 19" LCD. The secondary device is a 15" CRT. Other applications such as MPlayer, firefox, etc. full screen to only one monitor (instead of stretching between the two).

If there is an option to fix this on my end, I haven't found it in nVidia's driver README.

VO wont even let me run it in Windowed mode without being stretched. It refuses to let me adjust the resolution.
Feb 11, 2007 mr_spuck link
I don't really know how dual screen works on linux (other than how to hook up a tv or projector and mirror the image)

you can't just add the resolution you want for ven to your xorg.conf?

AFAIK the game gets the available resolutions from the vidmode extension.
Feb 11, 2007 kihjin link
AFAIK xorg doesn't allow application-specific resolutions. I did some reading on the vidmode extension. It seems to be used for on-the-fly resolution changing.

In my Screen section I added a 'Modes' line:

Modes "1280x1024" "1024x768"

After making that modification and restarting X, I ran Vendetta. The game is still stretched, but now I can actually read what resolutions it is offering to me:

1280x2048 (75Hz)
1024x1536 (75Hz)

Obviously both options are stretched. Windowed mode doesn't help. I discovered these modes appear to be obtained from...

[]~$ xrandr --query
SZ: Pixels Physical Refresh
*0 1280 x 2048 ( 382mm x 604mm ) *50
1 1024 x 1536 ( 305mm x 453mm ) 51
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none
[]~$
Feb 11, 2007 mr_spuck link
what if you add the mode 1280x512? not sure if X will allow that though
Feb 11, 2007 kihjin link
Well I fixed it.

In the Device section there is an option called MetaModes.

-----------------------
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
Option "RenderAccel" "true"
Option "AddARGBGLXVisuals" "true"
Option "DisableGLXRootClipping" "True"
Option "TripleBuffer" "True"
Option "TVStandard" "NTSC-M"
Option "TwinView" "True"
Option "TwinViewOrientation" "Below"
Option "MetaModes" "1280x1024, 1280x1024;"
EndSection
-----------------------

I discovered I could add more entries to MetaModes. I also learned that I could add "single" entries...

-----------------------
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
Option "RenderAccel" "true"
Option "AddARGBGLXVisuals" "true"
Option "DisableGLXRootClipping" "True"
Option "TripleBuffer" "True"
Option "TVStandard" "NTSC-M"
Option "TwinView" "True"
Option "TwinViewOrientation" "Below"
Option "MetaModes" "1280x1024,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600;"
EndSection
-----------------------

Vendetta shows each of the MetaModes as available resolutions. Double MetaModes are actually added together (where you get the stretching effect). Single MetaModes allow the game to persist only on one monitor. When running in full screen, the other monitor is (unfortunately) disabled but this can be resolved by running the game in Windowed mode, which isn't so bad I suppose.

Thanks for the help spuck!
Feb 11, 2007 mr_spuck link
oh that's cool
Mar 07, 2007 Gargantula link
Dual monitors worked well for for me with no problems, though I am running Windows XP Pro SP2. I set my NVIDIA settings monitors for Dualview.
Mar 08, 2007 clay link
It would be really cool if you could set it up so that the two moniters aren't just displaying a continuation of the image but rather one displays what the left eye would see and one displays what the right eye would see. It may not sound like that would give you a 3d image because of the physical sixe of the moniters but i'd bet that your brain would adapt to it rather quickley. several experements have been done with using prisims mounted infront of the eyes to shift images to the left or right or actually inverting them and after several days the brain will adjust with a high degree of accuracy.

edit: it might help to use a divider between the two moniters so your right eye only sees the right moniter and the left only sees the left moniter.

edit2: perhaps i could use some kind of clear polorized film like that used on sunglasses? any ideas?
Mar 08, 2007 greengeek link
There are a number of techniques to get stereoscopic vision like that. The simplest would be red/blue glasses like old 3d movies. Then you have things like "shutter glasses" that would block each eye in sync with the display driver, which alternated each frame on screen between the left and right eye view. At the high end, you get things like goggles with separate displays for each eye.

The effect is often headache-inducing, because there is the perception of something approximating depth and parallax effects, but you get a sort of nagging sensation that it doesn't look quite right.

Either way, it requires support from the game engine to render two slightly different perspectives of each frame and output that to the stereo device in some fashion (either as alternating frames or as a double-wide image that gets split later on)
Mar 08, 2007 clay link
Yes what I was suggesting with the polorized glasses was along the lines of the red blue glasses just without the color distortion. left lenze is polorized horizontal and the right verticle the same for the respected moniters.

Incarnate, does the game's engin support two different perspectives?

Probably the easiest thing to do would be to make a stereoscope using a few mirrors. even if you end up with a backwards image you can always flip it in the utilities for your graphics card.

probably what would allow the most people to use it is the output to be in double wide format with the left image and the right image simple put together with a small black divider between them this would look weird on a single display because you would have a double image with a black bar in the center, but you wouldn't be using this mode on a single display setup. It really make some games quite immersive



oviousley thats useless in single display mode but with two moniters and alot of mirrors and patience you could get a 3d image from that.

edit
i guess you could probably use two single eye periscopes setup just right to view the moniters