8. Special Effects

This chapter introduces three techniques for adding apparent detail to 3D applications without dramatically increasing the number of vertices processed. Each technique uses 2D images designed to fool the eye even when moving and panning within a 3D scene. The first, a skybox, encloses the rendered scene in a cube with textures on all six sides. The textures make it seem like geometry extends all the way to an imaginary horizon. The second effect, particles, efficiently simulates explosions, water flowing, or smoke billowing. Finally, billboards take advantage of textured triangles aligned with the point of view to conceal the absence of depth.

Skybox

Figure 8.1 shows a partially unfolded skybox and a screenshot of a scene rendered ...

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.