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 the ETC2 compressed texture


For many reasons, compressed texture is desirable over uncompressed textures; the major benefit is reduced memory footprint on the device, smaller size of the downloadable application, and an increase in performance. The OpenGL ES 3.0 specifications made it compulsory for all vendors to support ETC2 and EAC texture compression formats. Prior to this, in OpenGL ES 2.0, texture compression was not standard, as a result of which various hardware specific extensions were evolved. Developers have to support programs of various extensions in order to achieve texture compression on different types of devices.

In this recipe, we will demonstrate ETC2, which is very famous among different texture compression schemes. ETC stands for Ericson Texture Compression, which is a lossy texture compression technique; this scheme supports both RGB and RGBA formats. Additionally, this recipe also demonstrates the new feature of OpenGL ES 3.0, which is capable...