Mindwerks / worldengine

World generator using simulation of plates, rain shadow, erosion, etc.
MIT License
981 stars 127 forks source link

Hypsographic Curve #203

Open tcld opened 8 years ago

tcld commented 8 years ago

While thinking about the values to choose for PR 188, I thought I might want to take a look at the elevation distribution of a world. So I added some code to generate a hypsographic curve of the world.

Data corresponding to this PR can be found here.

Example for the test-world (28070): satellite_28070 image removed because it was ugly The y-axis shows the different heights (all heights are occupied!), x shows the percentage - exactly as in the link about the hypsographic curve I gave above.

A couple of things can be seen:

It would probably be interesting to take a look at this plot right as the heightmap comes out of Platec. Aside from that I hope to finally find good values for PR 188 - if somebody can give hints, please do so.

EDIT: This also shows that we shouldn't just "fill up" the ocean to an arbitrary value after Platec generated the world making use of a very specific ocean-level. If the ocean_level variable is to be repaired, it should tie into Platecs generation.

EDIT2: A slightly improved plot - there is a vertical line every ten percent now and a horizontal line for the different height thresholds (sea, plains, hills): hypsographic_28070

Here what it would look like after #188, the thresholds from bottom to top being sea, plains, hills, low mountains, medium mountains, high mountains: hypsographic_28070

ftomassetti commented 8 years ago

About the fact that ocean are shallow: we can easily rescale that

ftomassetti commented 8 years ago

I think this plot could be an interesting addition for the more technical users

tcld commented 8 years ago

I changed the code to make use of matplotlib. It is only one commit so far, so I could go back, if necessary. hypsographic_28070