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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.