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

Updated MaterialXTest to improve MDL support #1277

Conversation

krohmerNV
Copy link
Contributor

  • changed the MDL test renderer to be used with Example DXR (shipped with the MDL SDK)
  • with that, added a gltf sphere and a rotated hdri to get a closely matching scene setup
  • extended the tests_to_html script for a three-way-comparison
  • added a preprocessing step in the test to allow mdlgen to use flattenFilenames for application side resource handling
  • replaced element->getActiveSourceUri() by doc->getSourceUri() because of failures with standard_surface_look_* tests

Copy link
Contributor

@kwokcb kwokcb left a comment

Choose a reason for hiding this comment

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

Thanks for all the improvements and fixes. 👍 Just a few small comments.

python/MaterialXTest/tests_to_html.bat Outdated Show resolved Hide resolved
resources/Geometry/sphere.gltf Outdated Show resolved Hide resolved
@krohmerNV krohmerNV force-pushed the PR-MDL-update-materialxtests branch from 9c621a9 to 176b00a Compare April 5, 2023 11:45
krohmerNV and others added 7 commits April 5, 2023 13:50
- changed the MDL test renderer to be used with Example DXR (shipped with the MDL SDK)
- with that, added gltf sphere and a rotated hdri to get a closely matching scene setup
- extended the tests_to_html script for a three-way-comparison
- added a preprocessing step in the test to allow mdlgen to use flattenFilename for application side resource handling
- replaced element->getActiveSourceUri() by doc->getSourceUri() because of failures with standard_surface_look_* tests
We can revisit this as developers begin integrating MDL into their standard render tests.

Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
@krohmerNV krohmerNV force-pushed the PR-MDL-update-materialxtests branch from 176b00a to 35a0a84 Compare April 5, 2023 11:52
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
@krohmerNV
Copy link
Contributor Author

I believe I addressed all issues with this PR.

  • removed the additional test scene and the rotated environment
  • renamed parameters and variables in the python script for creating comparison images

@jstone-lucasfilm
Copy link
Member

Thanks for those updates, @krohmerNV, and this changelist looks ready to go. I'd just wanted to run some local tests before merging, but otherwise this looks good to me.

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.

This looks good to me, thanks @krohmerNV!

@jstone-lucasfilm jstone-lucasfilm merged commit abc1f83 into AcademySoftwareFoundation:main Apr 6, 2023
12 checks passed
Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
…on#1277)

- changed the MDL test renderer to be used with Example DXR (shipped with the MDL SDK)
- extended the tests_to_html script for a three-way-comparison
- added a preprocessing step in the test to allow mdlgen to use flattenFilenames for application side resource handling
- replaced element->getActiveSourceUri() by doc->getSourceUri() because of failures with standard_surface_look_* tests
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