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


This chapter will introduce the concepts of light and material in 3D graphics. We will understand the concept of light from the aspect of physics and its dual nature. We will discuss the different types of light components, such as ambient, diffuse and specular, with their implementation techniques. Later in this chapter, we will cover some important common illumination techniques (such as Phong shading and Gouraud shading). This will help us in implementing realistic-looking lighting models in computer graphics. In addition, you will learn the difference between directional and positional light and see how optimization can be achieved in the specular lighting by using the halfway vector technique. At the end of this chapter, we will demonstrate how to set up multiple lights in a scene and render objects with two-sided shading.

Light is an electromagnetic radiation; it exists with an enormous range of frequencies or wavelengths. Human eyes can only see a portion of this wavelength...