Sub topic 4
Focal Length in Millimeters
This chapter assumes that you can navigate the 3D viewport, select objects, and use the Properties editor. You should also know that a camera object uses separate camera data, where lens settings are stored.
What focal length controls
Focal length is the distance, measured in millimeters, between a camera lens's optical center and its image sensor when the lens focuses at infinity. In Blender, the camera data property named Lens represents focal length.
A shorter focal length shows more of the scene. A longer focal length shows less of the scene and makes the subject appear larger when the camera stays in the same position.
Common starting points include:
| Focal length | Typical use | View |
|---|---|---|
| 18–28 mm | Architecture, landscapes, wide interiors | Wide |
| 35–50 mm | General shots and natural-looking views | Normal |
| 70–200 mm | Portraits, details, distant subjects | Telephoto |
These ranges are guidelines, not strict categories. The visible result also depends on the camera sensor size and the render aspect ratio.
Changing the lens in Blender
Select a camera object. In the Object Data Properties tab, open the camera settings and change Lens. Blender displays the value in millimeters.
You can also use the sidebar:
- Select the camera.
- Open the N panel in the 3D viewport.
- Use the camera's transform controls to place it.
- Return to the camera data properties to change the lens.
A 24 mm lens gives a broad view. An 85 mm lens gives a narrow view. If the camera does not move, changing the lens changes how much of the scene fits inside the frame.
import bpy
scene = bpy.context.scene
camera = scene.camera
if camera is None:
camera_data = bpy.data.cameras.new("ShotCamera")
camera = bpy.data.objects.new("ShotCamera", camera_data)
scene.collection.objects.link(camera)
scene.camera = camera
camera.data.lens = 50
print(f"Active camera lens: {camera.data.lens} mm")Lens choice and perspective
Focal length does not independently distort perspective. Perspective depends on the camera's position relative to the subject. However, lens choice changes the framing, so artists often move the camera to keep the subject the same size. That movement changes perspective.
For example, suppose a person fills the frame:
- With a wide lens, the camera must be close to the person. Near features, such as the nose, appear larger than distant features.
- With a telephoto lens, the camera must be farther away. Facial features appear more compressed, and the background seems closer to the subject.
This is why a wide lens can feel expansive or exaggerated, while a telephoto lens can feel compressed or isolated.
A practical comparison
Create a simple subject and place a camera several meters away. Render or preview the scene at 24 mm, 50 mm, and 85 mm. Keep the camera position unchanged. The subject will occupy different portions of the frame.
Then move the camera backward for the 85 mm lens until the subject matches the 24 mm framing. Compare the background. The subject size is similar, but the background spacing and perspective have changed because the camera position changed.
Exercise
A camera uses a 35 mm lens. You change it to 100 mm without moving the camera. What happens to the frame?
Show answer
The field of view becomes narrower, so less of the scene is visible and the subject appears larger in the frame.