Understanding light
Lenses & focus
A lens is just a piece of glass with curved faces. Refraction at those curves is enough to gather a parallel beam into a point — and almost enough to do it perfectly.
Focal length
Parallel light entering a converging lens meets at the focal point. The distance from the lens to that point is the focal length f, and it comes from the glass and the two curvatures:
Real lenses have thickness, which moves the focus slightly:
Converging and diverging
| Part | Shape | Does |
|---|---|---|
| Convex lens | Fat in the middle | Converges light to a real focus |
| Concave lens | Thin in the middle | Diverges light; the focus is virtual, behind the lens |
| Plano-convex | One flat face | Converges; the cheapest useful lens |
| Custom lens | Both radii yours | Meniscus shapes, deliberately odd designs |
| Cylindrical lens | Curved in one direction only | Focuses to a line instead of a point |
A diverging lens shows a negative focal distance in the Measure panel, flagged virtual.
Why a single lens is never perfect
Chromatic aberration
Because n depends on wavelength, f does too. Blue focuses closer than red. The size of the effect is set by the Abbe number:
Fixing it needs two glasses working against each other — see lens design for building an achromat.
Spherical aberration
A spherical surface is easy to grind but is the wrong shape: rays through the edge of the lens focus closer than rays through the middle. The blur it leaves grows as the cube of the aperture — halve the beam width and the spot shrinks eightfold. (Photonica measures that exponent as 3.06 against a theoretical 3.)
Two cures: stop the beam down, or change the shape. Setting a surface's conic constant k turns the sphere into a conic section, and one specific value removes spherical aberration entirely:
Coma and astigmatism
Off-axis light suffers differently: a point source away from the axis smears into a comet shape (coma) or focuses at two different distances in two directions (astigmatism). Tilt a lens with R / T and watch the spot on the screen lose its symmetry.