Blender Git Loki

Git Commits -> Revision 86f8455

Revision 86f8455 by Stefan Werner (compositor-2016)
June 8, 2016, 19:45 (GMT)
Fixed a rare case of NaN in Cycles

This fixes a rare case where NaNs could exist inside Cycles.

When certain invalid meshes were passed in, Cycles would try too normalize
a zero length normal during its setup stage. While it does check against
division by zero, it still returns a zero length normal and passes it on to
the path tracing kernel. The kernel then operates under the assumption that
normals are valid, and in the case of such a zero length normal, would
eventually create NaNs that propagate through and result in black pixels.

Reviewers: #cycles

Subscribers: brecht, sergey

Projects: #cycles

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

Commit Details:

Full Hash: 86f84558272b1213507ecfcfcc0be9be9925746f
Parent Commit: 7573eed
Committed By: Jeroen Bakker
Lines Changed: +1, -1

1 Modified Path:

/intern/cycles/render/mesh.cpp (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021