Mapdev:metal: Difference between revisions
m →Image File: removed fixme. |
m →Image File: used image template styling |
||
| Line 24: | Line 24: | ||
== Image File == | == Image File == | ||
* The red value of pixel corresponds to the metal value. | * The red value of pixel corresponds to the metal value. | ||
<center> | {| class="wikitable" width="100%" | ||
! width="15%" | File Location | |||
| The metal map is an intermediary file compiled into the SMF file using [[MapConv]] or [[MapConvNG]]. | |||
|- | |||
! File Format | |||
| Any that the Mapconv programs support | |||
|- | |||
! Colour Depth | |||
| 8bpp | |||
|- | |||
! Channels | |||
| RGB | |||
|- | |||
! Resolution | |||
| <center> | |||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
!Spring Map Size<sup>*</sup> | !Spring Map Size<sup>*</sup> | ||
| Line 49: | Line 61: | ||
| style="text-align: left;font-style:italic" colspan=2 | * must be multiples of 2 | | style="text-align: left;font-style:italic" colspan=2 | * must be multiples of 2 | ||
|}</center> | |}</center> | ||
|} | |||
= Additional Information = | = Additional Information = | ||
Revision as of 14:47, 6 January 2013
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.
| |
| Example Metal Map | Ingame Result |
|---|
Specification
mapinfo.lua
mapinfo ={
...
maxMetal = 0.02,
extractorRadius = 500.0,
autoShowMetal = true,
...
}
Image File
- The red value of pixel corresponds to the metal value.
| File Location | The metal map is an intermediary file compiled into the SMF file using MapConv or MapConvNG. | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| File Format | Any that the Mapconv programs support | ||||||||||||||
| Colour Depth | 8bpp | ||||||||||||||
| Channels | RGB | ||||||||||||||
| Resolution |
| ||||||||||||||
Additional Information
Patch Technique
If you do want perfect metal patches, use a 6x6 pixel pencil in your image editor with a red value of 255. This combined with setting the "MaxMetal" tag in the definitions to 1, will result in a perfect 2.0 metal generation per patch (using Balanaced Annihilation values). The game use isn't the point however. The fact is that if you can predict how much each spot will output (typically), using the "MaxMetal" parameter, you can easily scale the values up and down. As an example of another extreme, Evolution RTS dictates that all metal patches will output 0.5 metal regardless of the map settings. So whether you need to put a lot of thought into your metal map values depends entirely upon the game for which you are creating the map.
