blender/source/gameengine/BlenderRoutines
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
..
BL_KetsjiEmbedStart.cpp BGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength uses camera focallength 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
KX_BlenderCanvas.cpp Mitchell Stokes BGE MouseWarp patch + warning fix 2009-11-11 08:32:29 +00:00
KX_BlenderCanvas.h Mitchell Stokes BGE MouseWarp patch + warning fix 2009-11-11 08:32:29 +00:00
KX_BlenderGL.cpp Mitchell Stokes BGE MouseWarp patch + warning fix 2009-11-11 08:32:29 +00:00
KX_BlenderGL.h Mitchell Stokes BGE MouseWarp patch + warning fix 2009-11-11 08:32:29 +00:00
KX_BlenderInputDevice.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_BlenderInputDevice.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
KX_BlenderKeyboardDevice.cpp BGE: Fix Keyboard actuator that didn't generate release event. 2009-07-25 12:35:14 +00:00
KX_BlenderKeyboardDevice.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
KX_BlenderMouseDevice.cpp BGE: fix bug in mouse button release detection 2009-12-08 08:46:07 +00:00
KX_BlenderMouseDevice.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
KX_BlenderRenderTools.cpp text display (debug info) in the game engine working again & other minor changes. 2009-09-02 03:14:38 +00:00
KX_BlenderRenderTools.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
KX_BlenderSystem.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_BlenderSystem.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
Makefile Add audaspace search path. 2009-09-20 20:14:34 +00:00
SConscript patch [#19796] GLEW update by Mitchell Stokes (Moguri) 2009-11-21 20:36:03 +00:00