Math · Intermediate · Lesson 7 of 8
From 3D to 2D
Divide by depth
An interactive lesson with 7 steps, about 6 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Perspective: x′ = fx/z, y′ = fy/z: divide by depth.
- Distance sets the strength of perspective; focal length only zooms.
- A z-buffer stores each pixel’s nearest depth to decide what’s in front.
Steps
- Divide by distance
- A wireframe cube
- Farther and smaller
- Flatten the perspective
- Field of view
- Who’s in front?
- Rails to the horizon