Stopping overlapping textures from flickering?

Hi,

Does anyone know of a way to stop overlapping textures from flickering?

The instance meshes are slightly overlapping at the joints, and share the same textures, resulting in flickering

Could anyone point me in the right direction?

Thanks

Sounds like z-fighting? If so, the simplest solution is to avoid overlapping geometry whenever possible.

Yes, I faced the same issue and it is Z-Fighting. Aldonaletto, Thanks for the solution.

Setting high near clipping plane did solve this issue :slight_smile:

I had this exact same issue. To fix this I just set the y value of the overlapping models to be .0001 units higher/lower than the one next to it. This solved the issue for me.

Setting high near clipping plane did solve this issue

What??? I just did this and it worked! I thought I was going to have to go back and fix all of my geometry in 3ds Max, redo my decals, flatten out my terrain etc. My problem was that it looked fine when I worked in and exported for Mac, but when playing it in Windows everything flickered like crazy. I can’t believe bumping up the near clipping plane for my camera fixed everything! Why does that work? And thankfully I didn’t have to crank it up so much that the player can see through walls.

Increasing the near clip isn’t a real solution. Its a workaround which will introduce side effects, like losing the right view of objects which are behind camera and projects shadows. We need a good solution, not a workaround, because that z-fighting makes little sense, i’m having this issue even between objects which are clearly distant in terms of z values.

i have the same issue and i solved it by put a y difference on objects… but at far distances > 1000 it starts however to flicker / overlap

Best solution is to create a shader and set offset values to -0.1, -1. Then use this shader on one of the overlapping object and normal shader on another object. Camera will render one object over another.