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

Fix display of materials on instanceable prototype on point instancers. #1627

Conversation

marktucker
Copy link
Contributor

Description of Change(s)

The fix for #1449 looks like it broke material bindings in the case where
a point instancer prototype was marked as instanceable, but the material
was bound inside the prototype (on an instance proxy). The bound material
was being expressed with the instance proxy path instead of the prototype
path, which is how the material is actually identified in hydra. So now
the fix for #1449 is only applied to the instanceable prim, not the
contained instance proxy prims.

In my limited testing, this change seems to fix #1626 without breaking #1449.
But I don't understand this stuff deeply enough to really be sure this is right.

Fixes Issue(s)

The fix for PixarAnimationStudios#1449 looks like it broke material bindings in the case where
a point instancer prototype was marked as instanceable, but the material
was bound inside the prototype (on an instance proxy). The bound material
was being expressed with the instance proxy path instead of the prototype
path, which is how the material is actually identified in hydra. So now
the fix for PixarAnimationStudios#1449 is only applied to the instanceable prim, not the
contained instance proxy prims.

Fixes PixarAnimationStudios#1626
@jilliene
Copy link

Filed as internal issue #USD-6908

@tcauchois
Copy link
Contributor

Hey Mark,

Do you have a failing example scene we can take a look at? That would help me think through the consequences of this change.

Thanks,
Tom

@marktucker
Copy link
Contributor Author

Yep, there is a file attached to #1626.

@tcauchois
Copy link
Contributor

Thanks as always for the great test cases :). I have an alternative fix that should be going into the pixar tree by EOD.

@tallytalwar
Copy link
Contributor

@tcauchois 's fix e0da0a7, has been pushed to dev branch. Closing this PR in favor of that change. Thanks

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