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

[Hydra] Switching Point Instancer Variant Permanently Removes Child Proto Materials #1960

Closed
trebconnell opened this issue Jul 22, 2022 · 1 comment

Comments

@trebconnell
Copy link

Description of Issue

I did a bit of debugging and have a high-level idea of the issue. When a variant on a point instancer is switched Hydra removes the point instancer and the material that is a child of the prototype. When it goes to recreate the material, the material returns true for IsPopulated which causes the material to not be recreated. Therefore, the material is never recreated.

Moving the material out of the point instancer resolves this issue, but this is difficult to achieve in our pipeline. As we reference mesh that contain their own material definitions into the Protos.

Steps to Reproduce

  1. Open attached zipped scene in UsdView with any render delegate (I used hdArnold and hdStorm).
  2. Change the variant selection on /pointInstancer from "A" to "B"
  3. Even though variant has no effect, the material on the cube is removed. If you switch back to "A" it will not come back.

System Information (OS, Hardware)

Windows 11

Package Versions

Reproduced on USD 21.11 and 22.08
It does not reproduce on USD 20.08
I am fairly certain the Hydra 2 adapter caused a regression here.

Build Flags

Must build with usdimaging

@trebconnell trebconnell changed the title Swapping Variant On Point-Instance Permanently Removes Child Proto Materials Swapping Variant On Point Instancer Permanently Removes Child Proto Materials Jul 22, 2022
@trebconnell trebconnell changed the title Swapping Variant On Point Instancer Permanently Removes Child Proto Materials Switching Point Instancer Variant Permanently Removes Child Proto Materials Jul 22, 2022
@trebconnell trebconnell changed the title Switching Point Instancer Variant Permanently Removes Child Proto Materials [Hydra] Switching Point Instancer Variant Permanently Removes Child Proto Materials Jul 22, 2022
@sunyab
Copy link
Contributor

sunyab commented Jul 28, 2022

Filed as internal issue #USD-7518

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

No branches or pull requests

2 participants