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

When using SamplePrimvar(), indirect arrays aren't being expanded by Hydra #996

Closed
marktucker opened this issue Oct 12, 2019 · 1 comment

Comments

@marktucker
Copy link
Contributor

Description of Issue

When trying to evaluate instance primvars using SamplePrimvar() instead of Get(), it seems that some indirect arrays aren't being expanded by Hydra.

Steps to Reproduce

After loading the attached file
primvar_expand.zip
into a usdImaging delegate within Hydra, calling:
sd->SamplePrimvar("/torus1_0", "basecolor", 1, times, values)
Will return a VtValue that has an array of 1 color.

Calling:
sd->Get("/torus1_0", "basecolor");
Will return a VtValue that has an array of 10 colors (which is expected).

Comments from @poljere :
We are not doing the right thing when sampling instance primvars. It does not look like a new issue though, more so a feature we never added to the sampling path. We would need to do something similar to what is happening during UpdateForTime in InstanceAdapter where we walk through the inherited primvars and collect their values.

Package Versions

USD 19.11rc1

@jilliene
Copy link

Filed as internal issue #USD-5630

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

3 participants