mitsuba icon indicating copy to clipboard operation
mitsuba copied to clipboard

Exclude photons in opposite side

Open hchoi405 opened this issue 3 years ago • 0 comments

This PR fixes the problem of the wrong radius update (#145).

I added three lines of code that prevent photons to be stored in KD-tree when the surface normal and the incoming direction of a photon is not on the same side.

Below is the results before/after the change (Breakfast Room from link, iteration=100, photons per iteration=250K) Before image

After image

After the change, it's less noisy due to the larger radius than before.

hchoi405 avatar Jun 17 '21 08:06 hchoi405