This came up on the renderman forum last year:
https://renderman.pixar.com/forum/showthread.php?s=&threadid=10209
Florian'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.
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/openexr-devel