AllForum

03-21-2011, 04:14 AM

Hello,

I am trying to use the stencil buffer to cap a clipped solid.

1- But the geometry contains coplanar faces and this creates artifacts : I guess it is the classical z-fighting.

It is too difficult to change the geometry ; Is there a way with opengl to manage the z-fighting problem ?

2- There is anoter artifact : a lot of edges of the non-clipped solids have the color of the capping plane. I guess that it is the same z-fighting problem on the intersection of 2 faces. How do you solve this problem ?

Thanks for your help

I am trying to use the stencil buffer to cap a clipped solid.

1- But the geometry contains coplanar faces and this creates artifacts : I guess it is the classical z-fighting.

It is too difficult to change the geometry ; Is there a way with opengl to manage the z-fighting problem ?

2- There is anoter artifact : a lot of edges of the non-clipped solids have the color of the capping plane. I guess that it is the same z-fighting problem on the intersection of 2 faces. How do you solve this problem ?

Thanks for your help