Page 6 of 19

Re: How To: Generate Superb Heightmaps :)

Posted: 11 Oct 2007 14:20
by Miksy
hi i've got the google earth bit right but when i try to load the asc files onto microdem it won't let me?

Re: How To: Generate Superb Heightmaps :)

Posted: 11 Oct 2007 15:12
by sickie
Hey nb-au, thanks for the Linux guide :!: I have yet to try it, don't have time now. And, welcome to the forums. :)

Re: How To: Generate Superb Heightmaps :)

Posted: 17 Oct 2007 13:29
by denny577
I can't extract the files in the zip I downloaded through GE it said "No files to extract" :p

Re: How To: Generate Superb Heightmaps :)

Posted: 22 Oct 2007 23:58
by Andrew_Jay
Hi,

Any suggestions for making heightmaps of your own custom terrain? I'm trying to use this as a bit of a shortcut to build my own fictional map, but I'm either not getting the results I want, or it's taking an incredible amount of work.

I've been using the colour codes posted by Ominus to build simple maps - black for water, and the darkest gray for level-one land. That's the easy part. Adding mountains and other features can be a pain - you either get uniform blobs, or have to labouriously draw in the bands to create a topographic map. For example, trying to create something like this:

Image

And then shade everything the proper colour of gray.

Re: How To: Generate Superb Heightmaps :)

Posted: 23 Oct 2007 16:02
by Vestan Pance
Hi all,

As someone who lacks the tools to create heightmaps from Google Earth in the incredibly complex (to me anyway!) way described in this thread, I just wonder whether anyone would like to help me out.

I'm looking to create a realistic scenario of the Canadian province of Alberta (my home as you will see from my location). I've had a few goes at it before, originally in TTD in 2000, but it all looks so pathetic now especially now that there is the option of creating genuine heightmaps and huge 2048x2048 land sizes.

So, if anyone feels like creating this for me I would be very grateful, alternatively if someone could give me any tips on creating it for myself using other resources I would be interested to hear that too. Ideal size for it I think would be 1024x2048.

Thanks in advance to anyone with helpful advice.

Re: How To: Generate Superb Heightmaps :)

Posted: 23 Oct 2007 17:29
by pecet
I generated simple heightmap of Poland and some neighbouring countries (using GDAL method mentioned above), you can use it of course, but it require some reworking because as for now for example: Baltic Sea is not at sea level, and Wisła (Vistula) river too.

Re: How To: Generate Superb Heightmaps :)

Posted: 29 Oct 2007 20:31
by meowsqueak
nb-au wrote:At this stage you have a greyscale PNG, which works great in OpenTTD.
I can get as far as the PNG files but it seems the height data from that source is 'truncated' and produces vast expanses of 100% white pixels? The mountains around here are all flat-topped - maybe at 200 metres or so? Makes the entire country look like a tabletop.

Re: How To: Generate Superb Heightmaps :)

