-
Notifications
You must be signed in to change notification settings - Fork 396
Proposed improvements to energy conservation #1935
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
Conversation
fpsunflower
left a comment
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.
Looks good! Thanks for doing this.
Should be fine to merge once you get the CLA sorted out :)
|
@jstone-lucasfilm I took a pass at making updated ref images (and a clang-format pass) that gets this PR to the point of passing all CI tests. Is it ok with you if I push it to your tree to update the patch? Also... you seem to have made this PR directly from your fork's "main" instead of a topic branch. |
|
@lgritz Yes, feel free to make those changes directly in my fork of OSL. For historical reasons, I have the habit of working in |
|
Update pushed |
|
Thanks to Francois and our legal team, Lucasfilm is now approved to contribute to OSL! Let me know if any additional adjustments are needed for this change. |
|
I think you need to affix your DCO properly to your commit. |
|
Don't worry about those two MacOS CI failures -- they are the very thing addressed by #1936 and are unrelated to this PR. |
This changelist proposes improvements to the energy conservation between layered BSDFs in OSL. The rational quadratic fit for GGX directional albedo from the MaterialX project has been integrated into `dielectric_bsdf` and `generalized_schlick_bsdf`, improving visual parity with MaterialX GLSL and MDL. Signed-off-by: Jonathan Stone <[email protected]>
bb2c775 to
1b42acd
Compare
|
Thanks @lgritz -- I've added the DCO language and force-pushed my single commit. Feel free to adjust if any subsequent commits ended up being lost. I'm not used to including DCO language in commits, as we intentionally omit this on the MaterialX project, but I'll aim to remember to include them for future OSL changes. |
|
For DCO, you just need to locally commit with I'm curious -- why does MaterialX not use DCO? |
|
@lgritz In discussions so far, the conclusion has been that it's more important to protect contributors from automated collection of their real-world addresses on GitHub, so we've maintained the original no-DCO policy that we started with as an open-source project under Lucasfilm. We're definitely open to new ideas here, though, and I'm sure there's a balance of advantages and disadvantages on both sides. |
|
Oops, I believe you repushed ONLY your original commit, losing all the fixes I did on top of it to update the ref images. |
|
I'll re-apply my other things on top and see if that clears it all up. |
Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
|
@lgritz That's my fault, and I wasn't sure how to force-push my own commit without affecting yours. Perhaps a squash merge of both of our changes, followed by a force push? |
|
I think probably the easiest thing would have been then change 'r' for your commit and 's' for mine, and when you get to re-enter your commit message, just add the "Signed-off-by:" line by hand. Hang on, I think I can fix it all from my end. |
|
Yeah, it would also have been fine to squash them all together and then force-push. Anyway, luckly I still had my changes locally, so was trivial to just cherry-pick them on top of yours again. |
Description
This changelist proposes improvements to the energy conservation between layered BSDFs in OSL.
The rational quadratic fit for GGX directional albedo from the MaterialX project has been integrated into
dielectric_bsdfandgeneralized_schlick_bsdf, improving visual parity with MaterialX GLSL and MDL.Tests
Here are the latest render comparisons between GLSL and OSL, using the codebase in this PR:
MaterialXRenderTests_OSL_Energy_Conservation_GitHub.pdf
Checklist:
already run clang-format v17 before submitting, I definitely will look at
the CI test that runs clang-format and fix anything that it highlights as
being nonconforming.