blender/source/gameengine/Rasterizer
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
..
RAS_OpenGLFilters [#17600] char* -> const char* 2008-09-20 11:08:35 +00:00
RAS_OpenGLRasterizer 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 BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh). 2009-11-24 22:44:29 +00:00
Makefile Add guardealloc for RAS_MeshObject.cpp (and clean whitespace). 2009-11-24 23:24:56 +00:00
RAS_2DFilterManager.cpp option to build the BGE without python, uses existing python check (cmake and scons) 2009-09-29 21:42:40 +00:00
RAS_2DFilterManager.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_BucketManager.cpp BGE: dynamic loading patch commited. API and demo files available here: https://projects.blender.org/tracker/?func=detail&aid=19492&group_id=9&atid=127 2009-11-15 23:58:56 +00:00
RAS_BucketManager.h BGE: dynamic loading patch commited. API and demo files available here: https://projects.blender.org/tracker/?func=detail&aid=19492&group_id=9&atid=127 2009-11-15 23:58:56 +00:00
RAS_CameraData.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_Deformer.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_FramingManager.cpp 2.50: 2009-06-08 20:08:19 +00:00
RAS_FramingManager.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_ICanvas.h added SetDisplayArea, GetDisplayArea was used in a confusing way 2009-10-26 22:33:43 +00:00
RAS_IPolygonMaterial.cpp - fix for BGE warnings 2009-08-19 10:26:43 +00:00
RAS_IPolygonMaterial.h BGE: dynamic loading patch commited. API and demo files available here: https://projects.blender.org/tracker/?func=detail&aid=19492&group_id=9&atid=127 2009-11-15 23:58:56 +00:00
RAS_IRasterizer.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_IRenderTools.cpp Merge of first part of changes from the apricot branch, especially 2008-09-04 20:51:28 +00:00
RAS_IRenderTools.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_LightObject.h Fix for bug #18900: game engine lights in non-glsl mode did move 2009-06-09 13:51:32 +00:00
RAS_MaterialBucket.cpp 2.50: 2009-06-08 20:08:19 +00:00
RAS_MaterialBucket.h svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22875:22935 2009-09-01 18:49:33 +00:00
RAS_MeshObject.cpp BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh). 2009-11-24 22:44:29 +00:00
RAS_MeshObject.h BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh). 2009-11-24 22:44:29 +00:00
RAS_ObjectColor.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
RAS_Polygon.cpp bugfix [#19254] KX_PolyProxy returns improper VertexIndex with triangles, using .getVertexIndex() and .v1, .v2, etc. 2009-08-31 03:36:02 +00:00
RAS_Polygon.h svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22875:22935 2009-09-01 18:49:33 +00:00
RAS_Rect.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_texmatrix.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
RAS_TexMatrix.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
RAS_TexVert.cpp 2.50: 2009-06-08 20:08:19 +00:00
RAS_TexVert.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 BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh). 2009-11-24 22:44:29 +00:00