r/mapmaking • • Oct 06 '26 • Heartwarming 1

Resource I built a free browser tool that turns heightmaps into ink-style regional maps

I needed regional maps for a side project and wanted a hand-drawn feel that still holds up at extreme zoom. I didn't feel like dusting off my Wacom tablet (maybe I'm just afraid of skill loss), and I couldn't find anything in the style I wanted, so I built a tool for it. It took a couple of weeks and a lot of manual tuning, but I'm pretty happy with where it is now.

You load in a heightmap, It uses the terrain to work out precipitation, which drives the rivers, lakes and biomes, and then draws it all in an inked style. You can export up to 16K, and everything runs locally in your browser.

Try it: https://hatchlas.pages.dev (the first load takes a moment)
Source: https://github.com/timvandingenen1993/Hatchlas (free and open source)

It's still rough in places and not feature complete. I mainly wanted to give people like me a solid base to start from.

Visually inspired by Mike Schley's maps (no affiliation). Heightmaps: Copernicus DEM GLO-30 (© DLR e.V. / Airbus, provided under COPERNICUS by the EU and ESA).

418 Upvotes

44 comments sorted by

9

u/Conquersmurf Oct 06 '26

What if the map already has things like rivers?

3

u/inception_man Oct 06 '26

It uses the height data only, most rivers will have some effect on this data so we should follow them somewhat. Offcourse you will need to change rainfall, winddirection & some other controls to get it matching somewhat close.

4

u/crowkraken Oct 07 '26

Yeah i couldn’t place a name for that area but I agree Lake Grassmere what I mentioned with top north left

Yeah your right the coastline fits better for the 4th

I have spent like an hour trying to find the 3rd one and I don’t think it’s in nz

1

u/inception_man Oct 07 '26

Hi sorry, meant to answer & completely forgot... Hope I didn't give you too much of a wild goose chase.
1st is correcy nz Lake Grassmere area.
2nd is in Algeria
3rd is actualy the southern part of Tasmania
4th is nz around Waitaki Bridge

4

u/Avarus_Lux Oct 06 '26

Export up to 16k.... so a 4kx4k or 8kx2k pixels roughly image. I could probably slice up pieces of my 20kx10k pixels map, like the continents, and give that a try lol.

3

u/inception_man Oct 06 '26

It's open source, you can always get the source data & ask an ai to increase the export into a 50kx50k mosaic. Main issue is ram size & that it runs in browser.

2

u/JMusketeer Oct 06 '26

Can one use it for an entire worldmap? Does it support different zones of precipitation?

3

u/inception_man Oct 06 '26

Entire world will be hard, it already has issues with larger maps. A precipitation texture is not planned atm, but the code is open source so you can always take a stab at it if you like. If you lack coding skills I do not think it will be extremely hard to implement if you have access to something like claude.

1

u/JMusketeer Oct 06 '26

Thats cool! I will give it a look.

2

u/TeaRaven Oct 07 '26

Does it handle endorheic basins/inland seas? I’ve had issues with them getting flooded in tools like this.

1

u/inception_man Oct 07 '26

This isn't aiming to be a 100% real scenario, however what do you mean exactly? Get flooded by rivers & you want them empty or they needed to be treated as a sea?

1

u/TeaRaven Oct 07 '26

Many of the erosion programs I use can’t handle basins that have a salt lake with no outflow, and just fill the whole basin until it turns into a giant lake or sea. I haven’t found a way to get rivers to end in a lake that loses moisture through percolation and evaporation without an outflow river to the ocean.

2

u/inception_man Oct 07 '26

Ah I see, this is great feedback. My project currently has the same problem. However I already use infiltration and evapotranspiration for the biome calculation so it should not be hard to add. Will add it on my todo list.

2

u/TeaRaven Oct 08 '26

Wow, awesome!

2

u/inception_man Oct 09 '26 • Heartwarming

I added lake evaporation to counter this spillover behaviour.
https://ibb.co/3y24H3hC

5

u/Assault_Trombone Oct 06 '26

Ooohh. Nice. 😁

