encyclopegia.org

Z-fighting

Z-fighting, also called stitching or planefighting, is a phenomenon in 3D rendering that occurs when two or more primitives have very similar distance to the camera.[src] This would cause them to have near-similar or identical values in the z-buffer, which keeps track of depth.[src] This then means that when a specific pixel is being rendered, it is ambiguous which one of the two primitives are drawn in that pixel because the z-buffer cannot distinguish precisely which one is farther from the other.[src] If one pixel was unambiguously closer, the less close one could be discarded.[src] It is particularly prevalent with coplanar polygons, where two faces occupy essentially the same space, with neither in front.[src] As a result, affected pixels are rendered with fragments from one polygon or the other arbitrarily, in a manner determined by the precision of the z-buffer.[src] It can also vary as the scene or camera is changed, causing one polygon to "win" the z test, then another, and so on.[src] The overall effect is flickering, noisy rasterization of two polygons which "fight" to color the screen pixels.[src] This problem is usually caused by limited sub-pixel precision, floating point and fixed point round-off errors.[src] The more z-buffer precision one uses, the less likely it is that z-fighting will be encountered.[src] But for coplanar polygons, the problem is inevitable unless corrective action is taken.…[src]

Z-fighting, also called stitching or planefighting, is a phenomenon in 3D rendering that occurs when two or more primitives have very similar distance to the camera.[src] This would cause them to have near-similar or identical values in the z-buffer, which keeps track of depth.[src] This then means that when a specific pixel is being rendered, it is ambiguous which one of the two primitives are drawn in that pixel because the z-buffer cannot distinguish precisely which one is farther from the other.[src] If one pixel was unambiguously closer, the less close one could be discarded.[src] It is particularly prevalent with coplanar polygons, where two faces occupy essentially the same space, with neither in front.[src] As a result, affected pixels are rendered with fragments from one polygon or the other arbitrarily, in a manner determined by the precision of the z-buffer.[src] It can also vary as the scene or camera is changed, causing one polygon to "win" the z test, then another, and so on.[src] The overall effect is flickering, noisy rasterization of two polygons which "fight" to color the screen pixels.[src] This problem is usually caused by limited sub-pixel precision, floating point and fixed point round-off errors.[src] The more z-buffer precision one uses, the less likely it is that z-fighting will be encountered.[src] But for coplanar polygons, the problem is inevitable unless corrective action is taken.[src] As the distance between near and far clip planes increases, and in particular the near plane is selected near the eye, the greater the likelihood exists that z-fighting between primitives will occur.[src] With large virtual environments inevitably there is an inherent conflict between the need to resolve visibility in the distance and in the foreground, so for example in a space flight simulator, if a distant galaxy is drawn to scale, the viewer will not have the precision to resolve visibility on any cockpit geometry in the foreground (although even a numerical representation would present problems prior to z-buffered rendering).[src] To mitigate these problems, z-buffer precision is weighted towards the near clip plane, but this is not the case with all visibility schemes and it is insufficient to eliminate all z-fighting issues.[src]

25 sentences · 25 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Z-fighting." encyclopegia.org, 2026, https://encyclopegia.org/wiki/z-fighting. Accessed 30 November 2026.

Chicago

"Z-fighting." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/z-fighting.

APA

encyclopegia.org. (2026). Z-fighting. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/z-fighting

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1343131903 · 0.5 · snapshot enwiki-001343131903

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.