Skip to main content
Sandbox Physics

Optics 026 · Imaging, instruments, and visual systems

Photography Optics Playground

From one camera position, what do focal length and aperture change in a photo? Focal length sets how much of the scene fills the frame and how large things appear. The entrance pupil, the lens opening as seen from the front, sets defocus blur, depth of field and diffraction. Perspective depends only on where the camera stands, so from a fixed spot zooming in just gives a crop of the same view.

A 2D full-frame camera bench links a lens carriage that moves with focal length, the entrance pupil, a fixed sensor, ray fans for three depths, calculated spot circles, a depth-of-field threshold, exposure stops and the growth of diffraction. It keeps focal length and perspective separate.

Interactive modelPhotography Optics Playground
Horizontal field and entrance pupil FOVh, D\mathrm{FOV}_h,\ D0.500.50
Depth-of-field interval and defocus circles DN, DF, cD_N,\ D_F,\ c50%50\%
Airy diameter, exposure, and perspective invariant dA, ΔEV, Πd_A,\ \Delta\mathrm{EV},\ \Pi0.00π0.00\pi
Model regimevalid model regime\text{valid model regime}

Physics tutorial

Audit the physics of Photography Optics Playground

BackgroundThe camera model combines the lens equation with an entrance pupil of finite size. The focus distance fixes the sensor distance through 1f=1u+1v,D=fN\frac{1}{f}=\frac{1}{u}+\frac{1}{v},\qquad D=\frac{f}{N}. With the sensor fixed there, rays from any other depth cross in front of it or behind it and land as a spot of finite size.

Why it mattersFrom one camera position, what do focal length and aperture change in a photo?

Start with the essentials

Focus question
From one camera position, what do focal length and aperture change in a photo?
One-sentence intuition
Tracing the two pupil edges to the fixed sensor gives the paraxial circle of confusion directly: c=D∣1−vsvo∣c=D\left|1-\frac{v_s}{v_o}\right|. From a fixed viewpoint, focal length changes the framing and the image scale. Perspective depends on the ratios of object distances, so it changes only when the camera moves or the scene changes.

Core mathematical model

Field of view and entrance pupil

FOVh=2arctan⁡ ⁣(ws2vs),D=fN\mathrm{FOV}_h=2\arctan\!\left(\frac{w_s}{2v_s}\right),\qquad D=\frac{f}{N}

The sensor is thirty-six millimetres wide. Its distance from the lens comes from the lens equation for the chosen focus distance, and it approaches the focal length when focusing far away. Changing the f-number changes the diameter of the ray bundle.

Depth of field from a conventional blur limit

H=f2Nc0+f,DN=HuH+u−f,DF=HuH−u+fH=\frac{f^2}{Nc_0}+f,\quad D_N=\frac{Hu}{H+u-f},\quad D_F=\frac{Hu}{H-u+f}

The near and far limits are not sharp physical boundaries of focus. They are the object distances at which the geometric blur on this sensor reaches the conventional threshold.

Diffraction tradeoff

dA≈2.44λNd_A\approx2.44\lambda N

Stopping down shrinks the geometric defocus circles but widens the first dark ring of diffraction. The aperture-sweep plot shows both on the same sensor scale.

Common difficulties

Claiming focal length changes perspective

Typical misconceptionA wide lens exaggerates near objects and a long lens compresses distance even when the camera never moves.

Better mental modelFrom one viewpoint, two objects of equal height have an image-size ratio set by the ratio of their distances. Changing focal length scales both images together and only crops the frame differently. The familiar perspective change happens when the photographer moves to get the same framing back.

Run the experiment

  1. 01

    Scene 1: Fixed-viewpoint framing

    Open fixed-viewpoint framing. Drag focal length and watch the field cone narrow while the displayed perspective invariant stays the same.

    What to observe: The focused gold bundle always meets at one point on the sensor, wherever its rays crossed the pupil. The foreground and background bundles stay spread out, defocused in opposite directions.
  2. 02

    Scene 2: Aperture and defocus

    Switch to aperture and defocus. Sweep the f-number and compare the diameter of the nine-blade pupil, the spread of the five rays on the sensor, and the foreground and background blur.

    What to observe: A longer focal length narrows the field of view and enlarges the image, but the size ratio between the near and far objects of equal height stays fixed, because none of the three object distances has changed.
  3. 03

    Scene 3: Depth-of-field versus diffraction

    Open the depth-of-field versus diffraction scene. Stop down step by step, watch the marked depth range, and find the point where the smaller defocus blur no longer makes up for the growing Airy pattern.

    What to observe: A high f-number can bring more of the scene below the conventional blur threshold, yet diffraction still lowers the contrast of fine detail. Depth of field and resolving power are different things.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy