Blender Git Commit Log

Git Commits -> Revision 9fcaac5

Revision 9fcaac5 by Sergey Sharybin (master)
July 23, 2014, 07:00 (GMT)
Fix T41147: Static BVH shading problem
Fix T41079: Solid black render of object with negative scale and smooth shading

In both cases the issue was caused by negative scaled objects with single mesh
users for which scale gets applied when using static BVH.

Since the on-fly normals calculation land normals for such cases weren't flipped
leading them to point to a wrong direction.

Added a special object flag for this, which is a bit of a bummer because now
we've got less bits for real useful things, but this is the only way to get
proper normals without adding more complexity in the on-fly calculations.

Commit Details:

Full Hash: 9fcaac5009b567edc59c4831b6a0580211d1d290
Parent Commit: 54109ad
Lines Changed: +12, -6

4 Modified Paths:

/intern/cycles/kernel/geom/geom_triangle.h (+6, -3) (Diff)
/intern/cycles/kernel/kernel_shader.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_types.h (+2, -1) (Diff)
/intern/cycles/render/object.cpp (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021