View Single Post
Old 11-06-12, 04:35 PM   #29
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Thank you very mutch Pintea!

Since we are at it, I've always wandered how TerrainTypes.raw is related with the ID's found in Terrain.cfg. Any idea?
I believe I have an idea
TerrainTypes.raw is a representation of the climate zones around the globe.
The link between TerrainTypes.raw and in-game textures is made through Terrain.cfg, but I guess you figured that out already.

Now, open TerrainTypes.raw in photoshop and set Image->Mode->IndexedColor.
After that use the color picker to find out the color index value.
In Terrain.cfg you'll see something like

[IdxConversion]
IDX 1=2 ;Polar Deserts
IDX 2=2 ;Arctic Tundra
IDX 3=3 ;Typical Tundra
IDX 4=3 ;Southern Tundra

Where IDX 1, IDX 2 etc are color indices from TerrainTypes.raw.
Pintea is offline   Reply With Quote