The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Maps and Citylists => Topic started by: VS on September 14, 2008, 11:11:57 AM

Title: Heightmap conversion
Post by: VS on September 14, 2008, 11:11:57 AM
Hello,
one of new abilities of Simutrans (12th Sept.) is reading heightmaps in BMP format (precisely the RLE variation). This saves quite some space!

I couldn't find any "normal" image conversion program for Windows that would allow me to specify this as option, so I had to resort to ImageMagick (http://studio.imagemagick.org/script/index.php).

Using it requires some knowledge of command line usage, and the way to convert the files is described here (http://studio.imagemagick.org/pipermail/magick-users/2002-October/005393.html).

One warning, Windows already include command called convert, so you're best off copying convert.exe from imagemagick in the same folder and renaming the copy to imconvert.exe or something. Maybe you'll have to set PATH as well...

So! Does anyone else know a gui program that can handle this task? I'm asking since in future people will want to use this and I don't see any easy way.




By the way: turning on filesystem compression in XP is even better :D
Title: Re: Heightmap conversion
Post by: Tomas on September 14, 2008, 11:55:09 AM
I'm not tested, but what The Gimp (http://www.gimp.org/)?
Title: Re: Heightmap conversion
Post by: VS on September 14, 2008, 04:02:23 PM
Ah, yes, my brain has rotten again ::) It is possible. Change image mode to grayscale, then save as BMP shows option for RLE compression...
Title: Re: Heightmap conversion
Post by: prissi on September 14, 2008, 06:53:05 PM
Paint Shop Pro does it too. Never realized that other programs do not do it well.
Title: Re: Heightmap conversion
Post by: VS on September 14, 2008, 08:00:37 PM
Well, the point is that you have to use exactly one subformat. My experience is that you can't choose this in most programs. When did you last see eg. filter selection for PNG or compression for TIFF? Usually there is just the option for "bmp", "png" + level etc., but nothing beyond that.