For this project, please create an application that displays a "terrain" using OpenGL ES 1.1.
The terrain is a flat plane built up of a grid of GL_TRIANGLE_FANs (see [url removed, login to view]). It covers the entire screen, as though the user is looking down at the ground. The vertices should be much denser than in the illustration, let's say one every four pixels.
Textures and lighting should be supported -- I've attached the texture ([url removed, login to view]) for the terrain. There should be a light source off to the side of the scene and diffuse lighting mode on the terrain.
The terrain should initially be flat, but user touches should depress touched areas of the terrain, to simulate digging. The area affected by a user touch should include several vertices in every direction from the touch coordinates. As areas of the terrain are affected by user touches, normals should be recalculated for all affected vertices.
As the deliverable, please send a complete XCode 3.x or 4.x project folder. The code does not have to be excessively well-commented, but cannot be encrypted or compressed.