Blender Git Commit Log

Git Commits -> Revision 3f57714

Revision 3f57714 by Sergey Sharybin (master)
January 30, 2015, 20:49 (GMT)
Cycles: Don't perform re-intersection if ray distance is zero

It is possible that ray distance will be zero which would make intersection
refinement return NaN as the refined position which would later lead to all
sort of mathematical issues.

Don't think there are ways to improve intersection accuracy for such rays
so just return original intersection coordinate.

This should fix T43475.

TODO: Need to look into possible issues in Ashikhmin BSDF which might return
zero-length reflected/transmitted ray?

Commit Details:

Full Hash: 3f5771475d55ed981bd98ee5810e62b68bccbb38
Parent Commit: cb20079
Lines Changed: +3, -0

1 Modified Path:

/intern/cycles/kernel/geom/geom_triangle_intersect.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021