Resources:
Perspective projection, where the distance of the Center of Projection from the plane of projection is finite. It models the viewing system of our eyes, and is typically modeled using the pinhole camera model.
- CoP: The pinhole
- Plane of projection: The image plane (upside down). However, in computer graphics we can make the image upright by placing the plane of projection in front of the CoP.
xy-plane
If we want to project on the plane , this is done by using the perspective matrix
Which results in the projection
And dividing by the homogeneous coordinate
Arbitrary Plane
We have the following equations to find the projection matrix
Combining Eq. 1 and Eq. 2 yields
Where
This finally yields the projection matrix
Since we have to divide with the homogeneous coordinate, this matrix will yield the same result.