Chapter 6Entering the Third Dimension

Imagine that you’re at an arcade, standing in front of an air hockey table and looking over the table toward your opponent. What would the table look like from your perspective? Your end of the table would appear larger, and you would be looking down at the table from an angle, rather than from directly overhead. After all, nobody plays a game of air hockey by standing on top of the table and looking straight down.

OpenGL is great at rendering things in 2D, but it really begins to shine when we add a third dimension to the mix. In this chapter, we’ll learn how to enter the third dimension so we can get that visual feel of staring down our opponent from across the table.

Here’s our game plan for the chapter: ...

Get OpenGL ES 2 for Android 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.