3D Graphics
Diaphragme Simulation
[ Back ]
The Diaphragm
"The diaphragm allows you to spend more or less light into the film, the aperture diameter is expressed in relation to the focal."
"An objective of 50mm open as f/2 have in real a diameter ouveture of 25mm. The amount of light depending on the surface (the square of the radius) to get half the light, dividing the diameter by 1,4 (root 2). This gives the standard series of openings: 1 1.4 2 2.8 4 5.6 8 11 16 22 32 45 64. "
The depth of field
"The area of sharpness in a scene with an objective view is between two planes. The depth of field is the distance between these two planes."
Depth of field and aperture
"More the aperture is closed, more light rays form a sharp angle, and the circle on the film is small, then net."
The hyperfocal
"The hyperfocal distance is the minimum focusing such an object at infinity distance is clear. focuse at the hyperfocal, it is clear from half the hyperfocal distance to infinity. "
Calculation of depth of field
Here is a formula (given by Dolphin), to calculate the depth of field, this formula is valid only if the distance of focuse is several times the focal length used.
H = f ² / k * n
With:
- H = Hyperfocal distance.
- f = focal length in mm.
- k = 0.033 (constant of 24 * 36 mm).
- n = diaphragm.
The depth of field and given by the following relations:
D1 = ( H * D ) / ( H - D)
D2 = ( H * D ) / ( H + D)
PC = D1 - D2
With :
- H = Hyperfocal distance.
- D = focuse distance in mm.
If the depth of field (PC) is negative, the image will be clear from D2 to infinity, otherwise all the objects located between D2 and D1 will be net. Before D2 and after D1 objects will be blurred.
Practical application to Imagine
We will therefore attempt to simulate Imagine the usual aperture size. You must download the various objects that contains the test scene.
Run Imagine, go to the stage editor, and load 2 objects from the scene.
Place the camera like this :
- Position (0,-350,160)
- Size (36,50,24)
These size values for the camera simulates a focal length of 50 mm. Make [CTRL K] (Camera Retrack) and choose "SUJET" as the point of sight, the camera points now on the only green sphere group. Let [S] (scale) and make the projection plane of the camera at the green sphere (see figure below).
Side View
resize the camera on all axes at the same time does not change the focal length of it, we always have a focal length of 50 mm.
 |
Go to the Action Editor, add a camera at frame 1 to frame 1 as shown in figure. Copy and paste this camera now on the first 10 images.
Options Aperture Size Is and Aperture Size (DOF) are used to define the opening of the camera, let "Aperture Size Is" on "Actual Size" (which actually link the X size of the camera with the opening) and Aperture Size (DOF) to 0 at frame 1.
|
| |
Now we apply the formulas mentioned earlier in this case, our camera have a 50mm focal length, take as scale representation in Imagine 1 unit equals 10 mm, then the spheres are 10 cm in diameter.
Detail the calculation of depth of field for an aperture of 5.6 for example.
H = f ² / k * n
H = 50 ² / 0.033 * 5.6
H = 13528.1385
We conclude therefore D1 and D2, with D equal to the Y size of the camera but the camera size is in mm and not Imagine unit (which is why it is important to match the projection plane with the area covered by the camera). With D = 3835.7034 (Size Y = 383.57034), which should roughly correspond to your Y value of the camera, we have:
D1 = ( H * D ) / ( H - D)
D1 = 5353.6522 mm
D2 = ( H * D ) / ( H + D)
D2 = 2988.3897 mm
The depth of field for an aperture of 5.6 is therefore :
PC = D1 - D2
PC = 2365.2625 mm
all depths following field diaphragm used.
| Aperture Depth |
Depth of Field (m) |
Comments |
| 1 | 0.39 m | I do not know if a lens can be completely open |
| 1.4 | 0.55 m | Net from 3.58 m to 4.13 m |
| 2 | 0.78 m | Net from 3.48 m to 4.27 m |
| 2.8 | 1.11 m | Net from 3.36 m to 4.47 m |
| 4 | 1.62 m | Net from 3.19 m to 4.81 m |
| 5.6 | 2.37 m | Net from 2.99 m to 5.35 m |
| 8 | 3.72 m | Net from 2.73 m to 6.45 m |
| 11 | 6.19 m | Net from 2.46 m to 8.66 m |
| 16 | 18.08 m | Net from 2.12 m to 20.20 m |
| 22 | n/a | Net 1.81 m to infinity |
| 32 | n/a | Net de 1.46 m to infinity |
| 45 | n/a | Net de 1.17 m to infinity |
| 64 | n/a | Net de 0.90 m to infinity |
We have defined the Imagine camera parameters to link the axis of X and the depth of field (radio button Actual Size).
The relation camera size X / Depth of field gives us the value to enter as parameter for Aperture size (DOF), the X size and depth of field must be expressed in real units (meters or mm).
We deduce posibles values for Aperture Size (DOF): :
| Aperture |
Depth of field (meters) |
Aperture Size (DOF) |
| 1 | 0.39 m | 7.092000 |
| 1.4 | 0.55 m | 5.053216 |
| 2 | 0.78 m | 3.518659 |
| 2.8 | 1.11 m | 2.488330 |
| 4 | 1.62 m | 1.704647 |
| 5.6 | 2.37 m | 1.167610 |
| 8 | 3.72 m | 0.742960 |
| 11 | 6.19 m | 0.445884 |
| 16 | 18.08 m | 0.152753 |
| 22 | n/a | 0.1 |
| 32 | n/a | 0.07 |
| 45 | n/a | 0.03 |
| 64 | n/a | 0.01 |
Values in red are not calculated values, because there is no depth of field for these openings, please still enter in Imagine, to see if simulating an opening who does not generate depth of field, Imagine don't generates them !.
Here are the results of different reports :
| Diaph |
Rendering |
| Nothing |  |
| 1 |  |
| 1.4 |  |
| 2 |  |
| 2.8 |  |
| 4 |  |
| 5.6 |  |
| 8 |  |
| 11 |  |
| 16 |  |
Openings 11 and 16 were identical to my eyes with the shot without depth of field, and aperture values over 16 does not blur.
Here is another example (without calculations) using the same principle.
|