O'Reilly logo

Beginning Python Games Development : With Pygame, Second Edition by Will McGugan, Harrison Kinsley

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

CHAPTER 9

image

Exploring the Third Dimension

You’ve seen how to take a point in three-dimensional space and project it onto the screen so that it can be rendered. Projection is only part of the process of rendering a 3D scene; you also need to manipulate the points in the game to update the scene from frame to frame. This chapter introduces the matrix, which is a kind of mathematical shortcut used to manipulate the position and orientation of objects in a game.

You will also learn how to use Pygame with OpenGL to access the 3D graphics capabilities of your graphics card to create impressive visuals, on par with commercial games.

What Is a Matrix

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