3D Graphics
Focal Simulation
[ Back ]
We will try to simulate a type of focal lens with Imagine, the purpose is to know the focal length used for an image and especially to define oneself a focal length.
Definition of a lens focal length
"The length is the distance between the nodal point (or optical center) and focus. The focus is a fixed point through which pass all the light rays coming from infinity. A change of focal length is changing the angle field (the size of the portion of sphere) covered by the lens."
Other Definition :http://www.multimania.com/ccabasse/lexique.htm#focale (in french)
The angle of view
The vue angle of the human eye to be roughly 50 degrees, the following formula gives the angle along the length of the lens used and the size of the negative (which may be associated with the camera projection plane Imagine).
AV = 2 * Atan( Di / (2 * focal) )
with :
- AV = vue angle in degrees.
- Di = Diagonal of the film (negative or projection plane) in mm.
- focale = Focal Length used in mm.
Assuming we use a standard film 24 * 36 mm, we have:
Di = SQR(W * W + H * H)
with :
- W = width of the film.
- H = height of the film.
For 24*36 mm diagonal of the film is : Di = 43.2666 mm
We can deduce these different angles relative to the lens used.
| Focal |
Vue angle |
| 28 mm |
75.3806° |
| 35 mm |
63.45° |
| 50 mm |
46.7929° |
| 70 mm |
34.3472° |
| 85 mm |
28.5583° |
| 100 mm |
24.4137° |
| 200 mm |
12.3459° |
| 300 mm |
8.25° |
| 500 mm |
4.9548° |
Objective / film and Imagine camera
 |
This figure could be the film (parallelogram ABCD), and the lens focal length (segment EF),
the Imagine camera projection plane could be the parallelogram ABCD (characterized by size in X and Z of the camera), and the focal length (segment EF) the Y size of the camera.
|
To be shure, take the problem in reverse, suppose you want to simulate a 50 mm lens. In the stage editor edit the camera and put in Size X = 36 and Z = 24, and let the value of Y (which normally should be the focus) as it is.
According to the formula of the angle of view, a 50mm lens have an angle of 46.7929 ° (the angle formed by the segments AF and CF), we deduce the angle formed by the segments FA and FE, which is 23.3964 degrees.
Consider now the triangle AFE, and let Ag (actually AV / 2) the angle formed by the segments AF and FE, the metric relationships of the right triangle gives us:
Tan(Ag) = AE / FE
We therefore :
FE = AE / Tan(Ag)
With:
- Tan(Ag) = Tan(23.3964) = 0.4326
- AE = Di / 2 = 21.6333
We therefore FE (which is the Y axis of the camera) :
FE = Y = 50.0076 for a length of 50 mm!!
We can consider with Y = 50 the simulated length is 50 mm
|
With the size of X axis of the camera to 36, the size of the Y axis gives the length of the lens used.
It follows this formula to know the focal length used at any time, regardless of the values in X and Y.
focal length = ( 36 * Y ) / X
|
To make this experience evidence, make a new project with the default camera and a subject.
At frame 1 let the size of the camera like that (ie X = 320, Y = 391.918365, Z = 240), copy the camera on frame 2 in the action editor Edit the size of the camera with X = 36, Z = 24.
It remains to define the focal length used in frame 1 to deduce the size of the Y axis of the camera in frame 2:
focal lens = ( 36 * Y ) / X
focal lens = ( 36 * 391.918365 ) / 320
focal lens = 44.09081606
The lens used in frame 1 is therefore 44.09081606 mm, in frame 2 with an camera Y axis size set to 44.09081606 , the two frame will be have exactly the same shot.
Some shooting a subject with different focal lengths.
The cylinders are 100 units in height, and placed as follows:
Top view
Matrix 50 units
| Focal length of 28 mm |
Focal length of 35 mm |
Focal length of 50 mm |
 |
 |
 |
X=36 et Y=28 75.38 degrees field of view |
X=36 et Y=35 63.45 degrees field of view |
X=36 et Y=50 46.79 degrees field of view |
| - |
| Focal length 70 mm |
Focal length 85 mm |
Focal length 100 mm |
 |
 |
 |
X=36 et Y=70 34.34 degrees field of view |
X=36 et Y=85 28.55 degrees field of view |
X=36 et Y=100 24.41 degrees field of view |
| - |
| Focal length 200 mm |
Focal length 300 mm |
Focal length 500 mm |
 |
 |
 |
X=36 et Y=200 12.34 degrees field of view |
X=36 et Y=300 8.25 degrees field of view |
X=36 et Y=500 4.95 degrees field of view |
Here's the same shot with this time changing the film (the subject is at a distance of 50 units in the 3 shots):
| Focal length 50 mm |
Focal length 50 mm |
Focal length 90 mm |
 |
 |
 |
| Film 24 * 36 mm |
Film 60 * 40 mm |
Film 60 * 40 mm |
| 49.79° field of view |
71.59° field of view |
43.66° field of view |
|