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

Introduction


Shadows play an important role in real-time rendering; they add depths to a rendering scene. The perceived light information on the 3D object looks much more realistic when rendered with shadows. Overall, shadows improve the realism of the rendering scene and provide a spatial relationship among objects. Rendering smooth and realistic shadows is a great topic of research in the field of computer graphics. The rendering process consumes a large performance. Therefore, the approach to render it must be a balanced trade-off between quality and performance. This even becomes more challenging on the embedded-side due to limited constraints on the memory and performance.

In this chapter, we will implement shadows using shadow mapping. This technique is relatively cheap as far as performance is considered and produces good results on embedded devices. We will make these shadows appear smoother using another technique called percentile closer filtering (PCF). In another technique called...