Blender Git Loki

Git Commits -> Revision 53bd589

Revision 53bd589 by Sergey Sharybin (master)
January 14, 2021, 13:54 (GMT)
Fix T84167: Saving half-float EXR might result in NaN pixels

Clamp value to the -HALF_MAX .. HALF_MAX.

The non-clamped values were causing NaN and inf values saved to
the file, which was the root cause of glare node giving unexpected
result.

The nan/inf on overflow is something mentioned in the half data
type in OpenEXR header.

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

Commit Details:

Full Hash: 53bd58993e2f6d35452242762402c20343d6eef3
Parent Commit: 74f6b81
Lines Changed: +10, -5

1 Modified Path:

/source/blender/imbuf/intern/openexr/openexr_api.cpp (+10, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021