10. Terrain and Picking
This chapter presents a method for drawing expansive outdoor scenes with rolling terrain by reusing many of the 3D graphics concepts and sample classes introduced in prior chapters. Approaches for 3D terrain rendering apply to any application for visualizing large data sets, including medical imaging and molecular modeling. Large data sets require special handling within 3D applications. Partitioning data into subsets suitable for access by the graphics processing unit (GPU) is necessary.
This chapter also introduces a technique called picking to detect user interaction with 3D geometry. When a user touches the screen, what 3D objects are under the user’s finger? What terrain location is touched?
Terrain Implementation ...
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.