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.
| Plane | Defined by | Main effect |
|---|---|---|
| Near plane | Near clip distance | Hides geometry too close to the camera |
| Far plane | Far clip distance | Hides geometry beyond the draw distance |
| Left and right planes | Horizontal field of view and aspect ratio | Set the image width |
| Top and bottom planes | Vertical field of view | Set the image height |
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.
| Change | Effect on precision | Visible side effect |
|---|---|---|
| Move near plane closer | Large loss across the scene | Z-fighting on distant surfaces |
| Move near plane farther | Large gain | Nearby objects get cut open |
| Move far plane farther | Small loss | Distant terrain becomes visible |
| Move far plane closer | Small gain | Distant objects pop out of view |
| Use reversed depth | Much more even distribution | Requires a floating-point depth buffer |
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.
| Context | Near distance | Far distance |
|---|---|---|
| Blender camera | 0.1 m | 100 m |
| Blender viewport | 0.01 m | 1,000 m |
| Unity camera | 0.3 units | 1,000 units |
| Unreal Engine | 10 cm | Infinite with reversed depth |
| Architectural walkthrough | 0.05 to 0.2 m | 500 to 5,000 m |
Clipping planes compared with related concepts
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.
| Technique | What it removes | Purpose |
|---|---|---|
| Near and far clipping | Parts of primitives outside the depth range | Correct projection and depth range |
| Frustum culling | Whole objects outside the frustum | Performance |
| Back-face culling | Faces whose normal points away | Performance and correctness |
| User clip plane | Geometry on one side of a custom plane | Section views and reflections |
| Occlusion culling | Objects hidden behind others | Performance |
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.