12. Putting It All Together

This chapter describes the design and construction of a simple simulation, example OpenGLES_Ch12_1. The simulation incorporates terrain, special effects, models, animation, varying points of view, textures, lighting, and optimization. Pulling it all together produces a moderately complex application incorporating almost all the code introduced by preceding chapters.

For example OpenGLES_Ch12_1, you control one of three rocket-propelled hovering carts shown in Figure 12.1. You steer by tilting the iOS device and accelerate by pressing the Boost button. Carts collide with each other and can be knocked off course. The simulation includes gravity, air resistance, and some simplistic artificial intelligence (AI) to control ...

Get Learning OpenGL ES for iOS: A Hands-On Guide to Modern 3D Graphics Programming 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.