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

RenderMan transform, shader and geometry converters #6255

Merged
merged 8 commits into from
Feb 7, 2025

Conversation

johnhaddon
Copy link
Member

These will do much of the heavy lifting of the upcoming RenderMan backend. For the most part the conversions are all fairly straightforward, and the APIs should be fairly familiar due to being modelled closely on IECoreArnold. Things will get more interesting in the next PR which will actually introduce the Renderer subclass, where things get a little more involved.

@johnhaddon johnhaddon self-assigned this Feb 4, 2025
@johnhaddon
Copy link
Member Author

Let me know if you haven't started to review this one yet @murraystevenson. I have a few changes that might be easier to look at fresh rather than as diffs.

@johnhaddon
Copy link
Member Author

OK, I've pushed the latest versions - should be good for review now.

Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks John! Flagged a couple of minor things inline, feel free to address however you see fit and then merge.

struct AnimatedTransform : riley::Transform
{

/// Caution : `transformSamples` and `transformTimes` are referenced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transformTimes -> sampleTimes?

{

/// Caution : `transformSamples` and `transformTimes` are referenced
/// directly, and must live until the StaticTransform is passed to Riley.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StaticTransform -> AnimatedTransform?

vector<RtInt> tagArgCounts;
vector<RtInt> tagIntArgs;
vector<RtFloat> tagFloatArgs;
vector<RtToken> tagStringArgs;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tagStringArgs appears to be unused?

These make it easy to convert a transform in Imath/Gaffer format to a `riley::Transform` to be used with the RenderMan API.
This will be used to convert shaders in the upcoming RenderMan renderer backend.
This will provide geometry conversion services for the upcoming renderer backend.
@johnhaddon
Copy link
Member Author

Flagged a couple of minor things inline

Thanks for spotting those - I've squashed the fixes in and am merging.

@johnhaddon johnhaddon merged commit e8f65bb into 1.5_maintenance Feb 7, 2025
5 checks passed
@johnhaddon johnhaddon deleted the rileyAlgoPR branch February 7, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants