Book Image

OpenGL ES 3.0 Cookbook

By : Parminder Singh
Book Image

OpenGL ES 3.0 Cookbook

By: Parminder Singh

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
Index

Efficient rendering with Vertex Buffer Object


The vertex information comprises of geometric coordinates, color information, texture coordinates, and normal vectors. This information is stored in the form of an array and always resides in the local memory (RAM, which is accessible by the CPU) of the device. Each frame when rendering command is executed. This information is copied from the local memory and sent to the GPU. This vertex information is sent over the data bus, which has a slower speed compared to the GPU's processing speed. Additionally, the latency time on the local memory also adds a slight delay.

VBO is a faster way to render 3D objects. The VBO uses the full advantage of Graphics Processor Unit (GPU) and store the geometric data on GPU's memory instead of storing it on the local RAM memory. This helps OpenGL ES to avoid continuous sending of data from local memory to the GPU each time a draw call is made.

The implementation of the VBO can be divided into four steps:

  1. Create a...