Mapdev:metal: Difference between revisions
From Spring
Jump to navigationJump to search
created page |
m fixed missing closure tags. |
||
| Line 20: | Line 20: | ||
autoShowMetal = true, | autoShowMetal = true, | ||
... | ... | ||
} | }</pre></code> | ||
== Image File == | == Image File == | ||
Revision as of 02:43, 17 December 2012
Metal
Metal maps are used for the built in resourcing scheme (Metal/Energy), they define metal areas on a battlefield based upon the values in the red channel of the metal map. This image is an intermediary file compiled into the SMF file using MapConv or MapConvNG
| Example Diffuse Texture | Ingame Result |
|---|
Specification
mapinfo.lua
relevant sections of the mapinfo.lua file are:
mapinfo ={
...
maxMetal = 0.02,
extractorRadius = 500.0,
autoShowMetal = true,
...
}
Image File
- 8 bpp RGB
| Spring Map Size* | pixels = Spring Map Size * 64 + 1 |
|---|---|
| 2 | 129 |
| 4 | 257 |
| 6 | 385 |
| ... | ... |
| 32 | 2049 |
* must be multiples of 2