Tool

Nametreemaker
DescriptionCreates the files for the forest maps and the thermal map.

Start it on the command line or with a batch file. It needs 2 parameters

1. number of columns (if the tile in the corner left up is 2324.bmp use 23)
2. number of rows (if the tile in the corner left up is 2324.bmp use 24)

F.x.

treemaker.exe 23 24

To get it work there is something to setup:

Create a folder, f.x. Treemaker
Copy the treemaker.exe into this folder
Create a folder Textures in the folder Treemaker
Create a folder ForestMaps in the folder Treemaker
Create a folder ThermalMaps in the folder Treemaker
Copy the texture files of your landscape into the Textures folder, best size is 2048 x 2048
Create 4 files in the folder Treemaker, any size, white will be ignored
b.bmp containing the colors to recognize decicuous trees
s.bmp containing the colors to recognize conifers
f.bmp containing the colors to recognize fields
w.bmp containing the colors to recognize water

Bit depth of all bitmaps has to be 24 or 32.

The program will then import the colors of the 4 files in the sequence b s f w, same colors will overwrite the defined colors (f.x. water wins over conifers). Not defined colors will be used as fields. It creates than the b- and s-files in ForestMaps and the thermal files in the ThermalMaps.

To get the ThermalMap file copy the files in ThermalMaps into Working\Terragen\Textures of your landscape, import the texture in LandscapesEditor and export flightplanner map (bmp). Copy the yourlandscape.bmp in Working, rename it as ThermalMap.bmp and Export thermal map (TDM).

Example (only used for test, b,s and f has to be defined better)


treemaker\b.bmp


treemaker\s.bmp


treemaker\f.bmp


treemaker\w.bmp


treemaker\Textures\0002.bmp

After running the tool


treemaker\ForestMaps\b0002.bmp


treemaker\ForestMaps\s0002.bmp

treemaker\ThermalMaps\0002.bmp

treemaker.ziptreemaker.zip