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

Consider subsurface color in dielectric albedo #2105

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JGamache-autodesk
Copy link
Contributor

I am experimenting with OpenPBR to UsdPreviewSurface export code in Maya and tried chaining the two translator graphs already provided in MaterialX. Results are quite good, except when the subsurface color is extremely different from the base color.

This can be fixed by computing a dielectric base albedo that mixes the scaled base color and the subsurface color. With this change in place, the results are quite interesting:
ConverterTestRig
Without this fix, the UsdPreviewSurface sphere would be bright orange instead of purple.
The test rig is very simple:
ConverterTestRig.zip

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.

2 participants