How To: Generate Superb Heightmaps :)

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
YNM
Tycoon
Tycoon
Posts: 3535
Joined: 22 Mar 2012 11:10
Location: West Java

Re: How To: Generate Superb Heightmaps :)

Post by YNM » 15 Aug 2012 23:57

@ jostor : I hope that you can overcome the very-huge-map with detailed cities and industries.

@ Eisenbaehr : No more way to extract heightmap from .scn file. Not that I know exist in OTTD nor outside of it.
YNM = yoursNotMine - Don't get it ?

Eisenbaehr
Engineer
Engineer
Posts: 62
Joined: 29 May 2006 06:59
Location: Germany

Re: How To: Generate Superb Heightmaps :)

Post by Eisenbaehr » 16 Aug 2012 18:08

Oh yes. I see the problem. Stockholm is in the year 2030 too :D

Watch Norway's mountain Glittertind, it looks like the highest mountain of the whole map. Try to find this on the OpenTTD-map. Next try to upper this highest point.

> Otherwise the map is to low or some mountains are flattened.

I will see what I can do.

> I don't mind if the map isn't turned 45 degrees

You say this map is rotated correctly or not?? I don't understand this enough ;)

jostor
Engineer
Engineer
Posts: 48
Joined: 10 Jan 2012 19:38

Re: How To: Generate Superb Heightmaps :)

Post by jostor » 16 Aug 2012 18:12

I'm used to playing with the real north to the north-west in game. 45 degree difference from what you posted would be what I'm after :)

Eisenbaehr
Engineer
Engineer
Posts: 62
Joined: 29 May 2006 06:59
Location: Germany

Re: How To: Generate Superb Heightmaps :)

Post by Eisenbaehr » 16 Aug 2012 18:31

Can you open an own thread for this task?

Eisenbaehr
Engineer
Engineer
Posts: 62
Joined: 29 May 2006 06:59
Location: Germany

Re: How To: Generate Superb Heightmaps :)

Post by Eisenbaehr » 17 Aug 2012 01:01


Vizoros
Engineer
Engineer
Posts: 1
Joined: 20 Dec 2012 22:39

Re: How To: Generate Superb Heightmaps :)

Post by Vizoros » 13 Jan 2013 23:09

Hey guys, I've been trying to make a height map of the Island of Ireland for a while now, but keep getting into trouble when it comes to merging the three DEMs that I have, I've been able to follow the steps until that point.

Could anyone please advise me on what to do? Or even do it for me explaining how you did it, that would be great thanks! :)

JoseWeeks
Engineer
Engineer
Posts: 1
Joined: 01 Jul 2013 09:28

Re: How To: Generate Superb Heightmaps :)

Post by JoseWeeks » 01 Jul 2013 09:35


As always, great work dude, quite beneficial suggestions to both beginners and experts. Really appreciable !!!!
Last edited by Chrill on 02 Jul 2013 22:36, edited 2 times in total.
Reason: Edited the long quote

User avatar
Chrill
Moderator
Moderator
Posts: 15256
Joined: 18 Dec 2004 17:35
Location: Stockholm, Sweden
Contact:

Re: How To: Generate Superb Heightmaps :)

Post by Chrill » 02 Jul 2013 22:36

JoseWeeks: Please try to not post such excessively large quotes. While your feedback is welcome and appreciated, such quotes are simply too long. I've taken the liberty of editing your post. :)
Image
Newest screenshots published January 9, 2019
Chrill's scenarios:
Archipiélago Hermoso
(Latest Release: Version 3.2)
Turnpike Falls (Latest Release: Version 0.91)

TinyMusic
Tycoon
Tycoon
Posts: 1423
Joined: 02 Feb 2013 02:03

Re: How To: Generate Superb Heightmaps :)

Post by TinyMusic » 07 Aug 2013 10:34

I'm not sure if this question is asked already, but is there a way to add rivers in MicroDEM? Do I need to download extra data files or something?
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]

Eddi
Tycoon
Tycoon
Posts: 7369
Joined: 17 Jan 2007 00:14

