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

ReSTIRGI #31

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

ReSTIRGI #31

wants to merge 16 commits into from

Conversation

Eckholz
Copy link

@Eckholz Eckholz commented Sep 4, 2022

No description provided.

@@ -1,4 +1,5 @@
// Creates a purely two-sided diffuse BSDF
// note from Eric: isn't kd in make_bsdf_sample() wrong (no pdf and cos applied)?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The weight returned by the make_bsdf_sample is already divided by the pdf. The sampler of the diffuse bsdf has cos/pi. Dividing by it returns only kd.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stehe gerade wohl auf dem Schlauch, also beim orennayar bsdf hat man ja folgendes:

color_mulf(eval(gdir, out_dir), 1 / sample.pdf), was als color mitgegeben wird.

Beim purely diffuse bsdf jedoch nur die reflectance, also nur das kd, ohne dass da durch die pdf geteilt wird oder der cosinus multipliziert wird, oder nicht?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In orennayar habe ich es einfach nicht selbst ausgerechnet. In diffuse habe ich die optimierung einfach selber gemacht.

PearCoding added a commit that referenced this pull request Sep 5, 2022
Co-authored-by: Eric <Windholz.Eric@yahoo.de>
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.

3 participants