I made a whatsit that creates a height field by dropping one unit blocks in random places on a flat surface a whole bunch of times. Then I made a function that effectively reduces the contrast of the peaks relative to adjacent spaces. It takes the top block off of a stack of blocks and then pushes it onto a lower adjacent stack. What this produces is something that looks like this:

After this the program exports it into a file that excel can read so I turned it into a graph that looks something like this:

The last thing I did was make the program render out the height map slice by slice so it looks kind of like this:

The array that stores all of the information for the height map has an extra dimension so I can generate pools of water or locations of secret treasure. I tried to do the former and I think my solution for it was good but I did it in a bad way so it didn't work out. I will try again later.
This is what I do in my spare time.
No comments:
Post a Comment