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

Rendering the wavefront OBJ mesh model


The wave file format is a famous 3D mesh model format developed by wavefront technologies. It contains the mesh geometry information in a readable text format.

The wavefront format mainly consists of two types of files: .obj and .mtl. The .obj file is responsible for describing the geometrical information of the 3D model, such as vertex position, normal, texture coordinates faces, and so on. The .mtl file is optional and contains material information for individual mesh parts, such as the texture and shading (diffuse, specular, and so on) information. Also, the .mtl file is exported automatically if it contains the texture information; otherwise, you must set Write Materials. The term material here refers to the color or texture of an object. The models that we have exported do not contain any texture information. Therefore, these models only consist of .obj files.

File format: As the wave front format is readable, you can open it in any text editor and...