Week 5 Round Up

Interactive 3D This week I worked on some Terrain Generation; mainly loading from a height map. To begin with I need to generate the heights, for this I read a 1280x1280 ‘.raw’ file containing a 4byte value. I then make a grid of vertices and load them into a single dimensional array, whilst I set up the vertices I pass in the corresponding height value. I can then calculate the indices and set up the index array, and one I have the indices I’m able to calculate the normal’s which will be used for lighting. Once I had a completed ‘TerrainNode’ I looked into forms of procedural generation. So far I have implemented ‘Perlin Noise’ ( http://freespace.virgin.net/hugo.elias/models/m_perlin.htm ) which interpolates a value from a Sin Wave. The results were pretty good. I can change up to 5 values to get more varied height; more mountains; smoother terrain etc. I also added a Sky Dome for additional effect. Mobile Development This week we were given samples ...