Skip to content

Makes the 'ids' for a UsdGeomPointInstancer available to shaders#3977

Open
crydalch wants to merge 1 commit intoPixarAnimationStudios:devfrom
crydalch:pointinstancer-shader-ids
Open

Makes the 'ids' for a UsdGeomPointInstancer available to shaders#3977
crydalch wants to merge 1 commit intoPixarAnimationStudios:devfrom
crydalch:pointinstancer-shader-ids

Conversation

@crydalch
Copy link
Contributor

@crydalch crydalch commented Feb 9, 2026

Description of Change(s)

Makes the 'ids' for a UsdGeomPointInstancer available to shaders, without requiring users author a separate Primvar for this purpose. The mesh has matching values for ids, authored as a Primvar, just to visually ensure we're getting the same results.

Storm_PointInstancer_IDs

It doesn't preclude authoring a different primvars:ids, as explicitly authored primvars:ids take precedence. We also did some testing with an internal build of Karma, and are seeing the same, expected behavior.

Storm_PointInstancer_IDs_existing

Here are the scene files we used for testing:

PointInstancer_IDs_test_scenes.zip

Fixes Issue(s)

#3976

Storm

In order to validate this with Storm, we had to make some changes, which are in this patch. However we aren't sure if the Storm/UsdMaterialX changes are the best way forward. We leave the patch here, for any interested parties to pick up as a starting point for having Storm to support integer primvars, as we probably aren't best situation to shepherd this into the baseline :)

ids_Storm_MtlX_support.patch

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11872

(This is an automated message. See here for more information.)

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.

2 participants