Jump to content
Sign in to follow this  
RoF

Wrong ground texture showing

Recommended Posts

This is doing my head in, I'm trying to put a concrete ground texture, but it keeps showing the forest one instead!?!?

 

layers.cfg

class Layers
{
  class rofIce_Plymouth_dirt
  {
    texture = #(rgb,1,236,255)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_dirt.rvmat";
  };
  class rofIce_Plymouth_dry_grass
  {
    texture = #(rgb,255,255,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_dry_grass.rvmat";
  };
  class rofIce_Plymouth_forest_pine
  {
    texture = #(rgb,74,41,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_forest_pine.rvmat";
  };
  class rofIce_Plymouth_grass_green
  {
    texture = #(rgb,0,255,46)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_grass_green.rvmat";
  };
  class rofIce_Plymouth_soil
  {
    texture = #(rgb,0,0,255)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_soil.rvmat";
  };
  class rofIce_Plymouth_concrete
  {
    texture = #(rgb,255,0,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_concrete.rvmat";
  };
 
};

class Legend
{
  picture="rofIce\rofIce_Plymouth\source\mapLegend.png";
  class Colors
  {
    rofIce_Plymouth_dirt[]={{1,236,255}};
    rofIce_Plymouth_dry_grass[]={{255,255,0}};
    rofIce_Plymouth_forest_pine[]={{74,41,0}};
    rofIce_Plymouth_grass_green[]={{0,255,46}};
    rofIce_Plymouth_soil[]={{0,0,255}};
    rofIce_Plymouth_concrete[]={{255,0,0}};
  };
};

The 3 files in data

rofIce_Plymouth_concrete.rvmat
rofIce_Plymouth_concrete_co.paa
rofIce_Plymouth_concrete_nopx.paa

concrete.rvmat

ambient[] = {1,1,1,1};
diffuse[] = {0.25,0.25,0.25,1};
forcedDiffuse[] = {0,0,0,0};
specular[] = {0.0,0.0,0.0,0};
specularPower = 1;
emmisive[] = {0,0,0,0};
PixelShaderID = "NormalMapDiffuse";
VertexShaderID = "NormalMapDiffuseAlpha";
class Stage1
{
	texture = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_concrete_nopx.paa";
	uvSource = "tex";
	class uvTransform
	{
		aside[] = {5,0,0};
		up[] = {0,5,0};
		dir[] = {0,0,0};
		pos[] = {0,0,0};
	};
};
class Stage2
{
	texture = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_concrete_co.paa";
	uvSource = "tex";
	class uvTransform
	{
		aside[] = {5,0,0};
		up[] = {0,5,0};
		dir[] = {0,0,0};
		pos[] = {0,0,0};
	};
};

It is bright red (255) on the mask. Tried google and following Altas guide and youtube, but nothing seems to work :(

 

Share this post


Link to post
Share on other sites

A good piece of advice I got early on was "Don't Panic". More often than not, your problems can come from a small mistake or inconsistency. In your data folder, do you only have the concrete co, nopx, and rvmat in there? Do you have the data for the other surfaces that you have defined in there too? I have had my ground texture revert to a default one before when I did not have all the data files that my configs required. I would recommend including all the data for all layers in your layers.cfg. In addition to that, your layers.cfg code may be incorrect in one way. i will take the concrete class considering that is the one you are trying to utilize, but I would recommend making this change to all of the classes. I will bold the inconsistency in your code and compare it to my own.

 

Yours:

class Layers
{
  class rofIce_Plymouth_dirt
 
{
    texture = #(rgb,1,236,255)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_dirt.rvmat";
  };
  class rofIce_Plymouth_dry_grass
 
{
    texture = #(rgb,255,255,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_dry_grass.rvmat";
  };
  class rofIce_Plymouth_forest_pine
 
{
    texture = #(rgb,74,41,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_forest_pine.rvmat";
  };
  class rofIce_Plymouth_grass_green
 
{
    texture = #(rgb,0,255,46)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_grass_green.rvmat";
  };
  class rofIce_Plymouth_soil
 
{
    texture = #(rgb,0,0,255)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_soil.rvmat";
  };
  class rofIce_Plymouth_concrete
 
{
    texture = #(rgb,255,0,0)color(0.5,0.5,0.5,1,cdt);
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_concrete.rvmat";
  };
 
};

 

Mine:

class Layers
{
  class mef_alaska_soil
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska\data\mef_alaska_soil.rvmat";
  };
  class mef_alaska_forest_pine
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska\data\mef_alaska_forest_pine.rvmat";
  };
  class mef_alaska_grass_green
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska\data\mef_alaska_grass_green.rvmat";
  };
};
 
