Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude photons in opposite side #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hchoi405
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant