User Tools

Site Tools


arma3:terrain:layers.cfg

ArmA 3 Layers.cfg

ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, ArmA 3 Tools

The layers.cfg file is where we configure our terrain types (concrete, grass, sand etc). The satellite mask image file RGB color values reflect where our terrain types are located on the terrain.

Layers.cfg is placed in tag_MyAddon\Source\ directory.

layers.cfg

class Layers
{
	// terrain types
	class tag_grass
	{
		// no need to specify actual texture file
		texture = "";
		material = "tag\tag_MyAddon\data\tag_grass.rvmat";
	};
 
	class tag_beach
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_beach.rvmat";
	};
 
	class tag_dirt
	{
		texture = "";
		material = "tag\tag_MyAddon\data\tag_dirt.rvmat";
	};
	// etc...
};
class Legend
{
	// read from P:\ root directory
	picture = "mapLegend.png";
 
	class Colors
	{
		// RGB color values for terrain types (class layers)
		tag_grass[] = {{ 230, 230, 120 }};
		tag_beach[] = {{ 236, 230, 149 }};
		tag_dirt[] = {{ 226, 207, 129 }};
		// etc...
	};
};

mapLegend.png image can be located in P:\ root directory and then if you have two or more terrains you can leave out the directory from class legend and all your terrains will read this image from the same location, no need to duplicate same image with every terrain source dir.

arma3/terrain/layers.cfg.txt · Last modified: 2024/08/02 18:38 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.