Re: Anyone knows how maya computes filmback translation?

Date : Sun, 3 Dec 2006 11:55:59 +0100
To : <XSI(at)Softimage.COM>
From : "Tim Leydecker" <BauerOink(at)gmx.de>
Subject : Re: Anyone knows how maya computes filmback translation?
Hi Philipp,

I guess you allready tried the easy way of exporting the
camera via .xsi and *.fbx (at least for getting an idea of
the required conversion settings or offsets).

IÂm not sure if this helps but Andy Walker has posted
two snippets of valuable info over at the maya(at)highend3d.com
list, here it is pasted in (RE: Converting AngleofView to Focal Length):

-------------------
Yeah, Maya cameras use horizontal angle of views, so using all the
horizontal data, the formula is:
horizontal angle of view = 2 * atand(0.5*film_back_width/focalLength)

The film back width needs to be converted from inches to mm,  so
multiply it by 25.4.

e.g. on a 35mm maya camera with an aperture of 1.417 inches:

float $angleOfView = 2 * atand(0.5*((1.417*25.4)/35));
print $angleOfView;
// 54.421607
------------------------

Whoops, i see you want the other way around..
well that should be:

float $angleOfView = 54.421607;
float $horizontalAperture = 1.417*25.4;
float $focalLength = (0.5*$horizontalAperture)/tand($angleOfView/2);
print $focalLength;
// 35mm

------------------------
According to Soren Kurgan Jacobson (same thread):

search the maya mel scripts, if I remember correctly the whole calc is in there

----------------


Hope this helps,


Cheers

tim



----- Original Message ----- From: "Philipp Oeser" <philipp.oeser(at)liga01.de>
To: <XSI(at)Softimage.COM>
Sent: Sunday, December 03, 2006 5:22 AM
Subject: Anyone knows how maya computes filmback translation?



Hi everyone,
I need to convert a XSI camera to Maya and I just cant figure out how maya computes the translation on the filmback. (their docs say "The values are normalized with respect to viewing area").
An example:
I have a 0,9802 inch x 0,7352 inch filmback in XSI with an -0,0307 inch horizontal filmback translation/optical center shift (here it is all in inches)
The cam in Maya (same filmback of 0,9802 inch x 0,7352 inch) seems to match at a Filmback translate H with a value of about -0.065. (All other settings in Filmback are standard, no scaling, no filmoffset, no lenssqueeze) (and matching also seems to be dependent on overscan).
Sorry, it's late at night and I cant get it right...


Any ideas?
Thanx in advance
Philipp

--

Philipp Oeser
Liga_01 Computerfilm GmbH
www.liga01.de

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.