Reading
Cover of Foundations of Game Engine Development: Mathematics

Foundations of Game Engine Development: Mathematics

An excellent, mathematically rigorous introduction to vectors, matrices, transforms, and geometry for rendering engines.

Author
Eric Lengyel
Edition
Terathon · 1st ed. 2016
Rating
4 / 5
Finished
18 Aug 2026
Find the book (opens in a new tab)

This book demystified linear algebra for me. To put it short and simple: for years I had tried to learn linear algebra in an effective manner, one where I would be comfortable with both the notation and the examples (since I do not come from a purely mathematical background), and where I could see the result of my studies as clearly as I could with this book.

Scope

The book does have a massive emphasis on teaching mainly what is used in graphics and game engines, but it does not exclude the reader from other important linear algebra subjects. The main example of this is the entirety of the 4th chapter, on Grassmann algebra, which — as far as my knowledge goes — is not widely used among the engine technologies we work with these days.

The buildup

The buildup across the first three chapters — first understanding vectors and matrices, then using those to apply transformations, and lastly understanding planes, lines and rays — was helpful, because each subject built on top of the previous one in a natural manner. Contrary to other materials, where the theoretical approach sometimes gets extremely deep or the mathematical model gets very complicated, Lengyel makes an effort to simplify the math behind it, but not to the point of depriving the reader of in-depth information about how it works.

Compact, for better and worse

That being said, the book's strong suit is also its weaker point. It contains an unbelievable amount of information, extremely well organized but compact. Elsewhere, the same material would be covered in at least twice as many pages as it is in Lengyel's book. I often had to look at other sources explaining the same concept, because the book's explanation did not sit well with me — which I imagine is the case for everyone reading instructional material. Not everyone will understand the same concept by reading the same explanation. This was not so much a roadblock: having to go after the information I needed was the payoff for a structurally compact book, and it was actually beneficial for me.

Chapter 2: rotations and quaternions

The two most complicated topics, without a doubt, were contained in chapter 2: Transforms. Section 2.2 on rotations (using Euler angles) and section 2.7 on quaternions were difficult to grasp without going through an extensive amount of extra material.

Quaternions in particular were not intuitive for me at all; almost no explanation sat well with me, and I had to look at other sources to fully understand them — the most useful, in particular, was Visualizing quaternions by Ben Eater and Grant Sanderson. After going through quaternions I now understand that the subject is very difficult to explain with only words on a static piece of paper. Nonetheless, after understanding it by my own means, I went back and reread the quaternion section once more, and the book's explanations were much clearer than before.

Implementations and exercises

I personally did not follow the concept implementations in C++, because I wanted to create my own given my own understanding of the subject, but I think they are another great inclusion. After each chapter there is also a page's worth of exercises. The combination of theory, C++ implementation and exercises in each chapter was helpful to visualize and practice the concepts as I needed them.

Verdict

In short, this is a great book not only for people interested in graphics engines, but for anyone who wants to learn linear algebra with a practical approach — bearing in mind that the book's explanations might not be sufficient on their own for everyone, and that some external reading can be necessary.