Generating a city or region from a height map image
Posted: 26 Jun 2019, 14:58
by Lobby
Hi, in recent versions of the game you can create cities and regions from height map images. Such images look like that:
The brightness of each pixel determines the height of the corresponding tile in the city. The brightness ranges from 0 to 255, with 10 being the sea level. Dependent on where you have your height maps from you may have to adjust their contrast and brightness. See the entry on Wikipedia for more information about height maps.
In order to generate a city from a height map place the height map image file into your TheoTown folder and remember its name. Then go into the game, create a new city, and enter the name of the height map file (including the file ending) into the seed text field. The picture will be scaled to match the selected city size.
Append #somerandomtext to add some randomness to the map generation in case you are not happy with the result (e.g. the biomes on the map).
Of course, you can do the same thing for regions. The result
The height map that's used here is a part of New York and was extracted using http://terrain.party/
Note how dark the image is because of the lack of hills in New York.
This feature is compatible with all recent versions of the game
However, the version for iOS doesn't support 16 bit (per channel) images right now. This is a special format that is used by some height map creators; you may have to save them with an image program to make them compatible with the game.
A template to generate a completely flat map:
image.png (105 Bytes) Viewed 42821 times
Re: Generating a city or region from a height map image
Posted: 26 Jun 2019, 20:22
by SomeIndianGuy
So TT now has incorporated elements from Openttd now?
Nice
Re: Generating a city or region from a height map image
Posted: 22 Jan 2020, 18:34
by yusuf8a684
I know quality is bad due to my amateur skills but you can still read the comments to get more information
Re: Generating a city or region from a height map image
Posted: 23 Jan 2020, 00:05
by Bearbear76
BBcode not working?
Re: Generating a city or region from a height map image
Re: Generating a city or region from a height map image
Posted: 11 Mar 2020, 15:30
by ormishen
Hey!
Really been trying to get a map based on my hometown of Stockholm. I've figured out how to download a map but when I go to add it in theotown the game freezes.
I'm playing on a MacBook FYI.
Any advice?
Re: Generating a city or region from a height map image
Really been trying to get a map based on my hometown of Stockholm. I've figured out how to download a map but when I go to add it in theotown the game freezes.
I'm playing on a MacBook FYI.
Any advice?
What size is the image?
You might have to reduce the size in a graphics program if it is very large.
Re: Generating a city or region from a height map image
Really been trying to get a map based on my hometown of Stockholm. I've figured out how to download a map but when I go to add it in theotown the game freezes.
I'm playing on a MacBook FYI.
Any advice?
What size is the image?
You might have to reduce the size in a graphics program if it is very large.
Really been trying to get a map based on my hometown of Stockholm. I've figured out how to download a map but when I go to add it in theotown the game freezes.
I'm playing on a MacBook FYI.
Any advice?
What size is the image?
You might have to reduce the size in a graphics program if it is very large.
Hi, in recent versions of the game you can create cities and regions from height map images. Such images look like that:
The brightness of each pixel determines the height of the corresponding tile in the city. The brightness ranges from 0 to 255, with 10 being the sea level. Dependent on where you have your height maps from you may have to adjust their contrast and brightness. See the entry on Wikipedia for more information about height maps.
In order to generate a city from a height map place the height map image file into your TheoTown folder and remember its name. Then go into the game, create a new city, and enter the name of the height map file (including the file ending) into the seed text field. The picture will be scaled to match the selected city size.
image.png
Append #somerandomtext to add some randomness to the map generation in case you are not happy with the result (e.g. the biomes on the map).
The game also allows you to generate a region out of a height map. To do that, use the following scheme for the cr console command:
See the topic about generating regions for more information about the cr command and how to use it. Note that you have to enable debug mode and experimental features in the setting in order to use the console.
The result
image.png
The height map that's used here is a part of New York and was extracted using http://terrain.party/
ny.png
Note how dark the image is because of the lack of hills in New York.
This feature is compatible with all recent versions of the game
However, the version for iOS doesn't support 16 bit (per channel) images right now. This is a special format that is used by some height map creators; you may have to save them with an image program to make them compatible with the game.
Re: Generating a city or region from a height map image
Posted: 17 Aug 2020, 05:32
by PetrovMaksYt
Wow well. But i have 1.5.88 because my phone have android 4.3 but micrimax 5.1 usually off and lag every 1 - 2 minutes and not lag more time.
Re: Generating a city or region from a height map image
Posted: 31 Aug 2020, 16:20
by Achmad Romi
bagaimana cara membuat sebuah benua?
Di terrain.party hanya dapat foto sebuah kota
Re: Generating a city or region from a height map image
Posted: 03 Sep 2020, 09:43
by AzulaFL
I tried it but there was no water in dusseldorf i had to make the river thankfully it somewhat had an outline of the river, in amsterdam the whole map was in water
Re: Generating a city or region from a height map image
The brightness of each pixel determines the height of the corresponding tile in the city. The brightness ranges from 0 to 255, with 10 being the sea level. Dependent on where you have your height maps from you may have to adjust their contrast and brightness.
So you usually can fix that by adjusting the brightness of the whole image so that the area that should be water has a brightness of 10 or below.
Re: Generating a city or region from a height map image
Posted: 17 Sep 2020, 05:23
by mapla
terrain.party error
Re: Generating a city or region from a height map image
Posted: 02 Oct 2020, 22:57
by Designer Anthony
How do you make maps from heightmaps in TheoTown using Android?
Re: Generating a city or region from a height map image