The International Simutrans Forum

 

Author Topic: Algorithmically-generated fantasy maps  (Read 2997 times)

0 Members and 1 Guest are viewing this topic.

Offline Carl

  • Devotee
  • *
  • Posts: 1542
    • Website
  • Languages: EN
Algorithmically-generated fantasy maps
« on: August 11, 2016, 12:47:36 PM »
I thought the tools in this article were fascinating - and may be of interest to some here:

http://mewo2.com/notes/terrain/


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9203
  • Languages: De,EN,JP
Re: Algorithmically-generated fantasy maps
« Reply #1 on: August 11, 2016, 09:08:31 PM »
Wow, that is a very interesting map generator; with the simutrans climates as additional input (or output) that could go closer to the idea of worlds made by erosions (especially for larger maps). There was a thread somewhere in the extension or patches sections only focussed on water erosion (Here http://forum.simutrans.com/index.php?topic=10042 but I did not find the world based on climates and precipitation one).

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3576
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Algorithmically-generated fantasy maps
« Reply #2 on: August 12, 2016, 02:48:43 AM »
Wow, that's awesome!

Offline wlindley

  • Devotee
  • *
  • Posts: 939
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: Algorithmically-generated fantasy maps
« Reply #3 on: August 12, 2016, 01:17:45 PM »
what's the best way to get a complete map, or a proto-map imported, so i can experiment with this?  I'd like to write some programs in Perl to output not just a height-map but city locations, rivers, and so on. 

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9203
  • Languages: De,EN,JP
Re: Algorithmically-generated fantasy maps
« Reply #4 on: August 12, 2016, 07:49:39 PM »
There is a link to an early Python source. But since it works best with random grid points, I think it isnot too compatible with the current perlin maps. Also the current perlin maps rarely produce double height slopes, even for mountains.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2467
  • Languages: EN
Re: Algorithmically-generated fantasy maps
« Reply #5 on: August 12, 2016, 10:23:29 PM »
Since the map generation algorithm needs non-uniform grid points, sampling would be needed to translate them into the uniform grid. How good the end result would be after this I do not know, however it might be sufficient for a reasonable Sumatrans map. The city locations can be used as hints where to place appropriate cities. The region mechanics can probably be ignored, however they could possibly be used for different climates, an industry spawning model or even just eye candy.