In every layer class you made, you included the rgb color code. I do not think you are suppose to do that. Look at mine, you can see that I have 1's next to rgb in the texture line. I would recommend changing this and seeing if it works the way mine is set up. Hopefully, one or both of the things I said to do can help you. If they don't, then I will try think of something else you can do, but try that stuff first.

Share this post


Link to post
Share on other sites
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt); <----------you dont have to do this
    material = "mef_alaska\data\mef_alaska_grass_green.rvmat";
 
you can do this
 
    texture = "rofIce\rofIce_Plymouth\datarofIce_Plymouth_concrete_co.paa";
    material = "rofIce\rofIce_Plymouth\data\rofIce_Plymouth_concrete.rvmat";
--------------------------------------------------------------------------------
this is how i have mine set up and it works in terrain builder just fine
 
        class whitesnow
        {
        texture = "arma3map\kapolei\data\white_co.paa";
        material = "arma3map\kapolei\data\white.rvmat";
        };
  • Like 1

Share this post


Link to post
Share on other sites

 

In every layer class you made, you included the rgb color code. I do not think you are suppose to do that. Look at mine, you can see that I have 1's next to rgb in the texture line. I would recommend changing this and seeing if it works the way mine is set up. Hopefully, one or both of the things I said to do can help you. If they don't, then I will try think of something else you can do, but try that stuff first.

 

 

I did the "1,1,1" thing and it's working! 3 freaking days I've been off and on trying to get it working! Thanks for the help :slayer:

 

colddna thanks for the advice, I might start doing it that way in future.

Share this post


Link to post
Share on other sites

yah its just easier for me to put the PAA, but i cant get my ASC or XYZ to export right at all

Share this post


Link to post
Share on other sites

I did the "1,1,1" thing and it's working! 3 freaking days I've been off and on trying to get it working! Thanks for the help :slayer:

 

colddna thanks for the advice, I might start doing it that way in future.

 

Glad I could help! :dancehead:  If you have problems in the future about anything don't be afraid to ask.

Share this post


Link to post
Share on other sites

ive got this agg now   :936:

 

I just put 1 texture in layers...green grass, that worked ok.

 

now I add another entry...marsh, and the whole map is marsh!

 

class Layers

{

       class gdt_grass_green
  {

        texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
        material = "a3\map_data\gdt_grass_green.rvmat";
      };
 class gdt_marsh
  {

        texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
        material = "a3\map_data\gdt_marsh.rvmat";
      };
                  };

class Legend {

    picture="jap\jap_burm\source\mapLegend.png";

        class Colors
        {

          gdt_grass_green[]={{0,255,0}};
         gdt_marsh[]={{0,0,255}};
   
      };
 
   };

 

my mask is all green with a test patch of blue.

 

yes I know I'm using the textures and rvmats from a3 but that shoudnt be a problem should it?

Share this post


Link to post
Share on other sites

I think that must be your issue TBH  I would use your own just grab them from A3  then rename them all and change the .rvmat as well - Notpad++  is very easy  to replace all in a file 1 click will change them all for you !

 

BTW the Texture can be blank 

 

I am sure once you do that it will work

 class jap_marsh
  {
        texture = "";
        "jap\youmapname\data\jap_marsh.rvmat";
      }; 

Share this post


Link to post
Share on other sites

Just try the way I said it may work for u , I know the other way works but I did a sample on mine with RGB 1,1,1 and only grass shows and I switched it back to the .paa and it all works

Share this post


Link to post
Share on other sites

well ive moved them in their own data folder and that seems to have done the trick :)

 

thanx for your help lads..now for clutter!

 

does clutter need its colours on the mask like textures?

Share this post


Link to post
Share on other sites

Clutter goes off your mask so what ever layer u say like grass will have this clutter

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
Sign in to follow this  

×