Blender Git Commit Log

Git Commits -> Revision 465a5d2

Revision 465a5d2 by Thomas Szepe (master)
April 10, 2015, 18:20 (GMT)
BGE : Fix T43800: getScreenVect()/getScreenPosition()/modelview_matrix returns incorrect results

The getScreenVect(), getScreenPosition() and modelview_matrixmethod returns an incorrect results if called after the camera has been translated on the same frame.
The model view matrix will be update only once per frame with Cam->SetModelviewMatrix in KX_KetsjiEngine::RenderFrame.
Using GetWorldToCamera as model view matrix to get an actual view matrix even if the camera is moved.

Reviewers: sergey, dfelinto, brita_, sybren, hg1, campbellbarton

Reviewed By: hg1, campbellbarton

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1170

Commit Details:

Full Hash: 465a5d29c0333f5bd5847f3febdd12f4b2746d0b
Parent Commit: 35812e6
Lines Changed: +4, -4

2 Modified Paths:

/source/gameengine/Ketsji/KX_Camera.cpp (+3, -3) (Diff)
/source/gameengine/Ketsji/KX_Camera.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021