Page 2 of 19
Posted: 29 Aug 2006 13:42
by Bjarni
miham wrote:Luxor wrote:another question that appears, is it possible to get this maps on the standard 0.4.8 version, only have worked in the nightly and the miniIn, but i wanna get the standard version cause is more popular in the multiplayer world

AFAIK that is not possible, at least, directly.
One way which might work: use the nightly to generate the map, and save the generated OpenTTD map, then try to load it in the 0.4.8, but I don't think it'll work because of the savegame version bump.
no that will not work as newer savegames store more data. You can load old savegame versions, but not "from the future" (seen at the time when the game was compiled). You need to load a savegame/map with the same savegame version as it was made with or newer
Posted: 07 Sep 2006 21:40
by bruce89
MGSteve wrote:Yup, all except the Image conversion software I used were free!
Of course you could use The
GIMP instead, which is free (both meanings of the word).
Posted: 11 Sep 2006 07:19
by CobraA1
Yup, the GIMP works nicely, and if you don't mind commandline tools, so does ImageMagick.
http://www.imagemagick.org/script/index.php
It can all be done for free

.
MicroDem
Posted: 11 Sep 2006 16:36
by fr_tycoon
Hello !
First of all, I'd like to thank MGSteve for this tutorial, which is really helpful ! Everything went great, until I tried to download MicroDem. It seems like this link you gave is broken, or the site may be down. Could you tell me if I could find MicroDem somewhere else (although, I've googled it, and didn't manage to find a version above 5.0.3, which didn't use ASC files) ? Or even another software I could use instead of MicroDem.
Thanks in advance for any help !
I've discovered this website a few days ago, and I'm really glad about it
Fred
Posted: 11 Sep 2006 18:34
by QtanJ
I just found
FWTools, this works in at least windows and linux, but I don't know how I can do this work instructed in the tutorial with it. I've tested to load dem files, and it seems like it works.
*edit It is openev you need from this package.
*edit 2 I'm currently having a problem with opening the gtiff image which was the first image type i found which was supported with this self compiled version of fwtools(including openev)
Posted: 12 Sep 2006 04:29
by CobraA1
Cool - I made my first map based off of a real location - in this case, Long Island, NY. (1024x512)
(removed, I created an improved one)
Posted: 19 Sep 2006 08:04
by Reuben
I'm afraid i have a problem with this, i use a mac, and so can't run the programme shown to get topographic pics. I've searched a fair while and haven't found a similar app yet.. so i was wondering who would be keen to get New Zealand's north island done (perhaps a 1024x2048 for the entire island or 1024x512 for around Auckland and surrounding towns+cities)
Posted: 20 Sep 2006 03:42
by CobraA1
I've created an improved long island map, the coastline should be more realistic now.
A few things I've discovered while experimenting:
-When selecting the "Gray scale" option in MicroDem, also click on "zRange" and set it to "Topography only" - this will create a map with a larger range of possible values.
-Correct me if I'm wrong, but I think OpenTTD has 16 levels of terrain. This means that all of your oceans/lakes should be 0-15, and all of your land should be 16-255 on your image.
-Personally, when I don't need to stitch any images together, I set zoom to 1, set the greyscale, and export the image directly to the GIMP. The GIMP can handle large images very well, so I don't bother with doing all that thinning & merging stuff in MicroDem when I don't need to.
Posted: 20 Sep 2006 06:51
by CobraA1
I'm afraid i have a problem with this, i use a mac, and so can't run the programme shown to get topographic pics. I've searched a fair while and haven't found a similar app yet.. so i was wondering who would be keen to get New Zealand's north island done (perhaps a 1024x2048 for the entire island or 1024x512 for around Auckland and surrounding towns+cities)
Another chance for me to test my techniques for creating great and realistic coastlines in the GIMP! Soon to become a script - it takes a very, very long time to do it manually, ouch. Even thinned, DEM maps are HUGE and force the GIMP to swap to the harddrive constantly.
BUT - it is done! Both maps, and in the sizes you requested!
Beware - they are both large maps, especially the one of the northern island.
EDIT: Reuben informed me he wanted more cities covered in the Auckland map. It is now 1024x1024 in size.
Posted: 20 Sep 2006 09:42
by Reuben
Oh this is just superb, I'm very thankful! And hey, i've just got to make these into scenarios now, with real cities and all (Farming and forests will most definetelly be the industries of choice, as in real life

)
edit:
Hmm, i've looked through this thread, and linked threads, and so far it appears that i need windows again to get these maps into OTTD..[snip]
edit again

: Well, i just downloaded the os X nightly, and ta-da, there it is.. the heightmap options! silly me

