Sonni
Sonni

Reputation: 21

OpenGL mesh intersection disturbance

I have this weird issue in my program where the intersection between to meshes gets really messed up the further away I go. What is this phenomenon called and how do I fix it.

Here is a picture of it illustration

Upvotes: 1

Views: 246

Answers (1)

nullpotent
nullpotent

Reputation: 9260

It is called Z-fighting. Use higher-res depth buffer.

But it could also mean that your mesh(es) has co-planar faces; you'd fix that by offsetting affected faces by a little.

Upvotes: 2

Related Questions