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

Autodesk: Bugfix - Avoid name collision with MaterialX inputs and built-in uniforms #2807

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

Fix uniform name conflicts in Storm. Storm injects a built-in scale and bias uniform for texture types. When using MaterialX graphs, this can cause name collision with MaterialX inputs. For example if a node has inputs called normal (texture) and normal_scale (float), this will conflict when storm adds a normal_scale (for texture). The workaround or fix is to use a unique name. We use a named suffix _hdSt_ to define Storm generated uniforms.

Fixes Issue(s)

  • N/A
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

Storm injects a built-in scale and bias uniform for texture types. When using materialx graphs, this can cause name collision when materialx inputs.
For example if a node has inputs called normal (texture) and normal_scale (float), this will conflict when storm adds a normal_scale (for texture).
The workaround or fix is to use a unique name. We use a named suffix _hdSt_ to define Storm generated uniforms.
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8944

@pixar-oss pixar-oss merged commit 396c9b1 into PixarAnimationStudios:dev Dec 15, 2023
5 checks passed
@jesschimein
Copy link
Contributor

jesschimein commented Dec 18, 2023 via email

@erikaharrison-adsk
Copy link
Contributor Author

Sorry about that - I think I was getting the repos mixed up and there was a delay. 🤪

@jesschimein
Copy link
Contributor

jesschimein commented Jan 8, 2024 via email

@erikaharrison-adsk erikaharrison-adsk deleted the adsk/bugfix/namecollisionfix branch February 7, 2024 23:10
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.

4 participants