diff options
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r-- | source/gameengine/PyDoc/Rasterizer.py | 47 | ||||
-rw-r--r-- | source/gameengine/PyDoc/WhatsNew.py | 2 |
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 ------------ |