teaching machines


April 12, 2013 by . Filed under cs455, postmortems, spring 2013.

For feature 2 I basically followed the diamond square algorithm given to us, with only a slight change to the code so that when the terrain was read in it was flat and being looked across, as opposed to above it and looking down on it. This just required a change to x and z coordinates, instead of x and y.

This created an obj output file that I just read in as any other obj. I had to play with the camera coordinates to get it aligned with the terrain as well.

A picture of the algorithm code


A picture of the terrain obj file


And a video of the terrain…

[youtube http://www.youtube.com/watch?v=2cziwrWt9t0]

being video bombed.