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:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-10-24 15:03:18 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-10-24 15:03:18 +0400
commit657eff7ed7f23e9218a22ff6b3c96d331d69dd47 (patch)
treef9a7c7a0e95fd40c6c6f3300f6248f23b3e9041b /source/gameengine/PyDoc
parent6424bf6eb02345cc4e8db0951edba97993dce301 (diff)
Port stereo stuff from tuhopuu2: anaglyph, vinterlace
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r--source/gameengine/PyDoc/Rasterizer.py47
-rw-r--r--source/gameengine/PyDoc/WhatsNew.py2
2 files changed, 49 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/Rasterizer.py b/source/gameengine/PyDoc/Rasterizer.py
index ef6ec4c0bea..78be4b4804f 100644
--- a/source/gameengine/PyDoc/Rasterizer.py
+++ b/source/gameengine/PyDoc/Rasterizer.py
@@ -56,6 +56,15 @@ def makeScreenshot(filename):
"""
Writes a screenshot to the given filename.
+ If filename starts with // the image will be saved relative to the current directory.
+ If the filename contains # it will be replaced with the frame number.
+
+ The standalone player saves .png files. It does not support colour space conversion
+ or gamma correction.
+
+ When run from Blender, makeScreenshot supports Iris, IrisZ, TGA, Raw TGA, PNG, HamX, and Jpeg.
+ Gamma, Colourspace conversion and Jpeg compression are taken from the Render settings panels.
+
@type filename: string
"""
@@ -106,4 +115,42 @@ def setMistEnd(end):
@type end: float
"""
+
+def setEyeSeparation(eyesep):
+ """
+ Sets the eye separation for stereo mode.
+
+ @param eyesep: The distance between the left and right eye.
+ If eyesep < 0.0, eye separation will be automatically determined from the projection
+ matrix.
+ @type eyesep: float
+ """
+
+def getEyeSeparation():
+ """
+ Gets the current eye separation for stereo mode.
+
+ If the returned eye separation is < 0.0, the eye separation will be
+ automatically set on the next frame.
+
+ @rtype: float
+ """
+
+def setFocalLength(focallength):
+ """
+ Sets the focal length for stereo mode.
+
+ @param focallength: The focal length. If focallength < 0.0, the focal length will
+ be automatically determined.
+ @type focallength: float
+ """
+def getFocalLength():
+ """
+ Gets the current focal length for stereo mode.
+
+ If the returned focal length is < 0.0, the focal length will be
+ automatically set on the next frame.
+
+ @rtype: float
+ """
diff --git a/source/gameengine/PyDoc/WhatsNew.py b/source/gameengine/PyDoc/WhatsNew.py
index 777c87a2f48..dcc6ba4883c 100644
--- a/source/gameengine/PyDoc/WhatsNew.py
+++ b/source/gameengine/PyDoc/WhatsNew.py
@@ -8,6 +8,8 @@ This document lists what has been changed in the Game Engine Python API.
Blender CVS
------------
- Added tic rate methods to L{GameLogic}
+ - Added stereo eye separation and focal length methods to L{Rasterizer}.
+ - Fixed L{Raterizer}.makeScreenshot() method.
Blender 2.34
------------