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 3Ds mesh model


The 3Ds mesh format is a well-known 3D mesh file format used in computer graphics. Unlike wavefront, it's not text-based and stores the mesh information in a binary form. This is used widely in Autodesk 3D Studio Max and is a professional 3D graphics program software to create 3D animation and models.

File format: This section will provide an overview of the 3Ds file format. This mesh format contains information in the form of a hierarchy of chunks. A chunk is a structured piece of information in the memory. Its unique ID recognizes each chunk, which contains the size information (in bytes) that can be used to read or skip chunks. The size information of the current chunk is always relative to its start memory position; skipping this much size will point to the next chunk.

The following table shows that each chunk is represented with the Start field, which contains the memory location within the 3Ds file. The Size field tells us how big is the chunk in bytes, whereas...