Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Z-fighting issues
MHaggag Offline
Junior Member

Posts: 16
Threads: 3
Joined: Apr 2007
Reputation: 0
#1
Solved: 8 Years, 4 Months, 3 Weeks ago Z-fighting issues

Vista Ultimate 32-bit, Radeon X300 SE, Catalyst 7.4 (and 7.3, and 7.2).

At shader details < high, lighting suffers from a lot of z-fighting. The lit walls continuously flicker between the lit/unlit state (projected lightmap?), and the issue is apparent with the flashlight model itself as well since it's close to the near-clipping plane--a triangle in the corner of the flashlight keeps flickering (appearing and disappearing).

The same z-fighting occurs in the ship at the beginning of the game, even at high shader quality--the map on the table, the jacket on the wall, and the wall with windows flicker depending on the viewer angle relative to them.

Are you using depth bias/polygon-offset for multipass effects?
04-26-2007, 12:20 PM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#2
Solved: 8 Years, 4 Months, 3 Weeks ago RE: Z-fighting issues

I am using EQUAL depth test mode when rendering and this might casue soem problems allthough no other ATI card has had problem.

I think this is becuase of ATI Vista drivers I am afraid ....
04-26-2007, 12:43 PM
Find
MHaggag Offline
Junior Member

Posts: 16
Threads: 3
Joined: Apr 2007
Reputation: 0
#3
Solved: 8 Years, 4 Months, 3 Weeks ago RE: Z-fighting issues

Thomas Wrote:I am using EQUAL depth test mode when rendering and this might casue soem problems allthough no other ATI card has had problem.

I think this is becuase of ATI Vista drivers I am afraid ....

Would a depth func of GL_LEQUAL together with polygon offset work? That's what I use in my code to work on this card/driver combo, since GL_EQUAL causes z-fighting. Out of one of my apps:

glEnable(GL_POLYGON_OFFSET_FACTOR);
glPolygonOffset(1, 1);
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE);
glDepthFunc(GL_LEQUAL);
04-26-2007, 06:40 PM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#4
Solved: 8 Years, 4 Months, 3 Weeks ago RE: Z-fighting issues

No it is not possible and is a must for the rendering to work.
04-26-2007, 06:42 PM
Find




Users browsing this thread: 1 Guest(s)