Hubbry Logo
search
logo
2021941

Back-face culling

logo
Community Hub0 Subscribers
Write something...
Be the first to start a discussion here.
Be the first to start a discussion here.
See all
Back-face culling

In computer graphics, back-face culling determines whether a polygon that is part of a solid needs to be drawn. Polygons that face away from the viewer do not need to be drawn, as they will be obscured by other polygons facing the viewer. This process makes rendering objects quicker and more efficient by reducing the number of polygons to be drawn.

For example, in a city street scene, there is generally no need to draw the polygons on the sides of the buildings facing away from the camera; they are completely occluded by the sides facing the camera. If multiple surfaces face towards the camera, then additional use of methods such as Z-buffering or the Painter's algorithm may be necessary to ensure the correct surface is rendered. Back-face culling is typically quite a cheap test, only requiring a dot product to be calculated, and so it is often used as a step in the graphical pipeline that reduces the number of surfaces that need to be considered.

In general, back-face culling can be assumed to produce no visible artifact in a rendered scene if it contains only closed and opaque geometry. In scenes containing transparent polygons, rear-facing polygons may become visible through the process of alpha composition. Back-face culling may also be applied to other problems. For example, in wire-frame rendering, back-face culling can be used to partially address the problem of hidden-line removal, but only for closed convex geometry. Back-face culling can also be applied to flat surfaces other than polygons, for example disks, which have a constant normal vector or extended to patches where the surface normal can be bounded.

A related technique is clipping, which determines whether polygons are within the camera's field of view at all. As clipping is usually more expensive than back-face culling, back-face culling is often applied first. Another similar technique is Z-culling, also known as occlusion culling, which attempts to skip the drawing of polygons that are covered from the viewpoint by other visible polygons.

In non-realistic renders, certain faces can be culled by whether or not they are visible, rather than facing away from the camera. "Inverted hull" or "front face culling" can be used to simulate outlines or toon shaders without post-processing effects.

Back-face culling has been used since at least the 1970s. It has been used in many video games, including the original 1984 BBC Micro version of the game Elite. By the mid 1990s, many graphics systems could implement back-face culling in hardware.

One method of implementing back-face culling is by discarding all polygons where the dot product of their outward pointing surface normal, , and the line of sight vector, , is greater than or equal to zero:

In the case of rendering a polygon specified by a list of vertices, this might be calculated by

See all
User Avatar
No comments yet.