Re: How To: Generate Superb Heightmaps :)

Post by Eddi » 07 Aug 2013 14:31

OpenTTD has no method (yet) to read rivers integrated into heightmaps, you have to put them in manually in the scenario editor
You might not exactly be interested in Ferion, but if you are, have fun :)

TinyMusic
Tycoon
Tycoon
Posts: 1423
Joined: 02 Feb 2013 02:03

Re: How To: Generate Superb Heightmaps :)

Post by TinyMusic » 07 Aug 2013 15:11

Eddi wrote:OpenTTD has no method (yet) to read rivers integrated into heightmaps, you have to put them in manually in the scenario editor
I meant drawing rivers in MicroDEM with a black line, so it would be sea level.
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]

User avatar
kamnet
Moderator
Moderator
Posts: 6608
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: How To: Generate Superb Heightmaps :)

Post by kamnet » 07 Aug 2013 16:15

No, because in those heightmaps, black is sea level. Actual rivers are never at sea level, and exist at every height above sea level. MicroDEM is not a drawing tool, it only interprets the scientific data into a more human-readable form.

OpenTTD's ability to read heightmaps is just based only on simple colors. So when it sees a black line crossing several other shades of grey, should it interpret that as a river running down several heights, or should it interpret that as a river that has cut a deep gorge into the landscape, or should it interpret that as two masses of land separated by a very thin section of sea?

User avatar
YNM
Tycoon
Tycoon
Posts: 3535
Joined: 22 Mar 2012 11:10
Location: West Java

Re: How To: Generate Superb Heightmaps :)

Post by YNM » 08 Aug 2013 10:00

Maybe by implementing a portion of the new heightmap features that rivers are drawn as blue pixles over the existing grayscale heightmap ? I'm not sure how hard is that, but from my viewpoint there will be some incompatibility in terrain (height) generation and river generation as one may notice when generating scenarios/game.
YNM = yoursNotMine - Don't get it ?

bokkie
Transport Coordinator
Transport Coordinator
Posts: 326
Joined: 19 Jan 2007 19:26

Re: How To: Generate Superb Heightmaps :)

Post by bokkie » 08 Aug 2013 14:00

You might want to have a look at http://wiki.openttd.org/Terkhen/Scenario_format

User avatar
YNM
Tycoon
Tycoon
Posts: 3535
Joined: 22 Mar 2012 11:10
Location: West Java

Re: How To: Generate Superb Heightmaps :)

Post by YNM » 09 Aug 2013 11:50

Oh yes, I meant that. Quite hard whether to class it as heightmap or scenario I guess.
YNM = yoursNotMine - Don't get it ?

User avatar
AlexG
Traffic Manager
Traffic Manager
Posts: 136
Joined: 04 Apr 2011 07:27
Location: Cluj Napoca

Re: How To: Generate Superb Heightmaps :)

Post by AlexG » 06 Oct 2013 18:50

how can I generate maps with microdem? Ive tried different softwares and tehniques...I can' t bypass Data Manipulation and merge different dems. I wanted for an Europe map on 2x4096 size and some particular countries but since last week, I couldn't advance to much with it...

TinyMusic
Tycoon
Tycoon
Posts: 1423
Joined: 02 Feb 2013 02:03

Re: How To: Generate Superb Heightmaps :)

Post by TinyMusic » 08 Oct 2013 11:52

Sadguardian wrote:how can I generate maps with microdem? Ive tried different softwares and tehniques...I can' t bypass Data Manipulation and merge different dems. I wanted for an Europe map on 2x4096 size and some particular countries but since last week, I couldn't advance to much with it...
The description at the OP uses an older version of Microdem, so you don't use Data Manipulation. To merge DEMs together, click Open, then Open and Merge DEM, and pick the DEMs that you want to merge
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]

User avatar
YNM
Tycoon
Tycoon
Posts: 3535
Joined: 22 Mar 2012 11:10
Location: West Java

