Mapdev:grass: Difference between revisions
From Spring
Jump to navigationJump to search
m cleaned a little. |
m updated to use image spec table. |
||
| Line 6: | Line 6: | ||
! Example Grass Disribution | ! Example Grass Disribution | ||
! In Game Result | ! In Game Result | ||
|} | |} | ||
| Line 38: | Line 36: | ||
== Distribution Image == | == Distribution Image == | ||
Formerly [[Mapdev:features|Feature]] Map. Grass distribution is defined by blue pixels, the more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location. | Formerly [[Mapdev:features|Feature]] Map. Grass distribution is defined by blue pixels, the more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location. | ||
{| class="wikitable" width="100%" | |||
! width="15%" | File Location | |||
| The distribution map is an intermediary file compiled into the SMF/SMT files using [[MapConv]] or [[MapConvNG]]. | |||
|- | |||
! File Format | |||
| Any that 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 60: | Line 71: | ||
|- | |- | ||
| 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> | |||
|} | |} | ||
== Shading Image == | == Shading Image == | ||
* If a shading image is not present, the minimap will be used in its place. | * If a shading image is not present, the minimap will be used in its place. | ||
{| class="wikitable" width="100%" | |||
! width="15%" | File Location | |||
| ./maps/ | |||
|- | |||
! File Format | |||
| PNG, TGA | |||
|- | |||
! Colour Depth | |||
| 8bpp | |||
|- | |||
! Channels | |||
| RGB | |||
|- | |||
! Resolution | |||
| Any, recommended powers of two, will be stretched over the terrain. | |||
|} | |||
<center> | <center> | ||
{| class="wikitable" | {| class="wikitable" | ||
| | | {{FIXME}} || {{FIXME}} | ||
| | |||
|- | |- | ||
! Example | ! Example !! Result | ||
! | |}</center> | ||
== Blade Texture == | |||
{{FIXME}} need more info. | |||
{| class="wikitable" width="100%" | |||
! width="15%" | File Location | |||
| ./maps/ | |||
|- | |||
! File Format | |||
| PNG, TGA | |||
|- | |||
! Colour Depth | |||
| 8bpp | |||
|- | |||
! Channels | |||
| RGB | |||
|- | |||
! Resolution | |||
| {{FIXME}} | |||
|} | |} | ||
<center> | <center> | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
| | | {{FIXME}} || {{FIXME}} | ||
| | |||
|- | |- | ||
! Example | ! Example !! Result | ||
! Result | |}</center> | ||
|} | |||
</center> | |||
= Forum Discussions = | = Forum Discussions = | ||
Revision as of 01:06, 7 January 2013
Grass
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 |
|---|
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
Formerly Feature Map. Grass distribution is defined by blue pixels, the more blue the pixel is (the closer to blue 255 it is), the thicker grass will be at that location.
| File Location | The distribution map is an intermediary file compiled into the SMF/SMT files using MapConv or MapConvNG. | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| File Format | Any that Mapconv programs support | ||||||||||||||
| Colour Depth | 8bpp | ||||||||||||||
| Channels | RGB | ||||||||||||||
| Resolution |
| ||||||||||||||
Shading Image
- If a shading image is not present, the minimap will be used in its place.
| File Location | ./maps/ |
|---|---|
| File Format | PNG, TGA |
| Colour Depth | 8bpp |
| Channels | RGB |
| Resolution | Any, recommended powers of two, will be stretched over the terrain. |
| FIXME: | FIXME: |
| Example | Result |
|---|
Blade Texture
FIXME: need more info.
| File Location | ./maps/ |
|---|---|
| File Format | PNG, TGA |
| Colour Depth | 8bpp |
| Channels | RGB |
| Resolution | FIXME: |
| FIXME: | FIXME: |
| Example | Result |
|---|
