-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fix VP2 rendering of UsdPreviewSurface with opacityThreshold #3947
Fix VP2 rendering of UsdPreviewSurface with opacityThreshold #3947
Conversation
…urface fragment graphs.
…s greater than or equal to the opacityThreshold.
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.
Nicely done! Thank you!
@jufrantz Unfortunately the preflight failed two different build configurations:
I believe here you just need to conditionally run your new test:
I'm not sure if your changes have affected this test. Maybe @JGamache-autodesk can help with this one? Sean |
The change also affects the card draw mode (which uses UsdPreviewSurface since 23.02 with an opacityThreshold of 0.1). This means @jufrantz will have to provide a set of updated baseline images for the testVP2RenderDelegateDrawModes.py unit test. |
You can also take these: |
… UsdPreviewSurface VP2 shader changes.
Thank you @seando-adsk @JGamache-autodesk. |
@jufrantz I re-ran the preflight and it still failed on "Maya 2022, Python 2, interactive, Windows"
|
Sorry for this @seando-adsk, |
Hello, |
UsdPreviewSurface fragment graph for v1 does not support opacityThreshold input.
…dered as opaque. As discussed in PR [Autodesk#3952](Autodesk#3952).
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.
LGTM. Only one minor comment.
Thanks for the detailed review @JGamache-autodesk. On my end this one is ready to pass preflight and hopefully be merged. |
@jufrantz I merged your PR this morning. Thank you for the submission and getting all the test errors fixed. |
This PR fixes VP2 support for the UsdPreviewSurface
opacityThreshold
input, aligning it with Pixar's UsdPreviewSurface Specification.Included Changes:
UsdPreviewSurfaceLightAPI*.xml
fragment graphs to exposeopacityThreshold
. TheShadeFragment
node input was not connected to theMShaderInstance
parameter, which had no effect.opacityThreshold
is positive.PxrMayaUsdPreviewSurface::compute
for software rendering.Results:
Snaphots of the scene included in the unit tests. TestOpacityThreshold.usda features 5 planes with materials bound that have textured opacity, with opacityThreshold gradually increasing from 0.0 to 1.0 from left to right.
usdview/HdStorm
vp2RenderDelegate before PR
vp2RenderDelegate after PR