-
Notifications
You must be signed in to change notification settings - Fork 12
ReSTIRGI #31
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
base: master
Are you sure you want to change the base?
ReSTIRGI #31
Conversation
| @@ -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)? | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Co-authored-by: Eric <Windholz.Eric@yahoo.de>
No description provided.