Problem with depth

Can I somehow avoid this artifact? It’s a two closely spaced polygons.

This effect appear on the Intel onboard card. On the discrete card this not happens. I think this due to depth test precision. I can disable depth test, but for the complex scene it’s a bad solution.

My test code:

from panda3d.core import *
import direct.directbase.DirectStart

cm = CardMaker('test')
cm.setFrame(0, 257, 0, 257)

np1 = render.attachNewNode(cm.generate())
np2 = render.attachNewNode(cm.generate())
np2.setPos(100, -2, 100)
np2.setBin('', 1)


I had the same problem with my Intel graphics, the workaround was to play with the clip planes on the camera. Increasing the near clip and decreasing the far clip. It still happened to further away objects, but it is much reduced.

Thanks, It’s work!
In my case far plane has almost no influence, but near plane makes magic )