Mapdev:grass: Difference between revisions
From Spring
Jump to navigationJump to search
migrated information from my old spec page. |
m added more info. |
||
| Line 2: | Line 2: | ||
Formerly Feature Maps. Grass coverage is defined by blue pixels on the feature map. The more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location. Grass is entirely optional, but can be customized via map parameters and adds a nice touch to your map. | Formerly Feature Maps. Grass coverage is defined by blue pixels on the feature map. The more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location. Grass is entirely optional, but can be customized via map parameters and adds a nice touch to your map. | ||
{| class="wikitable" style="text-align: center;" width="100%" | {| class="wikitable" style="text-align: center;" width="100%" | ||
| | | [[File:Mapdev-grass.png]] || [[File:Mapdev-grass-example.png|451px]] | ||
|- | |- | ||
! Example Grass Disribution | ! Example Grass Disribution | ||
! In Game Result | ! In Game Result | ||
|- | |||
| colspan="2" | ''This example represents the blue channel of the feature map.'' | |||
|} | |} | ||
| Line 35: | Line 37: | ||
== Distribution Image == | == Distribution Image == | ||
* The distribution map is an intermediary file compiled into the SMF/SMT files using [[MapConv]] or [[MapConvNG]]. | |||
* 8 bpp RGB | * 8 bpp RGB | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
| Line 57: | Line 60: | ||
| 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 | ||
|} | |} | ||
== Shading Image == | == Shading Image == | ||
* 8 bpp RGB, any resolution, will be stretched over the whole | * File location: ./maps | ||
* 8 bpp RGB, any resolution, will be stretched over the whole terrain | |||
* If a shading image is not present, the minimap will be used in its place. | |||
<center> | <center> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 72: | Line 76: | ||
== Blade Texture == | == Blade Texture == | ||
Need more info | |||
* File location: ./maps | |||
* 8 bpp RGB | |||
<center> | <center> | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Revision as of 02:49, 21 December 2012
Grass
Formerly Feature Maps. Grass coverage is defined by blue pixels on the feature map. The more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location. Grass is entirely optional, but can be customized via map parameters and adds a nice touch to your map.
![]() |
|
| Example Grass Disribution | In Game Result |
|---|---|
| This example represents the blue channel of the feature map. | |
Specification
mapinfo.lua
local mapinfo = {
...
resources = {
...
grassBladeTex = "",
grassShadingTex = "",
...
},
...
grass = {
bladeWaveScale = 1.0,
bladeWidth = 0.32,
bladeHeight = 4.0,
bladeAngle = 1.57,
bladeColor = {0.59, 0.81, 0.57},
},
...
}
Blade Wave Scale
Blade Height
Blade Angle
Blade Color
does nothing when blade texture is set.
Distribution Image
- The distribution map is an intermediary file compiled into the SMF/SMT files using MapConv or MapConvNG.
- 8 bpp RGB
| Spring Map Size* | pixels = Spring Map Size * 64 |
|---|---|
| 2 | 128 |
| 4 | 256 |
| 6 | 284 |
| ... | ... |
| 32 | 2048 |
| * must be multiples of 2 | |
Shading Image
- File location: ./maps
- 8 bpp RGB, any resolution, will be stretched over the whole terrain
- If a shading image is not present, the minimap will be used in its place.
| Example | Result |
|---|
Blade Texture
Need more info
- File location: ./maps
- 8 bpp RGB
| Example | Result |
|---|
