Jump to content
Sign in to follow this  
zgmrvn

RVMAT configuration and deep shadows issue

Recommended Posts

Hi,

So i'm on my begining in 3D/config and all that stuff and I made a simple and usefull model but i get some trouble with .rvmat. When i add it to my model i get realy dark shadows. The shadow casted by my ShadowVolume is fine.

left: default game model, right: my model

arma3-2014-04-14-22-12-03-91.jpg

here is my actual .rvmat. I try alot of thing but it doesn't work :(

class StageTI
{
texture="";
};
ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.1,0.1,0.1,0.1};
specularPower=3;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="training_fortifications\doors\data\training_door_r_nohq.paa";
uvSource="tex";
class uvTransform
{
	aside[]={1,0,0};
	up[]={0,1,0};
	dir[]={0,0,1};
	pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
	aside[]={8,0,0};
	up[]={0,8,0};
	dir[]={0,0,1};
	pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,0,MC)";
uvSource="tex";
class uvTransform
{
	aside[]={1,0,0};
	up[]={0,1,0};
	dir[]={0,0,1};
	pos[]={0,0,0};
};
};

class Stage4
{
texture="training_fortifications\doors\data\training_door_r_smdi.paa";
uvSource="tex";
class uvTransform
{
	aside[]={1,0,0};
	up[]={0,1,0};
	dir[]={0,0,1};
	pos[]={0,0,0};
};
};
class Stage5
{
texture="#(ai,16,2,2)fresnel(0.45,0.35)";
uvSource="tex";
class uvTransform
{
	aside[]={1,0,0};
	up[]={0,1,0};
	dir[]={0,0,1};
	pos[]={0,0,0};
};
};
class Stage6
{
texture="a3\data_f\env_land_co.paa";
uvSource="tex";
class uvTransform
{
	aside[]={1,0,0};
	up[]={0,1,0};
	dir[]={0,0,0};
	pos[]={0,0,0};
};
};

thanks.

Edited by Zigomarvin

Share this post


Link to post
Share on other sites

Hmm i see you mixed some of those stages in your rvmat

Stage 4 - should be AS map if you dont use any , then add this line> texture="#(argb,8,8,3)color(0,1,1,1)";

Stage 5 - is the SMDI map

Stage 6 - the fresnel value

and the last

Stage 7 - is env map

Share this post


Link to post
Share on other sites

nice, it worked, thanks :).

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  

×