© Mario Zechner, J.F. DiMarzio and Robert Green 2016

Mario Zechner, J. F. DiMarzio and Robert Green, Beginning Android Games, 10.1007/978-1-4842-0472-6_11

11. 3D Programming Tricks

Mario Zechner, J. F. DiMarzio2 and Robert Green3

(1)Graz, Steiermark, Austria

(2)Celebration, Florida, USA

(3)Portland, Oregon, USA

3D programming is an incredibly wide and complex field. This chapter explores some topics that are the absolute minimum requirement in order to write a simple 3D game:

  • We’ll revisit our friend the vector and attach one more coordinate.

  • Lighting is a vital part of any 3D game. We’ll look at how to perform simple lighting with OpenGL ES.

  • Defining objects programmatically is cumbersome. We’ll look at a simple 3D file format so that we can load and ...

Get Beginning Android Games, Third Edition 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.