Interactive optics & photonics laboratory

ThePhotonicsBench

Build the setup. Watch the light do what light actually does.

A full optical bench in your browser, flat or in three dimensions. Drag lasers, lenses, prisms and interferometer arms onto a 25 mm breadboard and every beam is ray-traced live — real Snell refraction, real dispersion, real interference.

2D + 3D modes
19 components
19 ready setups
4 real glasses
Learn by building

A tour, then ten things to build

The tour walks you from an empty breadboard to a working measurement. After that you get a goal and a parts list, and you align it yourself. Nothing checks whether you clicked the right button — the criteria are read off the traced beam, so they tick when the optics genuinely works.

Start from a real setup

Eleven benches, already aligned

Every thumbnail below is the actual traced output of that setup — not an illustration. Pick one and it opens on the bench, live and editable.

Out of the plane

Eight more in three dimensions

The 3D bench gives every part a height and a tilt, so the beam can leave the table — a periscope, a two-level dog-leg, and screens that image in two dimensions instead of reading a single line.

Under the bench

The physics is computed, not drawn

Nothing here is a canned animation. Each ray carries a direction, a wavelength, a complex polarisation state and an accumulated optical path, and the picture is whatever falls out of that.

Non-sequential ray tracing

Rays find the nearest surface wherever it is. Beams double back, re-enter components and cross the table in any order — nothing is pre-sorted into a column of elements.

Snell with Sellmeier dispersion

Prisms and windows refract through real index data for N-BK7, N-SF11, fused silica and PMMA, including total internal reflection. Blue bends harder because n(λ) says so.

Jones-vector polarisation

Two complex field components per ray, in-plane and vertical. Malus's law comes out exact, and a λ/4 plate at 45° produces genuinely circular light.

Coherent summation at screens

Fields are added as complex amplitudes with their phase, per wavelength. Fringes are a result of optical path difference, never a texture painted on.

Diffraction that samples the field

A 40-micron slit collects light from a beam sampled every few hundred microns, the way a real mask does, and re-radiates it with the correct sinc envelope.

Instruments, not just pictures

Power meters integrate over their aperture in mW, µW or nW. Screens report pitch and visibility — and say so when a pattern is finer than the sensor can resolve, rather than reporting a number they cannot measure.

Two geometries, two engines

The 3D mode is a separate tracer with its own verification, not the flat one dressed up. Rays carry a moving transverse basis, so polarisation decomposes exactly into s and p at every oblique surface.

Checked against closed-form theory

It agrees with the textbook

The engine was run against analytic predictions before release. Residuals below are one or two screen bins — the sampling limit, not a modelling error.

TestSimulatedTheoryNote
Malus's law, 0–90°exactI₀cos²θ0.1% floor is the 1000:1 extinction ratio
Michelson fringe pitch0.867 mm0.906 mmλ ∕ 2θ at 0.02° mirror tilt
Mach–Zehnder pitch0.600 mm0.604 mmcomplementary output ports
Young's fringes, d = 0.2 mm1.524 mm1.582 mmλL ∕ d, invariant to ray count
Grating order m = ±1, 550 nm±41.4 mm±41.4 mmd(sinθ − sinθᵢ) = mλ
Lens focal spotmin at z = 100f = 100 mmrms width symmetric about focus
Prism, 430 → 670 nm+15.1 → −4.4 mmmonotonic in nN-SF11, V = 25.7
Read this before you trust a number

What it deliberately does not model

A simulator that hides its boundaries teaches the wrong lesson. These are the edges.

Diffraction is flat-mode only. The 3D bench carries 17 of the 19 components; the double slit and the single slit stay in the top-down mode, where their fans are traced in one plane. In 2D, screens also read a line profile rather than an image.

No Fresnel coefficients. Glass faces use a flat 98.5% transmission with no angle or polarisation dependence, so there is no Brewster angle and no ghost reflections. Total internal reflection is modelled.

Geometric rays, not Gaussian beams. There is no waist, Rayleigh range or diffraction limit in free propagation, so a perfect lens focuses to a mathematical point.

Ideal thin lenses. No spherical aberration, coma or astigmatism, and no thick-lens geometry. Chromatic aberration is available, because that one follows from n(λ).

The bench is already aligned

It opens on a live Michelson interferometer with tilt fringes on the screen. Nudge a mirror by a hundredth of a degree and watch them sweep.

The Photonics Bench633 nm · 25 mm grid
rays 0 segs 0 0.0 ms
drag to move · R rotate · ⌫ remove · scroll zoom
100 mm
drag orbit · ⇧drag pan · scroll zoom · drag a part to slide it · ⇧drag to raise it