Homec4science

Improved handling of zeros in log encoding of contributions in PMAP_CONTRIB_…

Authored by U No Hoo <roland.schregle@gmail.com> on Apr 21 2023, 20:20.

Description

Improved handling of zeros in log encoding of contributions in PMAP_CONTRIB_(I)VAL by offsetting. Disabled PMAP_CONTRIB_WARNZEROBINS by default due to excessive console clutter when collecting contributions from solar sources wich occupy a single bin. Improved handling of empty bins in getPhotonContrib(), which no returns NULL to signal preComputeContrib() that the candidate precomputed photon should be discarded, and another one selected. To prevent winding up in an infinite loop, getPhotonContrib() retries with several candidate precomputed photons from the current stratum, before giving up and moving on to the next stratum.

Details

Committed
U No Hoo <roland.schregle@gmail.com>Apr 21 2023, 20:20
Pushed
GTApr 21 2023, 21:24
Parents
R10977:79b38e1d163d: Added handling of singular encoding range (i.e. min == max) in mRGBEinit(), for…
Branches
Unknown
Tags
Unknown
References
pmapmerge