Jump to content
Sign in to follow this  
Tonto-

Terrain Builder does not recognize all mask colors

Recommended Posts

So I cant generate my surface layer right. Every surface works but the two last ones; vt7_pelto and vt7_nurmi2.

class Layers
{
	class vt7_sammal
	{
	texture = "";
	material = "vt7\data\vt7_sammal.rvmat";
	};
	class vt7_hietikko2_gravel
	{
	texture = "";
	material = "vt7\data\vt7_hietikko2_gravel.rvmat";
	};
	class vt7_hakkuu2
	{
	texture = "";
	material = "vt7\data\vt7_hakkuu2.rvmat";
	};
	class vt7_kannas_green
	{
	texture = "";
	material = "vt7\data\vt7_kannas_green.rvmat";
	};
	class vt7_nurmi2
	{
	texture = "";
	material = "vt7\data\vt7_nurmi2.rvmat";
	};
	class vt7_pelto
	{
	texture = "";
	material = "vt7\data\vt7_pelto.rvmat";
	};
};

class Legend
{
	picture="p:\vt7\source\MapLegend.png";
	class Colors
		{
		vt7_sammal[]={{0,255,0}};
		vt7_hietikko2_gravel[]={{255,255,0}};
		vt7_hakkuu2[]={{255,128,0}};
		vt7_kannas_green[]={{253,0,245}};
		vt7_nurmi2[]={{255,30,30}};
		vt7_pelto[]={{7,0,254}};
		};
};

So far i've tried:

Different rgb-colors

Different size mask images

Rewriting layers.cfg

Rewriting every .rvmat

My own MapLegend.png

Packing with pboproject and addonbuilder, neither gives any errors

 

Here's a examples of one piece of layer and the mask image.

https://www.dropbox.com/s/ra34spr69mh2eej/M_000_000_lca.png?dl=0

 

https://www.dropbox.com/s/rf5h4fn0psrf9sn/example.png?dl=0

Share this post


Link to post
Share on other sites

You can only define 4 different Layers. The others will be ignored. 

 

"maximum of four different terrain types"

 

https://community.bistudio.com/wiki/Layered_Terrain_Surface_Representation

 

That's not true, you can have as many as you want, you can't exceed 5 per tile though, tile size is in your mapframe properties and includes the overlap.

Share this post


Link to post
Share on other sites

9cV2qPU.jpg

Shouldnt it work with 6 materials per cell? Heres my settings.

Share this post


Link to post
Share on other sites

That setting is Arma 2, you posted in the Arma 3 section, so my answer was for Arma 3 :unsure:

Share this post


Link to post
Share on other sites

Even if I'm not planning to use Satelite Normal map? Thats strange, because i used that Arma 2 option with my last A3 map project..

 

I'll try my luck with satelite normal option. :)

Share this post


Link to post
Share on other sites

The two options are:

1.) 6 colors per land grid cell or whatever it is called OR

2.) 5 colors and a normal map

 

Obviously you can have less than 5 if you want but those two options are the max.

 

In the original post, what do you mean by the last two don't work? What isn't working about them? If you use "surfaceType getpos Player" while standing on them what does that return?

Share this post


Link to post
Share on other sites

Both not working surface textures has vt7_sammal surfaces texture.

surfaceType getpos Player
"#vt7_sammal_Surface"

Share this post


Link to post
Share on other sites

The only thing I can think of is your rvmats and you said you checked that. What if you comment out the first two colors in the layers. And have you checked your cfgSurfaces file?

Share this post


Link to post
Share on other sites

Same result even with first two out commented colors. I mean the textures that had no color were still there and the two last were not. :o No errors, but the generated layer sure looks different: https://www.dropbox.com/s/ra34spr69mh2eej/M_000_000_lca.png?dl=0

 

Here is my cfgSurfaces: http://pastebin.com/fvfXeWBt

Share this post


Link to post
Share on other sites

I found out that the surface textures are right in Bulldozer before packing to pbo. Does this make any sense?

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  

×