Jump to content
Zanzetkuken

What's a good listing for a map's Layer.cfg and .rvmats?

Recommended Posts

I'm new to working in the Terrain Editor, and while the ultimate terrain tutorial covers it, it specifically is written in a manner just to get the terrain builder working.  I am curious as to what a good overall setup in terms of what would be listed in those two sections would be.

Share this post


Link to post
Share on other sites

It's  just what textures you use, so  something like this

 

class Layers
{
  class yourtag_yourproject_dirt
  {
    texture = "";
    material = "yourtag\yourtag_yourproject\data\yourtag_yourproject_dirt.rvmat";
  };
  class yourtag_yourproject_dry_grass
  {
    texture = "";
    material = "yourtag\yourtag_yourproject\data\yourtag_yourproject_dry_grass.rvmat";
  };
  class yourtag_yourproject_forest_pine
  {
    texture = "";
    material = "yourtag\yourtag_yourproject\data\yourtag_yourproject_forest_pine.rvmat";
  };
};

class Legend
{
  picture="yourtag\yourtag_yourproject\source\mapLegend.png";
  class Colors
  {
	yourtag_yourproject_dirt[]={{255,0,0}};
	yourtag_yourproject_dry_grass[]={{255,255,0}};
	yourtag_yourproject_forest_pine[]={{255,0,255}};
  };
};

and rvmat's the textures you use

ambient[] = {1,1,1,1};
diffuse[] = {1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,0};
specular[]={0,0,0,0};
specularPower=1;
PixelShaderID="NormalMapDiffuse";
VertexShaderID="NormalMapDiffuseAlpha";
class Stage1
{
	texture="yourtag\yourtag_yourproject\data\yourtag_yourproject_dirt_nopx.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={10,0,0};
		up[]={0,10,0};
		dir[]={0,0,10};
		pos[]={0,0,0};
	};
};
class Stage2
{
	texture="yourtag\yourtag_yourproject\data\yourtag_yourproject_dirt_co.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={10,0,0};
		up[]={0,10,0};
		dir[]={0,0,10};
		pos[]={0,0,0};
	};
};

 

Share this post


Link to post
Share on other sites
16 hours ago, RoF said:

It's  just what textures you use, so  something like this

I know its the textures I use.  I was wanting to know a good general listing that would cover most maps.

Share this post


Link to post
Share on other sites
41 minutes ago, Zanzetkuken said:

I know its the textures I use.  I was wanting to know a good general listing that would cover most maps.

 

You set it up for each map, no point adding textures you don't use and making the .pbo bigger

Share this post


Link to post
Share on other sites
On 10/8/2020 at 5:14 PM, RoF said:

 

You set it up for each map, no point adding textures you don't use and making the .pbo bigger

Yes, but I've been unable to track down any image of what all the stuff looks like for an easy side by side comparison of each of the many .rvmat files Arma gives you to know what I need to use for the map in the first place.  I've been trying over the past month to use the Arma 3 tools, but they only let you go through them 1 at a time.  Pretty annoying pain.

Share this post


Link to post
Share on other sites
9 hours ago, Zanzetkuken said:

Yes, but I've been unable to track down any image of what all the stuff looks like for an easy side by side comparison of each of the many .rvmat files Arma gives you to know what I need to use for the map in the first place.  I've been trying over the past month to use the Arma 3 tools, but they only let you go through them 1 at a time.  Pretty annoying pain.


You can convert the images to .png https://pmc.editing.wiki/doku.php?id=arma3:batch-file-examples#paa_to_tga_png

 

I've honestly never really found it much of an issue to find the texture that's needed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×