Jump to content
Sign in to follow this  
Delta Hawk

light faces showing through shadows

Recommended Posts

I've looked, but I didn't really see a topic addressing this problem, but you know how you look at my police cars and you have the lights turned on during the day, and the "light" faces causes the shadows in the background to disappear, like on the tail lights or the window brake light. Or how I have the tail lights with more than one face, and sometimes one "light" face clips the other face and makes part of it disappear.

Is there a way to fix this? Maybe it's in the .rvmat or is it the sorting of the faces? I know this glitch bugs alot of people, but it drives me freakin crazy.

Share this post


Link to post
Share on other sites

Can you post a pic of your problem?

Most of the "clipping" problems can be fixed by "sharp edge"-ing in O2.

Other "shadow" issues on transparent faces can be solved by using non-shadow rvmat's. E.g.:

First (assigned) 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[] = {1.000000, 1.000000, 1.000000, 0.000000};
specularPower = 5.000000;
renderFlags[] = {"NoAlphaWrite"};
nextPass = "modem_tiger\tiger_glass_2nd.rvmat";
PixelShaderID = "Glass";
VertexShaderID = "Glass";

class Stage1 {
texture = "#(ai,64,64,1)fresnelGlass()";
uvSource = "none";
};

class Stage2 {
texture = "ca\air\data\materialy\env_co.paa";
uvSource = "none";
};

2'nd stage rvmat (tiger_glass_2nd.rvmat)

ambient[] = {1, 1, 1, 1};
diffuse[] = {1, 1, 1, 1};
forcedDiffuse[] = {0, 0, 0, 0};
emmisive[] = {0, 0, 0, 1};
specular[] = {0, 0, 0, 0};
specularPower = 0;
PixelShaderID = "AlphaNoShadow";
VertexShaderID = "Basic";
renderFlags[] = {"NoColorWrite"};

Share this post


Link to post
Share on other sites

Sounds like a z buffer sorting problem. You need to edit the order of your objects in O2.

Share this post


Link to post
Share on other sites

Here an example of the "clipping" problem. If you look on the lightbar with all the red lights and single white light, you'll see the white light is clipping the red light. All the other redlights are actually clipping each other too.

http://img.photobucket.com/albums/v295/deltahawk/GPD3.jpg

As for the shadow thing, if you have the car during the day and hit the brakes, the brake lights make the shadows disappear in the background. Sorry I can not provide a picture, I'm not with my laptop right now.

When I get home, I'll try the sharp face thing.

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  

×