diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2014-01-02 03:26:15 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2014-01-02 03:26:15 +0400 |
commit | c7029f06d924e5acf5eafcaa13854aca5e7406b5 (patch) | |
tree | 409d939838d8d8cdea354d55cb371ace058a5e9b /source/blender | |
parent | 9a1585a5331ec4dd3fcf7d024548820098181601 (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/blender')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index b0aa818d49a..9fb3135c8a5 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -678,6 +678,7 @@ typedef struct GameData { #define STEREO_SIDEBYSIDE 6 #define STEREO_VINTERLACE 7 //#define STEREO_DOME 8 +#define STEREO_3DTVTOPBOTTOM 9 /* physicsEngine */ #define WOPHY_NONE 0 diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 6602c0f4069..8f73b59c7db 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -3087,6 +3087,7 @@ static void rna_def_scene_game_data(BlenderRNA *brna) {STEREO_ANAGLYPH, "ANAGLYPH", 0, "Anaglyph", ""}, {STEREO_SIDEBYSIDE, "SIDEBYSIDE", 0, "Side-by-side", ""}, {STEREO_VINTERLACE, "VINTERLACE", 0, "Vinterlace", ""}, + {STEREO_3DTVTOPBOTTOM, "3DTVTOPBOTTOM", 0, "3DTV Top-Bottom", ""}, {0, NULL, 0, NULL, NULL} }; |