Blender Git Commit Log

Git Commits -> Revision e5fd559

Revision e5fd559 by Sergey Sharybin (master)
August 12, 2014, 19:48 (GMT)
Fix T40566: Light instances disappears in rendered viewport (Blender Internal)

This is just another issue caused by convertblender overwriting the object
matrix at the time of creating render object. What's even worse here is that
original matrix is not stored for the lamps, only lamp_matrix*view_matrix is
stored.

For sure we can combine lar->co and lar->mat back to mat4, multiply by the
inverse view matrix and get object matrix, but this is not suitable for the
viewport render because every viewport rotation will accumulate the error.

For now let's store worldspace lamp matrix in the LampRen structure and use
it when rotating the scene.

Commit Details:

Full Hash: e5fd5599bc53183b3c919e9644ea6fd1eaa399e0
Parent Commit: e9ef7a8
Lines Changed: +6, -3

3 Modified Paths:

/source/blender/render/intern/include/render_types.h (+3, -1) (Diff)
/source/blender/render/intern/source/convertblender.c (+1, -0) (Diff)
/source/blender/render/intern/source/envmap.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021