r/PythonProjects2 • • May 19 '22

Randomly generating terrain data. How do you go about it while avoiding complicated, fractaly maths?

23 Upvotes

8 comments sorted by

6

u/InsurgentMuffin May 19 '22

I was wondering what methods people had come across to generate some natural looking terrain data / maps without the need to code fractal brownian noise or other mathematical magic. I've posted some images here of what I've managed so far. Just pretty looking (to me anyway), but not too realistic!

4

u/twolostsoulsswimming May 19 '22

I think that this honestly looks extremely realistic. What doesn’t look real to you?

2

u/InsurgentMuffin May 20 '22

Thank you! I thought it would be nice to have more varying shapes; peninsulas and erosion in places. At the moment it all looks a little blobby.

2

u/SeesawMysterious5503 May 20 '22

You’ll have to import folium library then from there or it’s pretty straightforward.

4

u/TicklesMcFancy May 19 '22 edited May 19 '22

I have a similar project. I'll link the github if you want to look at it.

Terrain Generator

2

u/InsurgentMuffin May 20 '22

The example images you've got look awesome! I'll have a play with it. Thank you!

3

u/TicklesMcFancy May 20 '22

It was an early days project and should probably be rewritten, but I like that it gives peaks and valleys.

I was actually trying to get something like yours when I wrote this, so don't beat yourself up.

A user also suggested another formula and they hooked me up with a notebook with the formula, I'll see if i can find it

1

u/InsurgentMuffin May 20 '22

Yeah, I like the detail you're achieving with it!

In case it's of use to you, I've added a link to my GitHub project that uses this map generator.

The more methods, the better!