VR Headset Optics Lab (3D)

Thin-lens magnifier, virtual image, field of view, pixels per degree and motion-to-photon latency, with a ray-traced cutaway.

Switch to 2D

Presets

Playback

Optics, display and tracking

Camera

Layers

Quality

Model check

The science

What this is. An optics-and-timing model of one eye of a VR headset: a flat display behind a magnifying lens. It shows why the picture appears far away, how wide it looks, how sharp it is, and why a little lag or blur is noticeable. Dimensions are illustrative, not the specifications of any product.

Optics (thin lens, paraxial)

  • Display at distance d < f from the lens gives a virtual image: 1/v = 1/d - 1/f, so v = d f/(f - d) and magnification M = v/d = f/(f - d). The image distance is also the "focus demand" in dioptres (100/v with v in cm); the eye's focus is fixed there while the 3D scene suggests other depths (the vergence-accommodation conflict).
  • From an eye at relief e the half-angle of the image of a display of width w is atan[(w/2) M/(v + e)]. The lens aperture limits the view to atan[(D/2)/e]. The field of view is twice the smaller of the two.
  • Pixels per degree (ppd) = visible pixels / FOV; the central value uses the angle subtended by one pixel image. 60 ppd is the commonly quoted figure for 20/20 acuity (typical value, not exact); the readout shows how many pixels that would need.
  • Lens distortion is modelled as r' = r (1 + k1 r^2) (pincushion). The software pre-warp inverts it by Newton iteration, giving the barrel-shaped frame shown in the grid graph.

Timing

  • A head turn theta(t) = A sin(2 pi f t) displayed with motion-to-photon latency tau has pointing error theta(t) - theta(t - tau); its peak is about omega_max tau and rms is sqrt(2) A |sin(pi f tau)|.
  • A pixel held for time p smears by omega p degrees while the head moves (hold-type blur). Converting to pixels uses the ppd above.

Independent checks

  • The image position from tracing two rays (one through the lens centre, one parallel to the axis then through the focus) against the lens formula.
  • A sampled simulation of the lagged head pose against the closed-form rms error.
  • A distortion round trip: pre-warp then lens returns the original radius.

Simplifications

Thin ideal lens: no aberrations, no Fresnel steps, no pupil swim, a single colour (real headsets also correct chromatic aberration). Paraxial formulas are applied across the whole field. The eye is a point at the pupil that does not rotate; real FOV measurements depend on eye rotation. Latency is a constant delay; real pipelines use prediction and late re-projection. The 3D rig shows the cross-section of one eye and is not to scale for the virtual image, which is clamped at 40 cm when drawn.

Loading model...
Loading Blender model...
Field of view vs display distance
Head turn: true vs late image
Lens distortion and software pre-warp
Made with 🟠 Blender · Three.js