[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48706] trunk/blender/doc/python_api/rst/ bge.types.rst: Adding a note to KX_Camera.projection_matrix and KX_Camera. modelview_matrix to warn that both values are the identity matrix prior to the first frame of rendering .
Mitchell Stokes
mogurijin at gmail.com
Sat Jul 7 08:42:45 CEST 2012
Revision: 48706
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48706
Author: moguri
Date: 2012-07-07 06:42:44 +0000 (Sat, 07 Jul 2012)
Log Message:
-----------
Adding a note to KX_Camera.projection_matrix and KX_Camera.modelview_matrix to warn that both values are the identity matrix prior to the first frame of rendering. Both values are calculated when rendering, which is after Python scripts have a chance to run on frame 1.
Modified Paths:
--------------
trunk/blender/doc/python_api/rst/bge.types.rst
Modified: trunk/blender/doc/python_api/rst/bge.types.rst
===================================================================
--- trunk/blender/doc/python_api/rst/bge.types.rst 2012-07-07 04:12:55 UTC (rev 48705)
+++ trunk/blender/doc/python_api/rst/bge.types.rst 2012-07-07 06:42:44 UTC (rev 48706)
@@ -4222,6 +4222,10 @@
.. attribute:: projection_matrix
This camera's 4x4 projection matrix.
+
+ .. note::
+
+ This is the identity matrix prior to rendering the first frame (any Python done on frame 1).
:type: 4x4 Matrix [[float]]
@@ -4233,7 +4237,7 @@
.. note::
- This matrix is regenerated every frame from the camera's position and orientation.
+ This matrix is regenerated every frame from the camera's position and orientation. Also, this is the identity matrix prior to rendering the first frame (any Python done on frame 1).
.. attribute:: camera_to_world
More information about the Bf-blender-cvs
mailing list