Blender Italia forums Supporto Utenti Supporto Illuminazione, nodi e rendering Branched path Tracing – settaggi vetro [Risolto] Rispondi a: Branched path Tracing – settaggi vetro [Risolto]

#462986

problema risolto in meno di 24h https://developer.blender.org/rBa8fe3a1ceef31ca39a455fee25bc1e361e1048ff

The issue here was actually somewhere else – the attached scene from the report used a light falloff node in a sunlamp (aka distant light).
However, since distant lamps set the ray length to FLT_MAX and the light falloff node squares this value, it overflows and produces a NaN
weight, which propagates and leads to a NaN intensity, which is then clamped to zero and produces the black pixels.

To fix that issue, the smoothing part of the light falloff is just ignored if the smoothing term isn’t finite (which makes sense since
the term should converge to 1 as the distance increases).
The reason for the different results on CPUs and GPUs is not perfectly clear, but probably can be explained with different handling of
Inf/NaN edge cases.

Also, to notice issues like these faster in the future, kernel_asserts were added that evaluate as false as soon as a non-finite intensity is produced.

in pratica bisogna eliminare il nodo light falloff dalla SUN