From d77e658c914aceb1099866e413ae5fb357cf2cab Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 7 Jul 2012 06:42:44 +0000 Subject: 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. --- doc/python_api/rst/bge.types.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/python_api') diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst index d0a848ee6f7..bd6ee3614d3 100644 --- a/doc/python_api/rst/bge.types.rst +++ b/doc/python_api/rst/bge.types.rst @@ -4222,6 +4222,10 @@ Game Types (bge.types) .. 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 @@ Game Types (bge.types) .. 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 -- cgit v1.2.3