blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer
Dalai Felinto e37e3845a1 BGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength uses camera focallength
Now the default eye separation value is 0.10 (reasonable for games with 1 meter == 1 B.U.
The focallength used is the camera focal length (DOF settings). It allow you to even use different focal lengths for different scenes (good for UI)

In order to change it you can change the camera focal length or use Rasterizer.setFocalLength.
If you use the Rasterizer method it will use this value for all the cameras.

ToDo:
- Blenderplayer settings
- Update wiki documentation (any volunteer)?

* Note to stereo fans:
I don't have a real stereo environment to test it (other than cheap cyan-red glasses). If you can give it a try in a more robust system and report bugs or problems with BGE current system please let me know. I would be glad to help to make it work 100% by the time Blender 2.5 is out.

For the record, BGE is using the method known as 'parallel axis asymmetric frustum perspective projection'. This method is well documented here:
http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/
2009-12-29 15:47:20 +00:00
..
CMakeLists.txt patch [#19796] GLEW update by Mitchell Stokes (Moguri) 2009-11-21 20:36:03 +00:00
Makefile 2.50: 2009-06-08 20:08:19 +00:00
RAS_GLExtensionManager.cpp Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
RAS_GLExtensionManager.h Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
RAS_ListRasterizer.cpp 2.50: 2009-06-08 20:08:19 +00:00
RAS_ListRasterizer.h BGE guardedalloc, Uses WITH_CXX_GUARDEDALLOC but gives a string to MEM_mallocN for better tracking memory usage. 2009-08-18 15:37:31 +00:00
RAS_OpenGLRasterizer.cpp BGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength uses camera focallength 2009-12-29 15:47:20 +00:00
RAS_OpenGLRasterizer.h BGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength uses camera focallength 2009-12-29 15:47:20 +00:00
RAS_VAOpenGLRasterizer.cpp 2.50: 2009-06-08 20:08:19 +00:00
RAS_VAOpenGLRasterizer.h BGE guardedalloc, Uses WITH_CXX_GUARDEDALLOC but gives a string to MEM_mallocN for better tracking memory usage. 2009-08-18 15:37:31 +00:00
SConscript patch [#19796] GLEW update by Mitchell Stokes (Moguri) 2009-11-21 20:36:03 +00:00