Part V · Chapter 11

Perspective & Shadows

Why parallel train tracks appear to meet at the horizon, how a flat window captures a 3D world, and how light turns geometry into shadows.

Every rule we learned in the first ten chapters told us a sacred truth: parallel lines never meet. Yet the moment you stand between two steel train tracks and look down the line, your own eyes tell a completely different story. The tracks rush toward each other and collide at a single glowing point on the horizon.

Your eyes aren’t lying—and neither was Euclid. What you are seeing is the geometry of projection: the art of flattening a 3D world onto a 2D retina, canvas, or camera sensor.

Train Tracks & The Vanishing Point

Imagine standing on a flat ground grid with two parallel rails stretching away from you toward infinity. The further a railroad tie lies from your eyes, the smaller it looks—and the closer its left and right ends pinch together.

Follow those rails out a mile, ten miles, a million miles, and the gap between them shrinks to zero. That exact spot where every parallel line pointing in the same direction appears to converge is called the Vanishing Point, and it always sits right on your eye-level horizon line.

Grab the glowing Vanishing Point below and drag it anywhere on the canvas! Watch the horizon rise and fall with it, and adjust the Camera Height slider to crouch down low like an ant or soar high above the tracks.

Interactive 11.1 Train Tracks & The Vanishing Point
Drag the gold Vanishing Point anywhere
68
Parallel lines → 1 Vanishing Point
Every line parallel to the rails—the tracks, the ground grid, and even the tops of the roadside posts—locks onto the exact same point on the horizon.

The Glass Window: How 3D Becomes 2D

During the Renaissance, artists like Filippo Brunelleschi and Albrecht Dürer uncovered the secret of realistic perspective with a wonderfully simple thought experiment: imagine looking out at the world through a flat vertical glass window.

Keep your eye completely still. Straight rays of light travel from the top and bottom of a real 3D object outside, pierce straight through the glass, and enter your pupil. If you trace where those rays hit the glass with a marker, you get a flat 2D projected image.

Why Faraway Things Look Small

There is no algebra needed here—just similar triangles! Moving an object twice as far from your eye squeezes the cone of light rays to half its angle, so its footprint on the glass window shrinks to exactly half its height.

Drag the 3D Object left, right, up, or down in the side-view diagram below. Watch how the projected image on the glass window grows huge when the object approaches the pane, and shrinks smoothly as you push it into the distance.

Interactive 11.2 Projection Window — How 3D Becomes 2D
Drag the coral object closer or further
36%
Projected Height: 48%
Moving the glass window further from the eye acts exactly like zooming in with a telephoto lens: the projected image on the glass gets larger!

Shadow Geometry: Light Rays & Warped Shapes

Now flip the camera around. Instead of rays traveling into your eye, imagine light rays shooting out of a glowing lamp. The mathematics is 100% identical! A shadow on the floor is simply a 2D projection of a 3D object.

There is one gorgeous twist, though, depending on how far away the light source lives:

Drag the glowing Lamp across the sky below and toggle between Point Lamp and Distant Sun to watch the difference with your own eyes.

Interactive 11.3 Shadow Geometry — Light Source & Projections
Drag the gold Lamp to cast live shadows
Rays diverge → Stretched shadow
Notice how a circular ring lit by a nearby point lamp casts an elongated ellipse—a direct glimpse of why circles, ellipses, and parabolas are all shadows of one another (conic sections)!

Perspective showed us that parallel lines can seem to meet when we project 3D space onto a flat window. In our final chapter, we take an even bolder leap: what if space itself is curved, so parallel lines genuinely collide—or flee from each other forever?