Maya Alembic camera

892 views
Skip to first unread message

Stefan Andersson

unread,
Aug 16, 2016, 4:36:52 AM8/16/16
to gaffe...@googlegroups.com
As promised, here is a alembic camera exported from Maya. And I included a small gaffer scene. You can view the alembic camera in the viewport, if you in-click "view cameras", so I guess that's why it refuses to render even though it's set in the render options as a camera.

Maya 2015 sp6, "maya-native" alembic version
Gaffer 0.26.0.0
Arnold Arnold-4.2.14.0


best regards
stefan





--

Stefan Andersson, VFX Supervisor

Important Looking Pirates - ILP

cell: +46736268850

Skype: sanders3d

 

MayaAbcCamera.tar.gz

john haddon

unread,
Aug 16, 2016, 5:04:35 AM8/16/16
to gaffer-dev
Thanks Stefan,
I've attached an updated file, showing how to use the Set node to get the Alembic camera into the right set. With that I can execute the ArnoldRender node and get the image I think you expect. Let us know if that is working for you...
Cheers...
John
mayaAbcCameraFixed.gfr

Stefan Andersson

unread,
Aug 16, 2016, 5:21:39 AM8/16/16
to gaffe...@googlegroups.com
Kind of works, it reads the device aspect a bit wrong. But it renders and it has keyframes.

regards
stefan

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

clem...@themill.com

unread,
Apr 18, 2018, 8:54:21 AM4/18/18
to gaffer-dev
Hi Stefan,

Did you find a way to fix that aspect ratio ?


Clement.

Brian Meanley

unread,
Apr 18, 2018, 10:07:52 PM4/18/18
to gaffe...@googlegroups.com
I think I'm seeing some similar things here at the moment (incorrect FOV's from alembic cameras). It isn't exactly clear to me if this is always happening though, as I thought that some of our cameras were coming through fine. I'll have dig a bit deeper tomorrow. 

For clarification, the FOV seems to be set correctly as far as I can tell (it has the correct value in there), but the resulting view is off. Out of curiosity, how is the screen window parameter calculated? Seems like this parameter might be the culprit?

-Brian



--

John Haddon

unread,
Apr 19, 2018, 5:16:17 AM4/19/18
to gaffe...@googlegroups.com
The short answer here is that Gaffer's camera representation, as inherited from Cortex, is deficient. Rather than model a camera with film back etc, and deriving a screenWindow from that, Cortex models a camera "baked for rendering" with a screenWindow explicitly set already. If the aspect ratio of the render resolution doesn't match the aspect ratio of that screenWindow, then you'll get squashing. Instead we should be using a "film fit" rule to fit the resolution/screenWindow into the film back without distortion. The good news is that this is finally near the top of the pile for getting done...

In the shorter term, it might be useful to know that the screen window for the Alembic camera is taken directly from Alembic's own calculation :


And it might also be useful to know that you can manipulate the screen window in Gaffer by using a Parameters node and adding a Box2f parameter called "screenWindow".

Cheers...
John

--
John Haddon - R&D Programmer
Image Engine
studio: +1 (604) 874-5634 | jo...@image-engine.com | www.image-engine.com



15 West 5th Avenue, Vancouver, BC, V5Y 1H4, Canada

If you are not the intended recipient, disclosure, copying, distribution and use of this email is prohibited. Please notify us immediately and delete this email from your systems. You may contact us at in...@image-engine.com if you do not wish to receive further commercial electronic messages. We may still send you messages for which we do not require consent.

Brian Meanley

unread,
Apr 19, 2018, 1:05:43 PM4/19/18
to gaffe...@googlegroups.com
Thanks for the added info John.  Seeing that the screenWindow calculation is incorporating the overscan data, seemingly cleared things up pretty quickly.  In our case the screenWindow was getting extra padding because the Maya camera had extra overscan data set under the "display" section of the camera attributes. Resetting this value to 1.0 prior to publishing our cameras seems to have fixed things. 

Thanks again!

-Brian

Stefan Andersson

unread,
Aug 31, 2018, 9:30:57 AM8/31/18
to gaffe...@googlegroups.com
Love old threads :) 

I was was wondering if there is a “new” way of working with Alembic cameras ? I can’t get the Alembic cameras to be visible at all right now.

Regards
Stefan


To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
John Haddon - R&D Programmer
Image Engine
studio: +1 (604) 874-5634 | jo...@image-engine.com | www.image-engine.com



15 West 5th Avenue, Vancouver, BC, V5Y 1H4, Canada

If you are not the intended recipient, disclosure, copying, distribution and use of this email is prohibited. Please notify us immediately and delete this email from your systems. You may contact us at in...@image-engine.com if you do not wish to receive further commercial electronic messages. We may still send you messages for which we do not require consent.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.

Daniel Dresser

unread,
Sep 1, 2018, 8:41:33 AM9/1/18
to gaffer-dev
I'm not sure why cameras wouldn't be showing up currently.  This is with cache files that previously worked?  ( Aside from having to muck about with the set ).  I'll double check when I'm back at the office.  What do you see in the Scene Inspector?  Are there visibility attributes in your Alembic cache?

It might interest you to know that I'm currently in the middle of an overhaul of how Gaffer handles camera parameters, particularly focalLength/aperture - this will hopefully make it more natural to work with Alembic cameras once I get that out - though I don't think this will affect visibility of cameras.

Stefan Andersson

unread,
Sep 1, 2018, 9:51:37 AM9/1/18
to gaffe...@googlegroups.com
This is testing a camera that has been exported from Houdini. It works in Maya but doesn't show up either in the viewport or anywhere else. I'm importing is through the SceneReader.

While on the camera subject, any suggestions on how I would had aperature_size to the gaffer camera so that I can test dof in arnold?

regards
stefan



To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.

Stefan Andersson

unread,
Sep 1, 2018, 10:20:31 AM9/1/18
to gaffe...@googlegroups.com
never mind the DOF question. Works great with using the parameter node (found a old posting)

regards
stefan

John Haddon

unread,
Sep 1, 2018, 1:16:57 PM9/1/18
to gaffe...@googlegroups.com
Hi Stefan,
Can you post the file that isn't working for you? I've tested with other Alembic files and it is working fine...
Cheers...
John

Stefan Andersson

unread,
Sep 1, 2018, 2:12:25 PM9/1/18
to gaffe...@googlegroups.com
Hello John,
I don’t have internet access on my workstation,  but I’ll see if I can replicate it at home.

With 99% certainty it is a user error and not a gaffer error :)

Regards 
Stefan

Stefan Andersson

unread,
Sep 3, 2018, 6:00:37 AM9/3/18
to gaffe...@googlegroups.com
This is the error that the camera throws out


animCamera_take18: ignoring scaling component in camera matrix


It's bad that the camera is scaled, but shouldn't it render anyway? Maybe this is a arnold problem.

regards
stefan



To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.

Stefan Andersson

unread,
Sep 3, 2018, 6:03:37 AM9/3/18
to gaffe...@googlegroups.com
never mind.... user error. The camera renders fine :) It's just a warning

regards
stefan

Reply all
Reply to author
Forward
0 new messages