-
Notifications
You must be signed in to change notification settings - Fork 126
USD CameraAlgo : Fix reading and writing of cameras without shutter values #1472
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
USD CameraAlgo : Fix reading and writing of cameras without shutter values #1472
Conversation
LGTM.
Yeah, given where we are in the Gaffer 1.5 lifecycle, I think we'd be better off holding this till Gaffer 1.6. @ivanimanishi, it would be good to have a conversation on this general topic. I think the gist from our point of view is this :
I think it's fair to say that the initial blocker here is the Image Engine resourcing needed to remove the legacy code from IECoreMaya, and we've been waiting on this for years now. I have a proposal that I hope allows us to get unblocked :
The odd part here is that there'd be a period where IECoreMaya has some non-working legacy functionality. But it occurs to me that we could remove IECoreMaya from Cortex for 10.6 anyway, with it becoming an internal IE project from that point. I think it's fair to say that Cortex's open-source life is limited to it's intersection with Gaffer at this point, so this might actually be quite logical in itself? Would be great to get your thoughts, @ivanimanishi. As I say, we're highly motivated to try to get the ball rolling here... |
@johnhaddon, I agree with your proposal. |
That's great, thanks @ivanimanishi! @murraystevenson, let's get this PR targeted to |
Just to clarify, does this include removing IECoreMaya from the public repo? And if so, do you think the same should apply to IECoreNuke and IECoreHoudini? |
This avoids baking in our default [-0.5, 0.5] shutter when writing a camera with no shutter to USD.
This avoids cameras read from USD files ending up with USD's default [0, 0] shutter when the USD camera has no shutter values.
d9c39c9
to
494496c
Compare
I didn't get that from your proposal, but I think it makes sense, particularly if we don't know of anyone else using
Yes. |
This has been switched over to a now up-to-date |
This improves how we deal with the camera shutter when reading and writing cameras to USD. Previously we'd always read/write shutter values even if the shutter wasn't authored, which resulted in baking in either Cortex's default shutter value when writing a camera with no shutter to USD, or USD's default shutter value when reading a camera with no shutter from USD. This would make it hard to USD round-trip cameras without a shutter parameter, as they'd come back in with a baked-in
-0.5, 0.5
shutter, and reading cameras authored in other DCCs with noshutter:open
andshutter:close
attributes would result in a shutter parameter of0, 0
as noted by @masterkeech in Gaffer #6431.While this is a fix and I've currently made this PR to
RB-10.5
, this is a change in behaviour and would be better held back for a major Gaffer release though we've yet to make a call on how to handle Cortex across the upcoming Gaffer 1.5/1.6 transition so I've marked this as draft while we figure that out...