O'Reilly logo

Beginning Android 3D Game Development by Robert Chin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter     4

3D Graphics Using OpenGL ES 2.0

In this chapter, we will take a look at 3D graphics for OpenGL ES 2.0 for Android. I first give you a general overview of how OpenGL renders 3D objects. Next, I go into more detail on how this is done, using matrix math, matrix transformations, and vertex and fragment shaders. I then offer a look at the shader language used for the vertex and fragment shaders and give you a quick review of the language and some examples.

Next, I cover the custom classes that demonstrate OpenGL ES 2.0 concepts that are essential to rendering 3D graphics, which are the

  • Shader class
  • Camera class
  • MeshEx class
  • PointLight class
  • Materials class
  • Texture class

Overview of OpenGL ES 2.0 on Android

In this section, I first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required