Projection matrix

There are two kinds of projection we can apply to the graphics pipeline, Perspective and Orthographic. Perspective projection, like the name implies, views the world in perspective, there is a vanishing point somewhere in the distance. Orthographic projection, on the other hand, has no vanishing point. If two lines are parallel in an orthographic projection, they will never touch. For this reason, perspective projection is generally used to render 3D elements, and orthographic projection is generally used to render 2D elements:

Projection matrix

When designing a projection matrix the most important thing is not the perspective, but the coordinate ...

Get Game Physics Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.