|
From: | Peter Hillman |
Subject: | Re: [Openexr-devel] Camera matrices in sxr files |
Date: | Wed, 04 Feb 2009 10:24:09 +1300 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090105) |
This came up on the renderman forum last year: https://renderman.pixar.com/forum/showthread.php?s=&threadid=10209Florian's suggestion was to use <view>.worldToCamera and <view>.worldToNDC as the attribute names, except the Default View (the first view listed in the multiView attribute), which remain worldToCamera and worldToNDC, so that non-sxr aware software (which only loads the default view) would pick up the corresponding worldToCamera/worldToNDC So if you have left-eye as hero eye you'd have worldToCamera for the left and right.worldToCamera for the right
Jeff Clifford wrote:
Hi,I have a question about how best to store the camera matrices in an sxr file for the left, right (and maybe mono) cameras.Is the best way to go to simply add some new attributes to the header like:header.insert( "worldToCamera_left", Imf::M44fAttribute (Nl_left) ); header.insert( "worldToNDC_left", Imf::M44fAttribute (NP_left) ); header.insert( "worldToCamera_right", Imf::M44fAttribute (Nl_right) ); header.insert( "worldToNDC_right", Imf::M44fAttribute (NP_right) ); rather than use the stadard attributes of worldToCamera & worldToNDC?Or is there some smarter way of having the standard attributes as a vector attributes in some way to allow for multiple camera matrices?Thanks, Jeff Clifford.
[Prev in Thread] | Current Thread | [Next in Thread] |