Posted: 02 Nov 2007 12:23
by ColdIce
Hy! I have a huge problem! I`ve downloaded MicroDem from here http://www.usna.edu/Users/oceano/pguth/ ... emdown.htm , the complete MICRODEM install (40 MB). I`m from Romania and for my region was 4 zip files! I`ve downloaded them and extract the ASC files (each file has over 100 MB). Now after i`ve installed microdem, when i want to open the ASC files I get lots of erors! i`ve updated microdem.exe to 01-Nov-2007 15:34 5.8M version and i still get those erors!
I use Google Earth 4.2.0198.2451 (beta) from earth.google.com
Srtm3.kmz found on internet

Re: How To: Generate Superb Heightmaps :)

Posted: 02 Nov 2007 15:20
by DaleStan
Mentioning the "erors" [sic] might make it easier for someone who knows to tell you what's wrong.

Re: How To: Generate Superb Heightmaps :)

Posted: 05 Nov 2007 08:36
by ColdIce
Ok! the errors are:
"Access violation at address 00870102 in module 'microdem.exe'. Read of address 00000001."
"I/O error 104"

Re: How To: Generate Superb Heightmaps :)

Posted: 02 Dec 2007 14:10
by shrap
Hi, I have same problem like the guy above me :( Is there any solution?
I tried to open some example from Microdem SW and it worked just fine. But opening ASC files downloaded from googleEarth does not work. I tried even the maps mentioned in the very begging of this tutorial (Haiti & the Domincan Republic), w/out success ... I would like to make heightmap of Czech Republic (Top left: 51°5'46.876"N, 11°49'57.912"E, bottom right: 48°27'28.721"N, 18°53'4.3"E), if there still that project running (dont remember they guy who is making it), I would very appreciate grayscale map for this location. Thx.

PS: Any other way of help is welcome :p

Re: How To: Generate Superb Heightmaps :)

Posted: 10 Dec 2007 07:09
by nb-au
meowsqueak wrote:
nb-au wrote:At this stage you have a greyscale PNG, which works great in OpenTTD.
I can get as far as the PNG files but it seems the height data from that source is 'truncated' and produces vast expanses of 100% white pixels? The mountains around here are all flat-topped - maybe at 200 metres or so? Makes the entire country look like a tabletop.
Its much higher then that (ive noticed it too) Id have a guess its about 700-800m +

The problem probably is one of the following:
1) SEMI-FIXABLE: OpenTTD reads pixels with over a certain level of white as max height, this should be fixable by finding this level and making the readjusting the colors of the image accordingly so that it is the max height and all other levels fit in between (relatively easy in GIMP or PS). The scale height will seem lower though.

2) NON-FIXABLE (without source tinkering): OpenTTD has a limited number of levels of height. Your image has the equivalent of more then those levels, so the tops get cut off.

3) NON-FIXABLE (without source tinkering): A problem related to how OpenTTD reads bitmaps. Maybe there is a bug?

Andrew_Jay wrote:Hi,

Any suggestions for making heightmaps of your own custom terrain? I'm trying to use this as a bit of a shortcut to build my own fictional map, but I'm either not getting the results I want, or it's taking an incredible amount of work.

I've been using the colour codes posted by Ominus to build simple maps - black for water, and the darkest gray for level-one land. That's the easy part. Adding mountains and other features can be a pain - you either get uniform blobs, or have to labouriously draw in the bands to create a topographic map. For example, trying to create something like this:

Image

And then shade everything the proper colour of gray.
It might be possible to use the gradient tool to do something, it'll still take a lot of work. But it would reduce stepping/terracing.

Re: How To: Generate Superb Heightmaps :)

Posted: 11 Dec 2007 21:03
by Madwack
I noticed above someone requested a height map of Alberta

if someone could ..please do

Alberta 2000x1000 ish

about that size ..lotsa detail

cheers

Madwack

Re: How To: Generate Superb Heightmaps :)

Posted: 11 Dec 2007 21:17
by meowsqueak
nb-au wrote:
meowsqueak wrote:
nb-au wrote:At this stage you have a greyscale PNG, which works great in OpenTTD.
I can get as far as the PNG files but it seems the height data from that source is 'truncated' and produces vast expanses of 100% white pixels? The mountains around here are all flat-topped - maybe at 200 metres or so? Makes the entire country look like a tabletop.
Its much higher then that (ive noticed it too) Id have a guess its about 700-800m +

The problem probably is one of the following:
1) SEMI-FIXABLE: OpenTTD reads pixels...
Actually, I meant that the problem is with the generation of the PNG images with the GDAL tool - before OpenTTD reads anything. The raw height data seems to be truncated at some altitude. This makes the very mountainous terrain of New Zealand come out like a big flat (white) sheet. OpenTTD reads this but it's all high and flat of course.

Re: How To: Generate Superb Heightmaps :)

Posted: 14 Dec 2007 01:47
by nb-au
meowsqueak wrote:Actually, I meant that the problem is with the generation of the PNG images with the GDAL tool - before OpenTTD reads anything. The raw height data seems to be truncated at some altitude. This makes the very mountainous terrain of New Zealand come out like a big flat (white) sheet. OpenTTD reads this but it's all high and flat of course.
Oh, in that case i guess you could try messing around with command line instructions. If you figure anything out, post it. Itd be nice to actually see the top of Australia's Great Dividing Range. Id actually just figured it was GDAL in the last day or two myself as my heghtmaps in Simcity 4 were doing the same things. :(

Re: How To: Generate Superb Heightmaps :)

Posted: 06 Jan 2008 11:44
by grim4593
That Linux heightmap guide was very useful! Thanks for the post.
I made a heightmap of the Greatlakes area by combining four/eight 512x512 pngs:

These are the heightmaps from GDAL. It is a bit "whitewashed" and OpenTTD doesn't read the water level. If you want to mess with the colors yourself, you can use this.
Image Image

These are the colorcorrected heightmaps that I edited with GIMP. I made the "sealevel" even with the lake surface, and toned down the brightness to remove the gigantic steps of white. You can bring this into the OpenTTD editor with no problems.
Image Image

This is a 512x1024 scenario file with placed cities from an atlas. I did not add any industries, so you can edit that to your liking.
Great Lakes.scn
Scenario file with real cities. No industries have been placed.
(797.58 KiB) Downloaded 341 times

Re: How To: Generate Superb Heightmaps :)

Posted: 24 Jan 2008 00:37
by ostlandr
grim4593, thank you so much! :D

When I get around to it, will tweak the city populations, and add rivers if possible. Possibly even the Erie Canal and its feeders. Will break out the atlas and add appropriate industries also. Those iron boats have to come to Buffalo, and grain also.

Re: How To: Generate Superb Heightmaps :)

Posted: 25 Jan 2008 08:46
by grim4593
That would be pretty cool. Can we make "rivers" now? That was the reason I didn't add the major rivers, you can't have water tiles off sealevel, and canals just looked goofy IMO.

Re: How To: Generate Superb Heightmaps :)

Posted: 27 Jan 2008 13:02
by CARST
Here is the heightmap of Alberta, Canada requested in previous posts...

Based on SRTM, 1:2, needs some work in the north-east part...

The Maltese Islands HeightMap (.PNG)

Posted: 10 Feb 2008 15:21
by kevin.carbonaro
Thanks to nb-au 's instructions I managed to get the heightmap for Malta. :)

I have attached the .PNG file which is 2048 x 2048 ready to be imported in TTD.

Hopefully I'll find some time to add some of the major cities and towns on the islands. If and when this is done, I will make the scenario available for download.

Kevin C.