Britannica Sources used in this answer

How does hidden-surface elimination make three-dimensional computer images look realistic?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Hidden-surface elimination is a fundamental technique in computer graphics that ensures three-dimensional images appear realistic by correctly managing the visibility of objects from a specific viewpoint.1

In a 3D scene, as the observer's perspective shifts, solid objects must naturally obscure those positioned behind them, and an object's front surfaces must hide its rear ones. Without this process, a computer might incorrectly render internal or rear-facing parts of an object as if they were visible, resulting in a flat or transparent appearance that breaks the illusion of depth.1

To achieve this, rendering systems often extend pixel attributes to include the "depth" of each pixel in a scene. Algorithms then use this depth data to compute which surfaces are visible to the viewer and which are hidden by other objects. By ensuring that only the surfaces closest to the observer are displayed, the computer creates a convincing sense of spatial volume and realism. In modern applications like electronic games, these calculations are performed by specialized hardware in real time to maintain smooth, immersive visuals.1