Z-fighting

Z-fighting

Z-fighting is a phenomenon in 3D rendering that occurs when two or more primitives have similar values in the z-buffer, and is particularly prevalent with coplanar polygons. The effect causes pseudo-random pixels to be rendered with the color of one polygon or another in a non-deterministic manner, varying as the scene is animated, causing one polygon to "win" the z test, then another, and so on. The overall effect is a flickering noisy rasterization of two polygons which "fight" to color the screen pixels. This problem is usually caused by limited sub-pixel precision and floating point & fixed point round-off errors.

Z-fighting can be reduced through the use of a higher resolution depth buffer, by w-buffering in some scenarios, or by simply moving the polygons further apart. Z-fighting which cannot be entirely eliminated in this manner is often resolved by the use of a stencil buffer, or by applying a post transformation screen space z-buffer offset to one polygon which does not affect the projected shape on screen, but does affect the z-buffer value to eliminate the overlap during pixel interpolation and comparison. Where z-fighting is caused by different transformation paths in hardware for the same geometry (for example in a multi-pass rendering scheme) it can sometimes be resolved by requesting that the hardware uses invariant vertex transformation.

The more z-buffer precision one uses the less likely it is that z-fighting will be encountered but it is inevitable that coplanar polygons will exhibit this problem unless corrective action is taken.

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 you will encounter z-fighting between primitives. 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 you draw a distant galaxy to scale, you 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 zbuffered rendering). To mitigate these problems, zbuffer 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.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Fighting Fantasy — The 25th anniversary edition of The Warlock of Firetop Mountain, originally published in 1982 and the first in the Fighting Fantasy series. Designer(s) Ian Livingstone, Steve Jackson Publis …   Wikipedia

  • Fighting Vipers — Японская обложка игры для консоли Sega Saturn …   Википедия

  • Fighting in ice hockey — Fighting is an established aspect of ice hockey in North America, with a long history involving many levels of amateur and professional play and including some notable individual fights.Harvnb|Bernstein|2006|p=3] Although a definite source of… …   Wikipedia

  • Fighting Spirit (manga) — Fighting Spirit Cover of Hajime no Ippo volume 1 as published by Kodansha はじめの一歩 (Hajime no Ippo) …   Wikipedia

  • Fighting Temptation — «Fighting Temptation» Сингл …   Википедия

  • Fighting Farmers Montabaur — Stadt: Montabaur Gegründet: 1992 Cheftrainer: Sebastian Haas Liga (2010): Regionalliga (2010) Größte Erfolge …   Deutsch Wikipedia

  • Fighting Temptation — Saltar a navegación, búsqueda Fighting Temptation Sencillo de Beyoncé, Missy Elliott, MC Lyte y Free del álbum The Fighting Temptations (Banda Sonora) Lanzado …   Wikipedia Español

  • Fighting Saints du Minnesota — Données clés Fondé en 1972 Disparu en 1977 Siège Saint Paul …   Wikipédia en Français

  • Fighting Force — Разработчик Core Design Издатель Eidos Interactive (PS, Win) Crave Entertainment (англ.) (N64) Дата выпуска PlayStation NA Октябрь 31, 1997 …   Википедия

  • Fighting Temptation — Single par Beyoncé Knowles avec Missy Elliott, MC Lyte, et Free extrait de l’album The Fighting Temptations: Music from the Motion Picture Sortie 18 août 2003 Durée 3 min. 50 Genre R n B, hi …   Wikipédia en Français

  • Fighting Pose wa Date ja nai! — Single par Berryz Kōbō extrait de l’album 1st Chō Berryz Face A Fighting Pose wa Date ja nai! Face B Natsu Wakame Sortie 28 avril 2004 …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”