3D Prism Dispersion: How a Glass Prism Splits White Light

A Blender-built optical bench: a slit lamp, a 60 degree glass prism on a turntable and a screen. Vector ray tracing with real Sellmeier glass data.

Switch to 2D

Presets

Playback

Parameters

Camera

Layers

Quality

Model check

The science

What is modelled

A narrow slit of white light is sent across a 60 degree glass prism standing on a turntable. At each of the two glass faces the beam is refracted according to Snell's law, and because the refractive index of glass is slightly larger for violet than for red, every colour leaves at its own angle. The page traces 40 wavelengths between 390 and 700 nm through the real geometry, paints where they land on the screen, and moves a light pulse along the way to show that light is slower in glass (v = c/n) and slowest for violet.

Equations

  • Dispersion of the glass (Sellmeier): n²(λ) = 1 + Σ Bi λ² / (λ² − Ci), with λ in micrometres and published coefficients for N-BK7, SF11, fused silica and an approximate acrylic.
  • Refraction at a surface (vector form): d′ = η d + (η c1 − √(1 − η²(1 − c1²))) N with η = n1/n2. If the root becomes imaginary the ray is totally reflected.
  • Deviation through a prism of apex angle A: δ = θ1 + θ2′ − A, sinθ2′ = n sin(A − asin(sinθ1/n)). The deviation is smallest when the beam crosses the prism symmetrically: n = sin((A + δmin)/2) / sin(A/2).
  • Emergence limit: the beam leaves the second face only for θ1 ≥ asin(n sin(A − asin(1/n))); below that it is totally reflected inside.
  • Abbe number Vd = (nd − 1)/(nF − nC) measures how strongly a glass disperses (low V means a strong rainbow).
  • Reflection losses: unpolarised Fresnel reflectance R = (Rs + Rp)/2 at each face.

Checks run in the page

  • The vector ray tracer, scanning the turntable, finds the minimum deviation; it is compared with the closed form for the selected glass.
  • Vector tracing against the scalar prism formula at many angles and three colours, and the numerically found total-reflection threshold against its closed form.
  • Sellmeier values of all four glasses against published catalogue indices and Abbe numbers.

Honest simplifications

The model is a geometric (ray) model in one horizontal plane: no diffraction at the slit, no absorption in the glass, no polarisation tracking beyond the unpolarised Fresnel loss, and the acrylic coefficients are approximate. The slider "dispersion exaggeration" multiplies the difference n(λ) − nd so the rainbow is wide enough to see on a short bench; set it to 1 for real glass. The pulse speed is a slow-motion display, not the real speed of light, and the 3D beams are drawn as thin tubes rather than as a physical beam profile.

What to try

  • Press "Set minimum deviation" and then rotate the prism either way: the spectrum swings back, so the minimum really is the turning point.
  • Switch glass to dense flint: the rainbow becomes much wider than for fused silica (compare the Abbe numbers).
  • Use the "Near total reflection" preset and watch violet disappear first.
  • Choose single colour mode and slide the wavelength: the spot moves along the screen following the third graph.
Loading model...
Loading Blender model...
Refractive index against wavelength
Deviation against angle of incidence
Spot position on the screen against wavelength
Made with 🟠 Blender · Three.js