|02 February 2013||#1|
Respect The Architectportfolio
Florian von Behr
The Scope GmbH & Co. KG
Join Date: Jan 2003
MEL - Angle of View
is there any way to read the Angle of View (instead of the Focal Lenght) of a camera via MEL or and expression? It seems there is no getAttr or setAttr for it.
If this is not possible, how would I calculate the AOV from the Focal Length?
|02 February 2013||#2|
Join Date: Dec 2006
You need to known factors: the focal length f and the size of the camera aperture d (actually the film/ccd sensor size, but in Maya this would be the effective aperture). By default, aperture is equal to a 35mm image. While there are actually 3 angles of view (vertical, horizontal and diagonal), Maya only shows us the horizontal angle, as calculated by the following formula:
angle of view = 2 x atan(d / (2xf));
Note that Maya seems to use some rounding internally, so the resulting values are not exactly identical.
aweControlPicker (GUI Picker for Maya)
|02 February 2013||#4|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|