O'Reilly logo

Beginning 3D Game Programming by Tom Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Matrices

Ah, the matrix, by far the most esoteric and potentially “frightening” aspect of 3D programmers to the beginners who are just starting out. Things just appear so complicated when you jump in without a firm grasp of what's going on, but in reality, matrix math can be simple after you get used to it.

By definition, a matrix is a rectangular array where each entry contains a number, such as the following:

In this example, the first matrix is a 4x4 matrix and the second, a 3x3 matrix. (The numbers are completely arbitrary and have no bearing on the matrix itself.) Matrices are not required to be square; you could just as easily have a 4x1 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required