Home · Lab · Camera & Lens Lab

L3 Depth of field and bokeh

How big a blur disc gets is computable

Camera & Lens Lab · ~8 min · In pack $15

1 The idea

A light that isn’t at the focus distance becomes a disc (the circle of confusion). Its size depends on focal length (f), f-stop (N), focus distance (S) and the light’s distance (D). Long lens, wide aperture, close focus = lots of blur.

In comp, defocus has to grow the blur like the real lens, not blur everything equally. Below are real Blender renders to compare, and bokeh traced through real lens prescriptions: a bright rim behind focus, a soft edge in front of it, and cat’s-eyes towards the frame edge.

CoC = f² / (N·(S − f)) · |D − S| / D

2 Hands-on

Try it · ~8 min

How big a blur disc gets is computable

Focus on the robot (9 m), use a long lens and open the aperture

SkyVFX Lab · L3interactive · 1001

Where the numbers come from: Lens maths is the standard thin-lens model (FOV, CoC, hyperfocal), using CoC = sensor diagonal ÷ 1500, a common convention rather than a fixed rule. Distortion uses the Brown–Conrady model (k1, k2). The real DOF images are Blender Cycles renders. The real lens bokeh strip below is ray-traced through a published Double-Gauss prescription (Smith, Modern Lens Design) by our own tracer, plus an in-house Tessar-type design for contrast (not a commercial lens). Behind focus = a light at infinity with focus at 1.5 m; in front = a light at 0.8 m with focus at 3 m; round iris; the traced f-stop nearest yours is shown (f/2, f/2.8, f/5.6), each at matched exposure.