01 Introduction
Last updated on August 1, 2026 pm
Generate a realistic drawing of a cube
To draw a cube, we ask
- Modeling: How do we describe the cube
- Rendering: How do we visualize the model
Modeling
Suppose we construct a cube that
- centered at the origin (0, 0, 0)
- has dimensions
- edges are aligned with x / y / z axes
One way to think is to list out the coordinates of the cube vertices, but they are just 8 points, we need more information to capture the shape.
Now, we ask the edges, which two points are connected.
Then we have an encoding data, telling us the 3D geometry of the cube
- Vertices: A(1, 1, 1), B(-1, 1, 1), C(1, -1, 1), D(-1, -1, 1), E(1, 1, -1), F(-1, 1, -1), G(1, -1, -1), H(-1, -1, -1)
- Edges connected: AB, CD, EF, GH, AC, BD, EG, FH, AE, CG, BF, DH
Now the question is how do we render it into 2D images? This requires two operations
- Map 3D vertices into 2D points
- Connect 2D points
Perspective Projection
01 Introduction
https://lynx-li.github.io/2026/07/26/computer_graphics/cmu_01/