The displacement map technique modifies the surface of a geometric shape using procedural texture or texture image. This recipe uses the texture image called height maps to implement a geographical terrain surface on a 2D plane. A height map is a grayscale image where each texel stores the elevation information in the range of 0.0 to 1.0 (white is mapped to 1.0 and black is mapped to 0.0). The 2D plane is represented by a set of vertices arranged in a grid fashion; the elevation information for each vertex in this 3D grid space is read from the height map. This recipe uses another texture image, which is used to map the grass texture on the generated terrain, to make it more realistic.
OpenGL ES 3.0 Cookbook
By :
OpenGL ES 3.0 Cookbook
By:
Overview of this book
<p>"Write once, use anywhere" is truly the power behind OpenGL ES and has made it an embedded industry standard. The library provides cutting-edge, easy-to-use features to build a wide range of applications in the gaming, simulation, augmented-reality, image-processing, and geospatial domains.</p>
<p>The book starts by providing you with all the necessary OpenGL ES 3.0 setup guidelines on iOS and Android platforms. You'll go on to master the fundamentals of modern 3D graphics, such as drawing APIs, transformations, buffer objects, the model-view-project analogy, and much more. The book goes on to deal with advanced topics and offers a wide range of recipes on the light shading, real-time rendering techniques with static and procedure textures to create stunning visualizations and runtime effects.</p>
Table of Contents (21 chapters)
OpenGL ES 3.0 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
OpenGL ES 3.0 on Android/iOS
OpenGL ES 3.0 Essentials
New Features of OpenGL ES 3.0
Working with Meshes
Light and Materials
Working with Shaders
Textures and Mapping Techniques
Font Rendering
Postscreen Processing and Image Effects
Scene Management with Scene Graphs
Anti-aliasing Techniques
Real-time Shadows and Particle System
Supplementary Information on OpenGL ES 3.0
Index
Customer Reviews