Tutorial 14 - Moving to 3D

Posted on 20 March 2011 by mike

I've finally got a new tutorial done and it feels great :)

In this tutorial I take the XCode 4 OpenGL ES Template and show the change needed to be able to render in 3D. The Tutorial runs through all the changes made to remove the OpenGL ES 2.0 render code, add a depth buffer, add code to support a game loop (as seen in earlier tutorials) and then shows how to render a grid made of lines and a number of colored squares in 3D space.

This tutorial does assume that you have been through some of the previous tutorials or my book "Learning iOS Game Programming" and have a basic understanding of how OpenGL ES is setup. That said, the tutorial aims to get you rendering in 3D using the minimum number of changes to the template and code.

From this base, future tutorials will cover

- Texture mapping

- Loading models designed in Blender

- Moving 3D objects

- Collision Detection

- 3D physics using the Bullet 3D physics engine

- Gyro integration to look around your 3D world using CoreMotion

- plus more

I hope you enjoy the tutorial and look forward to your comments.

Tutorial 14 (1:08:22)

Tutorial 14 Project

Mike

21/03/11 Update: At 44:06 into the video I talk about positioning the camera using gluLookAt. In my voice over I get the coordinates the wrong way around. The coordinates are all defined as x, y, z.

blog comments powered by Disqus