As seen on projective geometry the perspective phenomenon is where an object appears to be smaller the further away is from the point of view
We can again use some concepts of projective geometry to understand perspective projection, particularly the fact that any object in our 3D world is represented in the 4D projective hyperplane by the homogeneous coordinate
Perspective is implemented in 3D by using a transformation matrix that changes the value of
based on how far the object is ( -coordinate)
Now let’s imagine that we want to project the points that exists in our world to the plane

perspective projection y
By similar images we can see that the projected value of the
The projected value of the

perspective projection x
The projected value of the
Summarizing
Manipulating the last equation so that it has a common denominator
The point above expressed in 4D homogeneous coordinates is
Finally the transformation matrix that transforms