This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma:terrain:layered_terrain_surface [2007-07-13 07:18] snakeman created layered_terrain_surface initial page |
arma:terrain:layered_terrain_surface [2017-10-06 20:30] snakeman http to https switch. |
||
---|---|---|---|
Line 11: | Line 11: | ||
There are few limitations imposed on the legend file - main being no color can exist twice in the image. The sample legend was created using gradient Rainbow in Photoshop, with added gradients to black and white on the ends using gradient between two colors. | There are few limitations imposed on the legend file - main being no color can exist twice in the image. The sample legend was created using gradient Rainbow in Photoshop, with added gradients to black and white on the ends using gradient between two colors. | ||
- | {{ http://tactical.nekromantix.com/images/wiki/WRP_SurfaceMapLegend.png }} | + | {{ https://pmc.editing.wiki/images/WRP_SurfaceMapLegend.png }} |
Config describing basic surfaces for this legend might look like this (the config is part of the layer config described below): | Config describing basic surfaces for this legend might look like this (the config is part of the layer config described below): | ||
- | <code> | + | <code cpp> |
class Legend | class Legend | ||
{ | { | ||
Line 34: | Line 34: | ||
====== Layer Map ====== | ====== Layer Map ====== | ||
- | {{http://tactical.nekromantix.com/images/wiki/WRP_Layer-map_lco.png}} {{http://tactical.nekromantix.com/images/wiki/WRP_Satellite-map_lco.png}} | + | {{https://pmc.editing.wiki/images/WRP_Layer-map_lco.png}} {{https://pmc.editing.wiki/images/WRP_Satellite-map_lco.png}} |
Layer map is edited as an RGB image. Each pixel of the map image is interpreted as follows: | Layer map is edited as an RGB image. Each pixel of the map image is interpreted as follows: | ||
Line 43: | Line 43: | ||
There is another config file describing the layer map. It defines what legend is used, and it also defines surface materials for basic surfaces. Surface materials used in one layer map need to have all parameters except the textures referenced identical. Textures used should not use SRGB color conversions, which implies _lco texture type should be used. | There is another config file describing the layer map. It defines what legend is used, and it also defines surface materials for basic surfaces. Surface materials used in one layer map need to have all parameters except the textures referenced identical. Textures used should not use SRGB color conversions, which implies _lco texture type should be used. | ||
- | <code> | + | <code cpp> |
class Layers | class Layers | ||
{ | { |