Sub topic 1
The camera object and its camera data
Blender treats a camera as two linked pieces. The camera object is the item in your scene that has a location and rotation. The camera data holds the lens and sensor settings. One camera data block can be shared by several objects.
Prerequisites
You should be comfortable with orbiting, panning, and zooming in the 3D viewport, selecting objects, and using the Properties editor. Familiarity with the N sidebar helps. The Python example at the end uses the bpy API, so basic Python is useful there.
Setting the active camera and looking through it
A scene renders through one camera at a time, called the active camera. To make a selected camera active, press Ctrl+Numpad 0. Press Numpad 0 to toggle camera view, which shows the scene as the render will frame it.
Sensor size and sensor fit
The sensor is the virtual surface that records light, and its width sets how much of the scene fits in the frame. The default width is 36 mm. The sensor fit setting decides which sensor dimension the frame matches when the render aspect ratio changes. Auto fits the longer side, while Horizontal and Vertical lock one side.
Focal length in millimeters
Focal length is the distance from the lens to the sensor when the subject is in focus, measured in millimeters. A short focal length, such as 24 mm, gives a wide view. A long one, such as 85 mm, gives a narrow view. The default is 50 mm.
How focal length and sensor size set the field of view
The field of view (FOV) is the angle the camera sees. For the horizontal direction:
FOV = 2 × atan(sensor width / (2 × focal length))
With a 36 mm sensor and a 50 mm lens, the horizontal FOV is about 39.6 degrees.
import bpy
import math
scene = bpy.context.scene
cam_data = bpy.data.cameras.new("ShotCamera")
cam_data.lens = 50
cam_data.sensor_width = 36
cam_obj = bpy.data.objects.new("ShotCamera", cam_data)
scene.collection.objects.link(cam_obj)
cam_obj.location = (7.0, -7.0, 5.0)
scene.camera = cam_obj
fov = 2 * math.atan(cam_data.sensor_width / (2 * cam_data.lens))
print(f"Horizontal FOV: {math.degrees(fov):.1f} degrees")Exercise
If you keep the 36 mm sensor and change the focal length from 50 mm to 24 mm, does the horizontal field of view get wider or narrower?
Show answer
It gets wider. A shorter focal length on the same sensor produces a larger angle, about 73.7 degrees instead of 39.6 degrees.