Jump to content
Sign in to follow this  
Cunico

Reflective lens?

Recommended Posts

I made a gas masks but I would like to make the lens reflective like the rest of things in the game has. I want a really dark reflective lens, but not sure how to go about doing it? I'm sure they have to have there own RVMAT but how do I get the reflections?

Here is a picture

<a  href=GasMask_zpsf9f5da96.jpg' alt='GasMask_zp

Share this post


Link to post
Share on other sites

Select the lenses add this rvmat to them

class StageTI{
   texture = "a3\data_f\default_ti_ca.paa";
};
ambient[] = {1,1,1,1};
diffuse[] = {1,1,1,1};
forcedDiffuse[] = {0,0,0,0};
emmisive[] = {0,0,0,0};
specular[] = {1,1,1,1};
specularPower = 180;
PixelShaderID = "Super";
VertexShaderID = "Super";
renderFlags[] = {"NoZWrite"};
class Stage1
{
   texture = "your_nohq.paa";
   uvSource = "tex";
   class uvTransform
   {
       aside[] = {1,0,0};
       up[] = {0,1,0};
       dir[] = {0,0,0};
       pos[] = {0,0,0};
   };
};
class Stage2
{
   texture = "#(argb,8,8,3)color(0.5,0.5,0.5,0.5,DT)";
   uvSource = "tex";
   class uvTransform
   {
       aside[] = {5,0,0};
       up[] = {0,5,0};
       dir[] = {0,0,0};
       pos[] = {0,0,0};
   };
};
class Stage3
{
   texture = "#(argb,8,8,3)color(0,0,0,0,MC)";
   uvSource = "tex";
   class uvTransform
   {
       aside[] = {1,0,0};
       up[] = {0,1,0};
       dir[] = {0,0,0};
       pos[] = {0,0,0};
   };
};
class Stage4
{
   texture = "#(argb,8,8,3)color(1,1,1,1,AS)";
   uvSource = "tex";
   class uvTransform
   {
       aside[] = {1,0,0};
       up[] = {0,1,0};
       dir[] = {0,0,1};
       pos[] = {0,0,1};
   };
};
class Stage5
{
   texture = "yours_smdi.paa";
   uvSource = "tex";
   class uvTransform
   {
       aside[] = {1,0,0};
       up[] = {0,1,0};
       dir[] = {0,0,1};
       pos[] = {0,0,1};
   };
};
class Stage6
{
   texture = "#(ai,64,64,1)fresnel(1.1,0.4)";
   uvSource = "none";
};
class Stage7
{
   texture = "a3\data_f\env_land_ca.paa";
   uvSource = "none";
};

and then try to mess with specular[] and specularPower values

Share this post


Link to post
Share on other sites

Thanks Robert, I ended up figuring it out. I didn't even have to do all that, but thanks for the help in writing or looking this up. I ended up just using the ones Arma 3 provides with the Heli Pilots helmets. Seems to work ok I guess . ..

<a  href=Untitled-1_zps22d788b2.jpg' alt='Untitle

Share this post


Link to post
Share on other sites

Hey Robert, I know I fixed this issue with this gas mask, but I made another different one and I tried your above code but my lens are completely invisble as if I never made lens? any idea?

Share this post


Link to post
Share on other sites

If I drop the item on the ground you can see that it has the reflective lens on it, but if you actually wear them you can't see anything at all as far as the lens go.

<a  href=Why_zps0b1764af.jpg' alt='Why_zps0b1764a

Edited by Cunico

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  

×