[1.12.47] Heightmaps

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

[1.12.47] Heightmaps

Post by Lobby »

result.png
You’ve been able to generate cities or regions from heightmap images for quite some time already. If you’re new to the concept, you can find a detailed explanation here: Generating a city or region from a height map image

Since version 1.12.47 heightmaps can also be defined as part of a plugin. Here's how that works.

Step 1: Obtain a heightmap image
First, you’ll need a heightmap image. In this example, I generated one for London using the following service: https://tangrams.github.io/heightmapper/
london.jpg
After exporting, I converted the image to a 512×512 JPG, which is more than sufficient for our purposes.



Step 2: Define the heightmap in JSON
Next, create a JSON file with the following content:

Code: Select all    Reset

[ { "id": "$heightmap_london00", "type": "heightmap", "title": "London", "file": "london.jpg" } ]
JSON checker
Check
Make sure the JSON file and the image file are placed in the same plugin directory.



Step 3: Use it in-game
Once the plugin is in the plugins folder, the heightmap will automatically become available when creating a new city or region in the game.
image.png


That’s it, your custom heightmap is now ready to use.
london.zip
You do not have the required permissions to view the files attached to this post.
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.12.47] Heightmaps

Post by Kulche »

"london"
>look inside
>british isles
User avatar
notsweden_ggbro123
Settler
Reactions:
Posts: 5
Joined: 24 Sep 2023, 02:31

Platform

Re: [1.12.47] Heightmaps

Post by notsweden_ggbro123 »

Lobby wrote: 06 Feb 2026, 15:04 result.png
You’ve been able to generate cities or regions from heightmap images for quite some time already. If you’re new to the concept, you can find a detailed explanation here: Generating a city or region from a height map image

Since version 1.12.47 heightmaps can also be defined as part of a plugin. Here's how that works.

Step 1: Obtain a heightmap image
First, you’ll need a heightmap image. In this example, I generated one for London using the following service: https://tangrams.github.io/heightmapper/

london.jpg
After exporting, I converted the image to a 512×512 JPG, which is more than sufficient for our purposes.



Step 2: Define the heightmap in JSON
Next, create a JSON file with the following content:

Code: Select all    Reset

[ { "id": "$heightmap_london00", "type": "heightmap", "title": "London", "file": "london.jpg" } ]
JSON checker
Check
Make sure the JSON file and the image file are placed in the same plugin directory.



Step 3: Use it in-game
Once the plugin is in the plugins folder, the heightmap will automatically become available when creating a new city or region in the game.

image.png



That’s it, your custom heightmap is now ready to use.london.zip
do you use auto-exposure for the London map?
Previous topicNext topic