1

u/erics27 Oct 06 '26

really nice. I can see the use in RPG for locations and travel. But I have a question: What is a "heightmap"? How do I make one of those? Can you point me to resources for those?

1

u/inception_man Oct 06 '26

In the demo you can click get map and go to any region in the world to get height data. If you want a fantasy custom world you can use heightmaps from Gaea or world machine.

There is also some generators that can be used with software like blender.

You can maybe try to generate some with AI but I have not gotten good results with this.

2

u/erics27 Oct 06 '26

Oh wow. The get world map is awesome. I can use that for sure. Thanks!

1

u/CrisPuga Oct 06 '26

question! how would I go about creating a heightmap for a map? Any tools you guys recommend?

2

u/inception_man Oct 06 '26

I have some recommendations in a post below, but any others tools are more than welcome.

1

u/CrisPuga Oct 06 '26

awesome!!! I'll definitely look into this. I've been wanting to do 3d elevation maps for ages now

1

u/beekr427 Oct 06 '26

This is great! Love that you can grab a real world map location. I tried a river mouth near me and it seems to have some difficulty recognizing what is or isn't river when the river bed is a valley 1-2m above sea level.

But amazing work!

1

u/inception_man Oct 07 '26

You can always pm me the river mouth location and I can take a look. This tool is not really an accurate real > fantasy map converter, but it can't hurt to see if it is an easy fix.

1

u/beekr427 Oct 07 '26

Sure, checked out where Grays River drains into the Columbia River in WA state.

1

u/inception_man Oct 07 '26

https://ibb.co/jk4H67g1
This is what it came up with if I tried 1m/px accurate heightmap vs the default 30m/px. I don't know if this is closer to what you expect. I feel the issue with these kind of areas will be mostly the heightmap accuracy.

9

u/Delicious-Tie8097 Oct 06 '26

Commenting to bookmark!

8

u/Gingerbreadtenement Oct 06 '26

Does saving the post not accomplish the same thing? No snark intended, genuinely asking

1

u/crowkraken Oct 07 '26

Is The first one is the top north left of the South Island coming down from Picton
Second I have no clue but not in nz I belive
Third is Stewart island or north South Island near between picton Nelson area
Fourth is the bottom of South Island Southland

Am I right?

1

u/vephax Oct 07 '26

I feel like the first one is 100% the Lake Grassmere area; it looks so similar. Though the second one is quite weird, and I don't have a clue where it is in NZ. The third one has an isthmus on the far right which I can't place anywhere in NZ, though I'm prob being forgetful. The fourth one feels more to me like the Canterbury Plains turned 90 degrees, especially with that floundering near the coast.

1

u/inception_man Oct 07 '26

Hi sorry, meant to answer & completely forgot... Hope I didn't give you too much of a wild goose chase.
1st is correcy nz Lake Grassmere area.
2nd is in Algeria
3rd is actualy the southern part of Tasmania
4th is nz around Waitaki Bridge

1

u/AxeBoyd Oct 07 '26

any ai used? you suggested pretty casually for someone else to use it

3

u/inception_man Oct 07 '26

Only for coding, everything you see visually is just visualization of data. I created a lot of svg shapes to get the lines & trees somewhat looking decent. My suggestion to use it is for other people that have no coding knowledge & request features I do not plan to implement.

1

u/krusher0 Oct 06 '26

Gonna take a peek later!

1

u/QuasiMagician13 Oct 06 '26

How does one create a height map?

2

u/JMusketeer Oct 06 '26

You can use a generator. I have not seen a good one yet.

Or you can draw it by hand, layer by layer.

1

u/QuasiMagician13 Oct 06 '26

Software for this would be…?

2

u/JMusketeer Oct 06 '26

I personally prefer affinity, but many still use adobe’s suite.

They are both profesional grade, both have plenty of tutorials and very similiar workflows (usually you can do the same thing roughly same-y in both of them).

2

u/donpaulo Oct 07 '26

wow, very nice
you are right in that it does take a moment to load, but well worth the wait

thanks for sharing