Make a openttd Heightmap?

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

Moderator: OpenTTD Developers

Post Reply
RMJ
Traffic Manager
Traffic Manager
Posts: 160
Joined: 24 Sep 2005 13:52
Location: Denmark
Contact:

Make a openttd Heightmap?

Post by RMJ »

Hey im trying to make a heightmap. So far i have gotten to this image. Thats work somewhat. But i wanted to hear how i get it better?..
Attachments
denmark.PNG
denmark.PNG (34.4 KiB) Viewed 1889 times
RMJ
Traffic Manager
Traffic Manager
Posts: 160
Joined: 24 Sep 2005 13:52
Location: Denmark
Contact:

Post by RMJ »

Its because it needs to be more flat. There are way to many hills..
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

this image sucks as a heightmap. The shorelines are pretty wrong in many places :P
How did you manage to get such a crap image?
neonx
Engineer
Engineer
Posts: 11
Joined: 04 Jul 2003 16:06
Location: Norway

Post by neonx »

RMJ wrote:Its because it needs to be more flat. There are way to many hills..
In Denmark? :wink:
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

ok, found the issue (well, I didn't but Rubidium did)
<Rubidium> the order of the colors for the heightmap in the palette is wrong
<Bjarni> ok, then what should it be?
<Bjarni> is it documented anywhere?
<Rubidium> not really. But either a grayscale image 0..255, where 0..15 is becomes sealevel, 16..31 level 1 etc.
<Rubidium> or paletted image with 16 colors where the order of the palette heightlevel, i.e. the color at palette position 0 is level 0, position 1 level 1 etc
it still wont be possible to use that heightmap to generate a map, that copies the real world, as it's clear that it's messed up somehow. You can make a fictional map based on the idea of reality though. The game will not know the difference :wink:
RMJ
Traffic Manager
Traffic Manager
Posts: 160
Joined: 24 Sep 2005 13:52
Location: Denmark
Contact:

Post by RMJ »

Nah Denmark is almost 100% flat :P very tiny hills..

here at better image
Attachments
Denmark ORG.JPG
Denmark ORG.JPG (68 KiB) Viewed 1236 times
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

Try these two heightmaps - sorry I dont have better resolution data. One is at heights of 50m, the other at 100m intervals. As Denmark is so flat, the 100m version shows very little detail, however Norway's mountains retain their detail.

The 50m plot shows more detail in Denmark, but Norway loses out.

I use the GeoDAS Global 2 minute plot, so my data isnt that accurate for small areas. Its great for continents, but any area less than about 1000mi across is not particularly well detailed.

Also please remember this is HEIGHT map data... any area that is below sea level will appear as sea in OTTD. (Hence my Europe maps put Holland under water :) )
Attachments
Denmark50m.png
50m plot
(247.74 KiB) Downloaded 466 times
100m view
100m view
Denmark.png (69.25 KiB) Viewed 9454 times
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

even the 50m map got too little detail to make this look right. Looking at where the real railroads got problems with grades, they appear to be the same colour everywhere, hence flat. To make this right, you need a map with a scale, that puts 200m at the highest point to avoid an all flat map. The question is how to get such a map.
klogg
Traffic Manager
Traffic Manager
Posts: 248
Joined: 10 May 2006 13:55

Post by klogg »

Maybe take a photo of you preferred country. :wink:
I could take one of germany...

klogg

PS: Don't throw stuff at me.
Luxor
Engineer
Engineer
Posts: 25
Joined: 24 Jul 2004 04:39

Can we use this images?

Post by Luxor »

I'm trying to get some pics, but don't know how to "adapt" them. Look the satelital pics here: https://zulu.ssc.nasa.gov/mrsid/mrsid.pl (for download images you must enable pop-ups for the site)
Luxor
Engineer
Engineer
Posts: 25
Joined: 24 Jul 2004 04:39

not more than 500 mts?

Post by Luxor »

Is that the max height of the maps? Cause i'm loading this image and genereta a table at top height in the "andes" mountain side...
Attachments
norte-grande-chile1.png
(1.25 MiB) Downloaded 398 times
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Re: not more than 500 mts?

Post by richk67 »

Luxor wrote:Is that the max height of the maps? Cause i'm loading this image and genereta a table at top height in the "andes" mountain side...
That is a satellite photo, not a heightmap. A heightmap shows the height of the train coded in shades of grey from black (sea) - to white (mountain tops).
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
MGSteve
Traffic Manager
Traffic Manager
Posts: 133
Joined: 11 Aug 2002 15:07
Location: Walsall, England

Give this one a try :)

Post by MGSteve »

As attached - high res heightmap of Denmark (1700x1700).

Its probably more 'hilly' in the map than in real life, but I had to alter the range of the greyscale mapping to ensure that it got the shoreline correct.

I guess its about time I wrote a 'how to' for generating these maps!
Attachments
denmark.png
(460.53 KiB) Downloaded 473 times
MGSteve
Traffic Manager
Traffic Manager
Posts: 133
Joined: 11 Aug 2002 15:07
Location: Walsall, England

Re: Give this one a try :)

Post by MGSteve »

MGSteve wrote:I guess its about time I wrote a 'how to' for generating these maps!
Well, I have! - Check it out! http://www.tt-forums.net/viewtopic.php?t=27052
Mcpace
Engineer
Engineer
Posts: 2
Joined: 26 Oct 2007 11:24

Re: Make a openttd Heightmap?

Post by Mcpace »

As the most famous Danish fjord was missing from the heightmap, I manually edited the map to include this. I know it's not precise, but you gotta know Denmark pretty well, to tell the difference ;)

Oh yeah, and most importantly, I removed Sweden :P
Attachments
denmark edited.PNG
A manually edited heightmap of Denmark
(549.84 KiB) Downloaded 160 times
Miw68
Engineer
Engineer
Posts: 20
Joined: 11 Oct 2004 20:52
Location: Denmark

Re: Make a openttd Heightmap?

Post by Miw68 »

And for those who wants southern sweden back to Denmark (where it belongs :lol: ) thank heaven for pretty "blond" girls
btw it fits for 2048*2048 scen.
Attachments
DENMARK_01.png
(1.12 MiB) Downloaded 318 times
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests