3DICA 2: 3D Geometry
eZine lover (@eZine)
Published in
3DICA
· 28 Nov 2023
2.1 The Relationship Between 2D and 3D Worlds A point in 3-space is defined by three coordinates : x, y, and z. We can't draw a point like this straight to the computer screen. Hence, we need a formula with which we can make the x and y coordinates somehow dependent on the z coordinate. Let's think about the case. A point can be multiplied by a constant the result point staying on a line that goes through the origin and the original point: k \cdot (X, Y, Z) = (kX, kY, kZ) If we define the origin as the location of the camera, we can use this formula and take 1/z as k. Now the z coordinate is a constant: \frac {1}{Z} \cdot (X,...