Optical design & analysis

Design lens systems in the browser: non-sequential ray tracing, spot diagrams, wavefront error, PSF, MTF, through-focus z-stacks and an optimizer. Imports Zemax .zmx files.

The design tool runs entirely in your browser (the physics is compiled to WebAssembly): nothing to install, no account, and designs stay on your computer. The manual explains every part of it.

Getting started

The design page has four areas: the top bar (trace, settings, save, load, samples, this manual), the 3D view of the system and its rays, the panel on the right (Sources, Detectors, Optimizer, Sweep) and the surface table underneath, one row per surface.

The design page with the Cooke triplet sample loaded and traced.
The design page with the Cooke triplet sample loaded and traced.

The quickest start is a sample: SAMPLES ▾ → pick a system → ▶ (Trace). Every change you make afterwards is live: trace again to see it.

Sample systems

Classic systems to open from the SAMPLES menu, or by their link, each checked against its textbook behaviour (more in the manual):

  • Plano-convex singlet: N-BK7, f = 100 mm at f/5: the detector sits at best focus, short of the paraxial focus, where spherical aberration still blurs the spot.
  • Achromatic doublet: Cemented N-BK7 / F2, f = 100 mm: red and blue focus together (compare the singlet's colour).
  • Cooke triplet: The classic three-element anastigmat (Zemax's "Cooke 40 degree field"): f/5, three fields, three wavelengths.
  • Double Gauss: The six-element camera-lens workhorse (Zemax's "Double Gauss 28 degree field").
  • Petzval lens: Two achromats with a wide air gap (f ≈ 67 mm, f/4): sharp on axis, curved field off axis (the Petzval sum).
  • Newtonian telescope: 200 mm f/5 paraboloid with a 45° diagonal: perfect on axis, coma off axis.
  • Ritchey–Chrétien telescope: 200 mm f/12 two-hyperboloid Cassegrain (the Hubble design): free of spherical aberration and coma.
  • Galilean beam expander: f = −50 / +100 mm at 632.8 nm: a 2× expander with no internal focus.
  • Michelson interferometer: 50:50 beamsplitter and two flat mirrors (arms 100 / 103 mm), Mirror_1 tilted 0.05° about Y: the detector's INTERFERENCE tab shows straight fringes of period λ / sin 2α. Zero the tilt for one uniform tone; move a mirror to make the fringes run.
  • Mach–Zehnder interferometer: Two 50:50 splitters and two fold mirrors, with a weak lens (f = 2 m) in the test arm: the detector's INTERFERENCE tab shows circular fringes — the lens's spherical wavefront against the flat reference.
  • Right-angle prism (TIR): A solid N-BK7 prism folds the beam 90° by total internal reflection at its hypotenuse. A solid is traced non-sequentially; force Sequential (TRACE setting) and the reflected light is lost.