[Bf-committers] BGE Projection Matrix in Blender 2.5x

Julian Adenauer julian.adenauer at zmms.tu-berlin.de
Tue Nov 1 16:26:14 CET 2011


Hi,

I stumeled upon a strange behaviour in the GameEngine (2.5 and above)
when the projection matrix is set.
The following script (put into the standard file, activated by an always
sensor attached to the box) works in 2.49, but only shows a grey screen
in 2.5 and above:

import bge
scene = bge.logic.getCurrentScene()
scene.active_camera = "Camera"
m = scene.active_camera.projection_matrix
scene.active_camera.projection_matrix = m

This is also true for all other matrices I tried.
Is that a bug or am I missing something here?

Best,
Julian



More information about the Bf-committers mailing list