Monday, February 14, 2011

Happy Valentines Day :]

I spent the weekend with the wife, so I didn't go to do much work unfortunately.  I did get some crunch time in after work though.

I've been playing with the terrain generation algorithm a lot.  I've tried the diamond square algorithm and it was neat, but I don't know if I did it right.  I've also tried 2 algorithms that I came up with on my own and in the end, I settled with one that I made.  It's not the prettiest yet but here's what I have so far:






This is all done with 1 pass through the world.  I can also generate from any point -> any point.  I call the algorithm using generateWorld(fromX, fromZ, toX, toZ) and direction doesn't matter.  Next thing on my list is to smooth everything out.  This will probably be done with a 2nd pass.. at least I think so.  I don't know, it's going to take some thinking.

This is all I've worked on tonight.  One thing I haven't figured out yet is how I'm going to do all the Y blocks, but that'll come eventually.