Skip to content

USD PointInstancerAlgo : Support orientationsf attribute - #1560

Open
johnhaddon wants to merge 1 commit into
ImageEngine:RB-10.6from
johnhaddon:pointInstancerFloatOrientation
Open

USD PointInstancerAlgo : Support orientationsf attribute#1560
johnhaddon wants to merge 1 commit into
ImageEngine:RB-10.6from
johnhaddon:pointInstancerFloatOrientation

Conversation

@johnhaddon

Copy link
Copy Markdown
Member

This is a float-precision version of the original half-precision orientations attribute. A separate attribute name is needed in USD because USD attributes are strongly typed. But Cortex primitive variables can take any data type so we stick with our standard orientation name regardless of type. This avoids any ambiguity about which attribute takes precedence.

This PR is for Cortex 10.6, destined for a Gaffer 1.6 patch version. For 10.7/1.7 we should also decide what to do when writing PointInstancers to USD. I'm inclined to always write to orientationf, but perhaps we'll want to gate it with an environment variable?

This is a float-precision version of the original half-precision `orientations`
attribute. A separate attribute name is needed in USD because USD attributes are strongly typed. But Cortex primitive variables can take any data type so we stick with our standard `orientation` name regardless of type. This avoids any ambiguity about which attribute takes precedence.
@johnhaddon johnhaddon self-assigned this Sep 8, 2026
@murraystevenson

Copy link
Copy Markdown
Collaborator

LGTM. You may have already seen this, but USD provides UsesOrientationsf, which may be preferable to our own fallback, but I'm good either way...

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