teaching machines

Gaussian Pox rogersta

March 14, 2015 by . Filed under cs455, postmortems, spring 2015.

bigpocbluepox

Once I relearned how to C++ everything went fairly smoothly. I did have some trouble normalizing the energies since I accidentally did the math backwards. That messed with my head for a while since the ppm file was coming out with some really strange values. My initial plan was to get the grey scale bumps up and then fiddle with the colors from there. I set certain ranges that if the normalized energy fell into, it would set that energy to a certain RGB value. This resulted in the first example.  I also decided to make a Bump “class” that helped me create random bumps and manage multiple bumps more easily. I probably could have just used a struct for this but at the time I completely forgot about them.