Skip to content

USD PointInstancerAlgo : Support orientationsf attribute - #1560

Merged
murraystevenson merged 1 commit into
ImageEngine:RB-10.6from
johnhaddon:pointInstancerFloatOrientation
Sep 9, 2026
Merged

USD PointInstancerAlgo : Support orientationsf attribute#1560
murraystevenson merged 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?

@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...

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 force-pushed the pointInstancerFloatOrientation branch from 48bfca9 to a68f840 Compare September 9, 2026 08:02
@johnhaddon

Copy link
Copy Markdown
Member Author

USD provides UsesOrientationsf,

Thanks - I hadn't spotted that. Updated to use it in a68f840.

@murraystevenson
murraystevenson merged commit 2e505fc into ImageEngine:RB-10.6 Sep 9, 2026
9 of 10 checks passed
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