Perspective projection, step by step
How a 3D point lands on a flat screen, and how a 4×4 matrix does it with one extra coordinate (Lay, Linear Algebra and Its Applications 5e, §2.7). About 7 minutes.
- What a 3D point is, and why a side view only shows two directions
- The window and the string: farther things are drawn smaller
- Similar triangles: divide by "how many times farther"
- Textbook coordinates: screen at z = 0, eye at z = d, distance d − z
- (d − z)/d = 1 − z/d
- Why no ordinary matrix can do it (not linear)
- The 4th coordinate H, and the rule "divide by H"
- Building the projection matrix P one row at a time
- Running (3, 3, −2) through P to get (1, 1, 0)