Stereoscopic3D/stereoglide
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This is a modified version of the open source Glide wrapper OpenGlide that supports stereoscopic rendering and resolution overriding. To use it, copy "SDL.dll" and "Glide2x.dll" into either your SYSTEM32 folder or into a game's root directory. Make sure that it doesn't conflict with any existing Glide wrappers. Whenever you run a game, an "ini" file for OpenGlide will be created if it doesn't exist already. Use that file to configure OpenGlide. To set the stereo mode, set StereoMode to one of the following values: 0 -- No stereo 1 -- OpenGL Quad Buffer 2 -- Horizontally interleaved 1 3 -- Horizontally interleaved 2 4 -- Anaglyph There are two stereoscopic parameters that have to be set: ScreenShift and CameraShift. Make sure that you find and set the proper ScreenShift value before searching for the proper CameraShift value. ScreenShift is dependent on the physical screen resolution of your display. It must be positive, and should be set to a value that makes the physical distance between the left and right eye images on the screen as close to 6 cm as possible. While searching for the optimal ScreenShift value, make sure that CameraShift is set to 0. CameraShift is dependent on the particular game you're playing. It must be positive. To find the optimal CameraShift value, do a binary search -- that is, start out with 1, then 2, than 4, then 8, then 16, then 32, then 64, then 128, then 256, and so on, until you find the optimal value. Here are the optimal CameraShift settings for the games I've tried so far: Deus Ex: 1024 Space Haste: 2048 King's Quest: Mask of Eternity: 32768 To override the resolution, set Resolution to the number of scan lines of the resolution you want. The height and resulting width must both be even numbers. When playing King's Quest: Mask of Eternity, you MUST set InitFullScreen to 0, or there will be problems. Also, there will be a separate window obscuring the game window, and you will have to have the game window moved out of the way. And the obscuring window will have to be selected for the mouse to work. To make the obscuring window as small as possible, set the game's resolution setting to the smallest setting (640x480), use resolution overriding to force a larger resolution, and make sure your screen resolution is in your monitor's native resolution. If there still isn't enough space on your screen to fit the whole game window, position it so that you at least have as good a view as possible. My recommendation is to center it in the portion of the screen to the right of the obscuring window, so that only the left and right sides are clipped. It is still preferred to play it in a high resolution, even if it is clipped. Also, make sure that TextureMemorySize and FrameBufferMemorySize are both set to 4, no higher. This is because King's Quest: Mask of Eternity uses a weird memory management system that actually works better with smaller amounts of video memory. Getting King's Quest: Mask of Eternity to work acceptably is tricky, but possible. If you play around with the windows, there are a few more tricks you can do that will help. A similar problem occurs in Deus Ex, but can be fixed by setting WindowedViewportX and WindowedViewportY in "DeusEx.ini" to 0.