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

Update UsdPreviewSurface to version 2.6 #2084

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

Conversation

klucknav
Copy link
Contributor

@klucknav klucknav commented Oct 24, 2024

This PR updates the PreviewSurface Nodegraph to address the opacity issue in cutout mode described in gitIssue #2044. It also updates the nodegraph to reflect the recently updated PreviewSurface v2.6 spec which states that fully transparent materials do not have a lighting response. Since the preview surface glass example was fully transparent, it is also updated to have a very slight opacity value.

klucknav and others added 10 commits October 21, 2024 15:18
…oundation#2044. It also updates the nodegraph to reflect the recently updated PreviewSurface v2.5 which removes specular highlights for fully transparent materials.
A recent change updated the nodegraph to reflect the updated PreviewSurface v2.5, which removes specular highlights for fully transparent materials. This change makes it such that opacity = 0 is treated the same regardless of if we use the transmissionOpacity or transmissionRefraction options, or if the material is in cutout or transparency mode.
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
This change maintains the current behavior when using 'transmissiveRefraction' method, while also keeping the opacity = 0 behavior consistent between the `transmissiveOpacity` and `transmissiveRefraction` methods.
@klucknav klucknav changed the title Additional changes to the PreviewSurface Nodegraph Updates to the PreviewSurface Nodegraph Oct 29, 2024
@jstone-lucasfilm jstone-lucasfilm changed the title Updates to the PreviewSurface Nodegraph Update UsdPreviewSurface to version 2.6 Dec 5, 2024
jstone-lucasfilm and others added 4 commits December 5, 2024 08:36
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
This change restores usd_preview_surface_glass.mtlx to its original form, as these updates to UsdPreviewSurface should be fully backwards-compatible.

Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
@jstone-lucasfilm
Copy link
Member

This looks excellent, thanks @klucknav!

For consistency, should we add the new opacityMode input to usd_preview_surface_default.mtlx, giving it a complete copy of the default values for UsdPreviewSurface?

https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/resources/Materials/Examples/UsdPreviewSurface/usd_preview_surface_default.mtlx

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