Re: How To: Generate Superb Heightmaps :)

Post by YNM » 08 Oct 2013 12:07

... Either that or the fact that it takes a whale of time to open, merge, and present those DEM datas to you (depends on your specs, through). IMO general it's a hell easier to make the heightmaps separately, then merge them using image editing program.
YNM = yoursNotMine - Don't get it ?

User avatar
AlexG
Traffic Manager
Traffic Manager
Posts: 136
Joined: 04 Apr 2011 07:27
Location: Cluj Napoca

Re: How To: Generate Superb Heightmaps :)

Post by AlexG » 08 Oct 2013 18:15

No luck so far....I tried to make something in microdem (I did got further with the Merging step) but now, some water (Black Sea) are showed in black squares and the Mediterranean Sea doesn't look correct placed :roll: Some ideas ?
I want to mention that when I did download the SRTM data, the London server did work a bit slow and in the very first time (without modifications), one grid was with black squares...

E C G
Engineer
Engineer
Posts: 10
Joined: 22 Oct 2013 12:31

Re: How To: Generate Superb Heightmaps :)

Post by E C G » 22 Oct 2013 14:20

How To Generate Suberb Heighmaps on Mac:

OTTD does a really good job at reading heightmaps, and reading this topic has inspired me to also create some real world scenario's.

But since I have a Mac, I had to use a different program, and so I decided to share this. Also I'd like to promote my upcoming scenario, hehe.

So here's what I used:

1. Google Earth + the SRTM 4.1 plug-in (link in OP)
2. SimpleDEMviewer - https://www.jizoh.jp/english.htmlglish.html
3. Photoshop
4. OTTD

I know Photoshop is not free-ware, but since it's what I used, I thought I might aswell include it.

How To:
1. Google Earth
As explained, through SRTM you can just click on one or more of the heightmap-links shown in the red circle to download the DEM file.

Image

2. SimpleDEMviewer
Now use SimpleDEMviewer to open the image downloaded from Google Earth. Now you have to convert it to a greyscale image.

Select -> Tools -> Greyscale

To make sure that the image makes a clear difference between the sea and the lowest land-mass, we increase the default land-height by 100. Also set sea level to 0.

Now create the greyscale and save the image.

Image

3. Photoshop
The greyscale is already usable, but will not work nicely for OTTD because of the resolution. Also in some cases you want to get rid of a big body of water and focus on (specific)land rather. I do this in Photoshop.

First I edit the Image Size and scale down the image by 20%, just to make sure I can use most of the image's landscape.
Next I edit the Canvas Size. This is a very nice tool, since it allows you to get rid of most of the water and you can immediately set the right pixel resolution.

The geography of my map allows for a nice rectangular OTTD map, this is 1024 x 2048
So in the Canvas Tool I want it to adjust the Width to 1024 pixels and the Hight to 2048 pixels.
Before I adjust the size, I anchor the image to the right side of the canvas. This will make sure that any adjustments will use the right size of the image as the base, and so that will stay intact.

Now just save the new OTTD-proof image as a PNG file...

Image

4. ...and open it in OTTD with the same resolution settings.

As you can see, I am creating the South African Cape with most of it's West Coast District. Through Town Planning and Urban Design internships in Cape Town I've studied the Cape and the District's Spatial Development Frameworks. I have learned a lot about this area and now I just want to recreate that into an OTTD Scenario.

Hopefully I will be able to show some results in the Scenario section soon!
Attachments
Screen Shot 2013-10-22 at 2.37.05 PM.jpg
Google Maps with SRTM 4.1 Data
Screen Shot 2013-10-22 at 2.37.05 PM.jpg (88.19 KiB) Viewed 6885 times
Screen Shot 2013-10-22 at 2.42.23 PM.png
Photoshop - Canvas Size Tool
(273.18 KiB) Downloaded 1 time
Screen Shot 2013-10-22 at 2.40.34 PM.jpg
SimpleDEMviewer - Greyscale Tool
(155.27 KiB) Downloaded 1 time

Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 3 guests