zgmrvn 95 Posted April 16, 2014 (edited) 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 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 April 16, 2014 by Zigomarvin Share this post Link to post Share on other sites
roberthammer 582 Posted April 16, 2014 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
zgmrvn 95 Posted April 16, 2014 nice, it worked, thanks :). Share this post Link to post Share on other sites