Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2014-01-02 03:26:15 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2014-01-02 03:26:15 +0400
commitc7029f06d924e5acf5eafcaa13854aca5e7406b5 (patch)
tree409d939838d8d8cdea354d55cb371ace058a5e9b /source/gameengine/GamePlayer
parent9a1585a5331ec4dd3fcf7d024548820098181601 (diff)
Add new BGE Stereo mode: 3DTV top-bottom.
This mode is designed for passive 3D TV: the viewport is split horizontally - left eye above, right eye below - but the original camera viewport is squashed in each half (with half the vertical resolution). This is necessary to restore the aspect ratio in the 3D output because the TV expands each half to the full screen size.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
index ba580bc038c..7d792ca37c8 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
@@ -660,6 +660,9 @@ int main(int argc, char** argv)
else if (!strcmp(argv[i], "syncdoubling"))
stereomode = RAS_IRasterizer::RAS_STEREO_ABOVEBELOW;
+ else if (!strcmp(argv[i], "3dtvtopbottom"))
+ stereomode = RAS_IRasterizer::RAS_STEREO_3DTVTOPBOTTOM;
+
else if (!strcmp(argv[i], "anaglyph"))
stereomode = RAS_IRasterizer::RAS_STEREO_ANAGLYPH;