Chapter 4
3D Modeling
In this chapter you will be introduced to modeling 3D objects using the open-source software Blender. First, you will learn the basics of the Blender interface, and how to model the objects for our Tank Fence game. Finally, you will see how we include these objects inside ES 2.0 applications by using parsers to read and manipulate the mesh data.
Drawing Shapes Using glDrawElements
To specify the type of primitive(s) we intend to render on the OpenGL surface, we use ES 2.0 functions—glDrawArrays or glDrawElements.
In Chapter 3 you learned about the ES 2.0 function glDrawArrays. This function is generally not used for rendering primitives in ES 2.0 applications, such as games. This is because, when authoring game objects ...
Get Learn OpenGL ES: For Mobile Game and Graphics Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.