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.
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.
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.
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:
- A nearby Point Lamp sends out a spreading cone of rays. Just like perspective, it stretches and warps a floating cube or ring into a dramatic, oversized shadow.
- A Distant Sun is so far away (93 million miles!) that its rays arrive practically parallel. Parallel rays never fan out—so a flat ring casts a shadow of the exact same size, merely slid sideways.
Drag the glowing Lamp across the sky below and toggle between Point Lamp and Distant Sun to watch the difference with your own eyes.
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?