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

testrender: Don't use the cached background map on the first bounce #1649

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

fpsunflower
Copy link
Contributor

This lets users customize the behavior of the background for camera rays (requested by the MaterialX team). Without this, you always get the cached copy which is only valid for one raytype (and has limited resolution) or you don't get any importance sampling of the environment.

…camera ray)

Signed-off-by: Chris Kulla <ckulla@gmail.com>
…mportance sampling is enabled by default

Signed-off-by: Chris Kulla <ckulla@gmail.com>
@fpsunflower
Copy link
Contributor Author

As discussed on slack, I also bumped the default resolution in the event that someone forgets to set it in the xml so that we get better sampling out of the box.

@lgritz
Copy link
Collaborator

lgritz commented Mar 1, 2023

I think that this changes a couple of the test outputs slightly so they need new ref images. If you don't have time to do that tonight, I believe I can just retrieve the updated images from the CI and push another commit on top of yours that fixes it.

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @fpsunflower!

@lgritz lgritz merged commit dbe8c21 into AcademySoftwareFoundation:main Mar 1, 2023
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request Mar 1, 2023
…cademySoftwareFoundation#1649)

* testrender: Don't use the cached background map on the first bounce (camera ray)

* testrender: Change the default resolution of the background so that importance sampling is enabled by default

Signed-off-by: Chris Kulla <ckulla@gmail.com>
@fpsunflower fpsunflower deleted the allow-bg-raytype branch March 2, 2023 01:38
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.

None yet

3 participants