Ask HN: How to generate random terrain

https://news.ycombinator.com/item?id=821562
by alaricsp • 17 years ago
31 33 17 years ago

When I was a kid in the 1980s, I read a library book on the topic of writing military strategy sim games, and it had an entire chapter on producing random terrain. It started with the usual fractal techniques for producing contours, but then it went on to use weighted random walks to produce roads and rivers, lakes, bridges, and cities.

I've tried recreating the algorithms from what little I remember of them, but they never produce anything that looks very good. Online I've found plenty of references to ways of generating the contours, but never realistic-looking roads, rails, and waterways...

Does anybody know an online reference to that sort of thing?

Thanks!

Related Stories

Loading related stories...

Source preview

news.ycombinator.com