Converting an ASCII matrix into a TGA heightfield
=================================================

Write the elevation values (0 - 65535) into an ASCII file.
Values must be separated by white space (blanc, tab, cr/lf).
Two numbers specifying the size (rows, columns) must precede the elevation values.

Example (a simple Mountain):
3 3
0 0 0
0 10 0
0 0 0

Call the converter from within a DOS box:
asc2tga data.txt heightf.tga

To smooth the heightfield call the smooth command from within a DOS box:
smooth heightf.tga smoothd.tga 10

This will enlarge the heightfield by factor 10 in each direction. This means it takes up
10*10=100 times as much memory. A magnification by factor 10 is already very smooth.
It is NOT a good idea to run smooth again to further enlarge a heightfield. Do it in one
step instead. The results are better.

You can find example files in the zip archive.
In order not to violate copyright and to save space I only provide a heavily blured low resolution scan of the map as a texture.

Files in the ZIP archive
========================
readme.txt	this file
license.txt	The GNU General Public License for 

karte.pov	Sample file for POV-Ray (www.povray.org)
tutwil.txt	Sample elevation map (text matrix)
tutwil.gif	The texture used by karte.pov

asc2tga.exe	The converter executable
smooth.exe	The smoother/resizer executable

asc2tga.cpp	The C++ source code for asc2tga
smooth.cpp	The C++ source code for smooth
The source code is not needed to run the programs but useful if you wonder...