Jump to content
Yzii

Cannot get RVMAT work properly - Textures are not showing/weird lightning

Recommended Posts

Hi! Guys I need help my first project. I am stucked at creating material for my model. When I apply just diffuse texture, everything works just fine, but I cannot get working other textures. I am currently trying out Super Shader, but with same results over and over again. When I apply RVMAT on my model, textures will not show up and lighting will mess up badly (I tried to recalculate normals). Do you have any idea what Im doing wrong? I have some experiences with coding, but Im pretty new to this kind of stuff.

I tried to use tga as well as paa texture without success (buldozer did some work with tga textures but at the end didnt used them and kept model grey)

Screen from Buldozer (only diffuse texture)
https://imgur.com/AOBY3Uo
Screen from Buldozer (with RVMAT)
https://imgur.com/MvhiCxL
Screen from Substance Painter 
https://imgur.com/2ayLvAt

Here is my RVMAT 
 

ambient[]={1.000000,1.000000,1.000000,1.000000};
diffuse[]={1.000000,1.000000,1.000000,1.000000};
forcedDiffuse[]={0.000000,0.000000,0.000000,0.000000};
emmisive[]={0.000000,0.000000,0.000000,1.000000};
specular[]={0.700000,0.700000,0.700000,1.000000};
specularPower=180.000000;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1 //Normal map (_NO or _NOHQ)
{
	texture="DrugsAndCoins\textures\Briefcase_nohq.paa";
	uvSource="tex";
};
class Stage2 // Detail map (_DT)
{
	texture="#(argb,8,8,3)color(0.5,0.5,0.5,0)";
	uvSource="tex";
};
class Stage3 //Macro map (_MC)
{
       texture="#(argb,8,8,3)color(0,0,0,0)";
	uvSource="tex";
};
class Stage4 //AmbientShadow map (_AS)
{
	texture="DrugsAndCoins\textures\Briefcase_as.paa";
	uvSource="tex";
};
class Stage5 // Specular map SMDI
{
	texture="DrugsAndCoins\textures\Briefcase_smdi.paa";
	uvSource="tex";
};
class Stage6 //Frenel
{
	texture="#(ai,64,64,1)fresnel(1.3,7)";
	uvSource="none";
};
class Stage7 //environment map
{
	texture="ca\air\data\env_co.paa";
	uvSource="none";
};

 

Share this post


Link to post
Share on other sites

So I have found my problem. For anyone in future with same issue as I did, you have to have correct paths and textures in all stages! I had this mistake in Stage7.

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

×