IT lexicon › Hardware › Z-buffer

Z-buffer

Hardware På svenska → Updated: 2026-07-31

The buffer tracking how far away each pixel is, so nearer objects hide what lies behind them.

During rasterisation triangles are drawn in arbitrary order, and something must decide what is visible. The z-buffer stores a depth value per pixel; a new triangle is only drawn if it is nearer than what is already there. The solution comes from Edwin Catmull's 1974 thesis and is so simple it displaced every alternative.

Two problems follow. Precision is distributed unevenly — plenty near the camera, little far away — giving z-fighting, the flickering that appears when two surfaces sit in almost the same plane. And transparent objects do not work, since they must be blended with what lies behind; they have to be sorted and drawn last by hand.

← Back to the lexicon