nice guid :)
Posted: 01 Oct 2006 11:25
by omri.kipi
did all of that, got a nice hight map.
what now ?
how do i make the PNG to a TTD map ?

Posted: 01 Oct 2006 16:47
by DaleStan
Use a nightly or the MiniIN, and load it in from the Land-gen toolbar in the Scenario editor.
Posted: 03 Oct 2006 14:39
by AndiK
I've played around a bit with the DEMs you can get via Google Earth. I found out some stuff that might be useful for other people who want to create nice height maps:
- An area of about 200 x 200 km for a 2048² map fits very well into TTDs landscape measure. In a hilly or mountaineous area, you will get both steep hills and nice valleys. If you cover a larger area, the valleys will get too narrow to build anything in them. A smaller area stretches all hills and mountains so much that they are no obstacle any more. -> Boring.
- A vertical height spread (meaning: Difference in height between highest and lowest point on the map) of about 1000m seems best for TTDs landscape measures.
- You can get nice coast lines if you rework the height maps in your graphic program a bit. I only have german photoshop, so I have to supply a few pictures for everyone's understanding:
- In MICRODEM, use "Map Area Range" as z-scale for elevation and save the map.
- Open the graphics program of your choice and load the TIFF.
- If your map does not contain any ocean, skip to step 6.
- Take the "Magic Eraser" and set it to the following:

- Click anywhere on your ocean, this removing ALL pixels with the color value 0/0/0. Your map should then look as follows:

The chequered area is transparent.
- Choose this command:

- Set it to the following:

This is what you just did: You removed all of the sea from your map, thus removing all completely black pixels. So, everything else that is still visible, MUST be land. As someone else has already found out: TTD has 16 height steps. Thus, Pixels are considered "height level 1", when their value is between 16 and 32. When you told MICRODEM to use the whole spectrum of z-values, it assigned very low values to the coast area, which then makes OTTD put ocean there. With this "Tonwertkorrektur", Photoshop "compresses" the height values so that the lowest value on land is 16. If you hadn't removed all of the ocean, the ocean would now have a height of 16 and everything else would be above it. Not quite what we wanted, though.
- Now we need to "refill" the ocean. To do this, create a new layer and fill it with black. Then pull the new layer "below" the old one. The result should look like this:

- The rest is like in the original tutorial: Cut out a rectangle with a good aspect ratio (Photoshop has a tool for this), resize it, save it and fire it up in OTTD.
- Congratulations, you've now created a perfect* height map.
* It's perfect because I wrote this little tutorial AND I TELL YOU IT'S PERFECT AND DON'T YOU DARE TO DISAGREE!!!!1111oneoneoneeleven
Suggestions, comments and criticism are always appreciated.

Posted: 08 Oct 2006 21:28
by CobraA1
Hmm, it seems that SRTM2 is down

. Any other sources of data that could be used?
AndiK: That's nice, but I'm sure it would be much appreciated if those screenshots came from an English version of Photoshop. No offense, but I somehow doubt most of us have a "Tonwertkorrektur." I think it translates to tone or color correction or something like that. In the GIMP, which I use, it's called "levels." Don't know what it's called in Photoshop, though.
Posted: 29 Oct 2006 19:25
by Tegeltje
Just in case others run into this problem:
I've followed the tutorial, and was trying to save the image as a GEOTIFF file. For some reason though, MicroDEM gives me a vague error that it can't write to my harddisk. The exact error is: "Error write file (Disk full?)". I have over 50 GB of free space, so I highly doubt that's the problem.
Anyway, after poking around MicroDEM a bit, I noticed the option "Save image" when you right-click on the heightmap This will allow you to save the image in a variety of formats, including PNG. That worked fine for me, and my map looks decent in OTTD.
Posted: 02 Nov 2006 05:25
by CobraA1
NOTE: They updated their database.
Posted: 12 Nov 2006 14:47
by Chrill
How do I remove these black lines in the map??
EDIT: Nevermind, I found it out myself

Posted: 12 Nov 2006 16:30
by Chrill
This is my finished product!
Posted: 14 Nov 2006 19:04
by AndiK
Cobra: I am aware of this language problem. Unfortunately, I don't have Photoshop in english. Thus I posted the Screenshots (Which seem not to work, at the moment..? Must check this.), hoping that the english "color correction" (or whatever) is at the same place as the german "Tonwertkorrektur".
Posted: 18 Nov 2006 18:01
by Chrill
I am requesting! Someone who could edit a file I send to them, so that it fits correct into OTTD!

I don't have a program to make the picture right size