Generating random terrain

By Knut Erik

I have implemented a random terrain generator, and after some tweaking it, it produces pretty good results.

Randomly generated terrain

Randomly generated terrain

I can seed the generator as I wish, and get the same result every time, or use some other value like the system time to get a new terrain every time.

Another view

Another view

Another view

Another view of the terrain

Also, the artifacts from the previous post have been eliminated.:) The light is working as I want it now.

Light model working

Light model working

The lighting is nice, but it doesn’t do shadows. At least not yet. That will be the next focus for me.

-Knut

Tags: , , , ,

Leave a Reply