Blender Git Loki
Git Commits -> Revision 9d18fd1
Revision 9d18fd1 by Benoit Bolsee (decklink) October 12, 2015, 21:18 (GMT) |
BGE: support camera scale, can be negative. Camera scale was previously ignored in the BGE. It is now injected in the modelview matrix as a scale of the scene coordinates in the camera local reference. This is equivalent to a zoom: A scale of 2 multiplies the coordinates by 2 => only the points with coordinates less then 0.5 before the scale will fall in the frustrum => equivalent to a zoom. Anisotropic scale is supported (different scale in x, y, z) Negative scale is also supported. As an odd number of negative scale flips the normals of the objects, the OGL front face setting is also flipped to compensate. A Y negative scale of -1 produces a vertical flip at OGL level. |
Commit Details:
Full Hash: 9d18fd1188e1a3e2d5a58fada0a26ae4107dcfe7
Parent Commit: c36f08d
Lines Changed: +25, -7
8 Modified Paths:
/intern/moto/include/MT_Matrix4x4.h (+10, -0) (Diff)
/source/gameengine/Ketsji/KX_Dome.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.cpp (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_IRasterizer.h (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLLight.cpp (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h (+2, -1) (Diff)
/source/gameengine/VideoTexture/ImageRender.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_Dome.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.cpp (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_IRasterizer.h (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLLight.cpp (+1, -1) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h (+2, -1) (Diff)
/source/gameengine/VideoTexture/ImageRender.cpp (+1, -1) (Diff)