Clipping plane

Also known as: near clipping plane · far clipping plane

On this page 8

A clipping plane is a mathematical plane that bounds the visible volume of a virtual camera, so that any geometry on its outer side is cut away and never drawn. Among the 3D fundamentals of 3D graphics & animation, the term most often refers to the near clipping plane and the far clipping plane, two planes perpendicular to the camera’s viewing direction that set the minimum and maximum rendered distance.

Together with the four side planes, the near and far planes form the view frustum, a truncated pyramid under perspective projection or a box under orthographic projection. Their placement decides not only what is visible but also how precisely the renderer can tell which surface is in front, which makes them a quiet but critical camera setting.

How clipping planes work in the rendering pipeline

Clipping happens after the vertex stage, when each vertex has been multiplied by the model, view and projection matrices and sits in clip space. The graphics hardware compares each coordinate with the homogeneous component w: a vertex is inside when its x, y and z values lie between minus w and plus w, or between 0 and w for depth in Direct3D and Vulkan conventions.

A triangle that lies entirely outside a plane is discarded. A triangle that crosses a plane is split into smaller polygons along the boundary, a process classically described by the Sutherland-Hodgman algorithm. Modern GPUs often avoid real clipping on the side planes by using a guard band, but the near plane always requires genuine clipping, because geometry behind the camera would otherwise project incorrectly.

PlaneDefined byMain effect
Near planeNear clip distanceHides geometry too close to the camera
Far planeFar clip distanceHides geometry beyond the draw distance
Left and right planesHorizontal field of view and aspect ratioSet the image width
Top and bottom planesVertical field of viewSet the image height
The six planes of a view frustum

Near and far clipping planes and depth precision

The near and far distances are written into the projection matrix, which maps camera-space depth into the depth range stored in the depth buffer. Under perspective projection this mapping is strongly nonlinear: most of the available precision is concentrated just beyond the near plane, and precision falls roughly with the square of the distance from the camera.

The practical consequence is that the near distance matters far more than the far distance. Halving the near distance roughly halves the precision available throughout the scene, while doubling the far distance has a much smaller effect. Too little precision produces z-fighting, a flickering pattern where two nearly coplanar surfaces alternately win the depth test.

ChangeEffect on precisionVisible side effect
Move near plane closerLarge loss across the sceneZ-fighting on distant surfaces
Move near plane fartherLarge gainNearby objects get cut open
Move far plane fartherSmall lossDistant terrain becomes visible
Move far plane closerSmall gainDistant objects pop out of view
Use reversed depthMuch more even distributionRequires a floating-point depth buffer
How clip settings affect depth behavior

Reversed-Z, which maps the near plane to 1 and the far plane to 0 in a 32-bit floating-point depth buffer, counteracts the nonlinearity because floating-point numbers are denser near zero. Many real-time engines combine it with an infinite far plane, removing the far limit while keeping depth stable.

Typical clip values in common tools

Default clip distances differ between applications and are expressed in scene units, usually meters. They are a starting point, not a recommendation for every scene, and they should be adjusted whenever the scene scale departs strongly from human scale.

ContextNear distanceFar distance
Blender camera0.1 m100 m
Blender viewport0.01 m1,000 m
Unity camera0.3 units1,000 units
Unreal Engine10 cmInfinite with reversed depth
Architectural walkthrough0.05 to 0.2 m500 to 5,000 m
Typical default clip distances

Several neighboring techniques also remove geometry, and they are frequently confused with clipping. Clipping operates on individual primitives at the boundary, whereas frustum culling discards whole objects early on the CPU or GPU by testing their bounding box against the frustum, purely to save work.

TechniqueWhat it removesPurpose
Near and far clippingParts of primitives outside the depth rangeCorrect projection and depth range
Frustum cullingWhole objects outside the frustumPerformance
Back-face cullingFaces whose normal points awayPerformance and correctness
User clip planeGeometry on one side of a custom planeSection views and reflections
Occlusion cullingObjects hidden behind othersPerformance
Clipping planes and related techniques

A user clip plane, also called a section plane, is an arbitrary plane defined by the artist or the program. Modeling and CAD tools use it to cut a building or engine open for inspection, and renderers use it to hide geometry below a water surface when computing planar reflections.

Setting clipping planes correctly

The governing rule is to keep the near plane as far out as the shot allows and the far plane only as distant as the visible content requires. A first-person game camera needs a small near value so that the player’s hands are not cut, while an aerial camera can use a near value of several meters without any visible loss.

  • Match scene scale: a model imported at the wrong unit scale often appears clipped.
  • Check close-ups: geometry cut open near the lens means the near plane is too far.
  • Watch for flicker: z-fighting on distant roofs means the near plane is too close.
  • Separate passes: very large scenes can render near and far content in two depth ranges.

Common mistakes and misconceptions

A widespread misconception is that a huge far distance causes z-fighting; in most cases the real cause is a near distance that is too small. Another mistake is setting the near distance to zero, which makes a standard perspective projection mathematically degenerate and leaves no usable depth precision.

In the viewport, artists often believe a model is broken or missing when it is simply beyond the viewport clip end. Large terrain, city or space scenes regularly require raising the viewport limits separately from the render camera, because the two settings are independent in most 3D applications.

Put simply

A virtual camera does not see forever, and it does not see things right against its lens. It has a closest and a farthest distance. Anything outside that range is simply not drawn. These two limits are the near and far clipping planes.

Think of a stage with a curtain at the front and a wall at the back. Only actors between them are visible. Placing the front curtain too close to the audience makes the whole stage harder to judge. That is why the near setting matters most.

In practice

A visualization artist renders an aerial flyover of a new residential district about 3 km across. With the default camera settings of 0.1 m near and 100 m far, most buildings vanished, so the artist raised the far distance to 5,000 m. Distant roofs then flickered where roof tiles and flashing overlapped, a classic case of z-fighting.

Because the camera never comes closer than 40 m to any surface, the artist raised the near distance from 0.1 m to 10 m. That single change improved depth precision about a hundredfold, and the flicker disappeared completely without touching any geometry. For a later street-level shot, the artist used a separate camera with a 0.05 m near distance and 800 m far distance to keep close details intact.