MYSIMULATOR / OPTICSThe optical bench
INTERACTIVE MODEL
LIGHT & CAMERAS · OPTICAL GEOMETRY

Why Lens-Edge Bokeh Turns into Cat-Eyes

A camera lens does not always show an out-of-focus point as a perfect circle. Follow the clipped pupil to see why.

THE QUESTION

Why do blurred lights near the edge of a photograph become crescent-shaped?

LIVE PUPIL VIEWILLUSTRATIVE GEOMETRY
DRAG TO PANPUPIL CLEARHIGH DETAIL
OBSERVE

On-axis, the barrel opening contains the full pupil. The out-of-focus point keeps a round outline.

CHIEF-RAY SHIFT ILLUSTRATIVE
16.16 mm
d = L tan θ
PUPIL TRANSMISSION ILLUSTRATIVE
— %
overlap area / pupil area
BOkeh DIAMETER TEXTBOOK MODEL
— mm
ideal thin-lens, paraxial estimate
TRANSMITTING AREA ILLUSTRATIVE
— mm²
intersection of two circular stops
MEASURE & COMPARE

Find the half-light angle

ILLUSTRATIVE SWEEP

Sweep the field angle until the pupil transmits half its on-axis area. Compare a 0.1° measurement sweep with a bisection solution of the overlap equation.

0° FIELD35° FIELD · ILLUSTRATIVE RANGE
MEASURED SWEEP · ILLUSTRATIVE—
BISECTION · TEXTBOOK MODEL—
NUMERICAL DIFFERENCE—
MODEL VALIDATION

Numerical checks

NUMERICAL

Independent identities and a numerical ray-slice integral are evaluated against the current settings.

On-axis circle identityClosed-form area at zero shift
0.00%
Swapped-stop symmetryExchange pupil and barrel radii
0.00%
Ray-slice integrationNumerical quadrature vs exact overlap
0.00%
ALL CHECKS WITHIN NUMERICAL TOLERANCE
REFERENCE NOTESThe science+

Governing geometry

The ideal entrance-pupil radius is R = f / (2N), where f is focal length and N is f-number. For parallel opening planes separated by L, a chief ray at field angle θ shifts the second opening by d = L tan θ.

The transmitted pupil is the intersection of circles with radii R and B, whose centres are separated by d. Its area is calculated from the exact two-circle intersection formula, including the contained-circle and disjoint-circle limits.

Defocus and bokeh

For a distant point source and a thin lens, similar triangles give a sensor blur radius r ≈ R |Δz| / f, where Δz is sensor displacement from the ideal image plane. The blur outline is the transmitted pupil mapped onto the sensor. The preview enlarges that outline for visibility; its display scale is not a physical sensor scale.

Transmission is the overlap area divided by the full pupil area. It is a geometric throughput fraction, not a complete prediction of image brightness.

What is simplified

The model uses two circular, parallel openings, a thin lens, a distant point source and paraxial blur scaling. Real lenses have curved and tilted elements, pupil aberration, multiple stops, coatings, diffraction, sensor microlenses and wavelength-dependent effects. Their entrance and exit pupils may be virtual and need not be the same size.

All slider dimensions are illustrative. The equations are textbook geometric optics; the chosen lens geometry is not a specification for a commercial lens.

Made with 🤖 ChatGPT