Sub topic 8
Clip Start and Clip End
This chapter assumes you can add a camera and look through it, and that you know the camera's focal length and sensor settings. You should also be comfortable with the Properties editor. The Python examples are optional but runnable in Blender's Scripting workspace.
What clipping does
A camera does not see everything in front of it. Two settings define a depth range:
- Clip Start is the nearest distance at which the camera sees geometry.
- Clip End is the farthest distance at which the camera sees geometry.
Anything nearer than Clip Start or farther than Clip End is cut away. It is not drawn in the camera view, and it does not appear in a render. Both values are properties of the camera data, next to focal length and sensor size. They appear in the Properties editor under the Object Data tab (the green camera icon), in the Lens panel.
The values are in scene units. If you use metric units with a unit scale other than 1.0, the field shows the converted value, so a number you type may not equal the raw internal value.
How distance is measured
Clipping uses depth along the camera's viewing direction. It does not use straight-line distance from the camera. The two clip limits are flat planes perpendicular to the view axis, not spherical shells. A point at the edge of the frame can be farther from the camera in a straight line than a point at the centre, yet both count as the same depth if they sit on the same plane.
For a camera, the viewing direction is its local -Z axis. A point's depth is the negative of its local Z coordinate in camera space.
Setting the values
Here is a script that creates a camera, sets its clip range, and prints the result. It does not assume the defaults.
import bpy
scene = bpy.context.scene
cam_data = bpy.data.cameras.new("ClipCamera")
cam_obj = bpy.data.objects.new("ClipCamera", cam_data)
scene.collection.objects.link(cam_obj)
cam_obj.location = (0.0, -10.0, 2.0)
cam_obj.rotation_euler = (1.5708, 0.0, 0.0)
cam_data.clip_start = 0.5 # scene units
cam_data.clip_end = 50.0
print(f"Visible depth range: {cam_data.clip_start} to {cam_data.clip_end}")Both properties live on cam_data, not on cam_obj. This matches the object and data split you saw in the first chapter. Two camera objects that share one camera data block always share the same clipping.
Checking whether an object is in range
When something vanishes from the render, you can compute its depth instead of guessing. The script below reports the depth of every mesh object in the scene along the active camera's view axis.
import bpy
scene = bpy.context.scene
cam_obj = scene.camera
cam_data = cam_obj.data
to_camera_space = cam_obj.matrix_world.inverted()
for obj in scene.objects:
if obj.type != 'MESH':
continue
local = to_camera_space @ obj.matrix_world.translation
depth = -local.z # the camera looks down its local -Z axis
if depth < cam_data.clip_start:
status = "too near (or behind the camera)"
elif depth > cam_data.clip_end:
status = "too far"
else:
status = "inside the range"
print(f"{obj.name}: depth {depth:.2f} -> {status}")This tests only an object's origin. A large object can have its origin outside the range while part of its surface is inside, and that part is still drawn. Treat the result as a first check, not a final verdict.
Seeing the planes in the viewport
You do not need a script to see the limits. Select the camera, open the Object Data tab, and expand Viewport Display. Turn on Limits. Blender draws a line along the camera's view axis, with markers where Clip Start and Clip End fall. If the line stops before your subject, the subject will be cut.
In Python, the same switch is cam_data.show_limits = True.
Clip Start: when you want it larger or smaller
The default Clip Start is small, so ordinary scenes work without changes. You change it for these reasons.
- Cutting into geometry on purpose. Moving Clip Start forward slices off whatever is closest to the lens. This gives a cheap cutaway or section view of a building, a car, or a character. You do not need to edit the mesh.
- Placing the camera inside a room. If a wall or ceiling sits between the camera and the subject, a larger Clip Start can remove it from view. Moving the camera or hiding the object is usually cleaner, but clipping is quick.
- Fixing near-plane glitches. A very small value on a close object can produce visible artifacts in the viewport. See the precision section below.
Set Clip Start too high and the foreground disappears with no warning. If an object fades into a hard-edged slice as you dolly toward it, suspect Clip Start first.
Clip End: when you want it larger
The usual problem is a Clip End that is too short for the scene. Large landscapes, a distant mountain range, or a sky dome built from geometry can lie past 100 units. They get cut at a flat plane, which looks like a hard edge or a sudden void in the background.
Raise Clip End until the farthest object you care about is inside the range. A very large number is not free, as the next section explains.
Depth precision and the clip ratio
The viewport and real-time render engines store depth in a buffer with limited precision. That precision is spread unevenly across the range. Most of it goes to the area near the camera, and little is left for the far distance. The key number is the ratio of Clip End to Clip Start, not either value alone.
import bpy
cam_data = bpy.data.objects["ClipCamera"].data
ratio = cam_data.clip_end / cam_data.clip_start
print(f"Clip ratio: {ratio:,.0f}")Moving from a start of 0.1 and an end of 100 to a start of 0.001 and an end of 10000 raises the ratio from 1,000 to 10,000,000. At a very high ratio, surfaces that sit close together at a distance can flicker or interleave. This is called z-fighting: two surfaces compete for the same depth value, and the winner changes from pixel to pixel.
The practical rules are:
- Keep Clip Start as large as the shot allows.
- Keep Clip End only as large as the farthest visible object requires.
- Do not set Clip Start to a tiny number "just in case" while also setting a huge Clip End.
Camera clipping and viewport clipping are different
The camera's clipping controls what the camera sees. The 3D viewport has its own, separate clip range. Open the N sidebar, go to the View tab, and look under View for Clip Start and Clip End. These affect only your navigation view, not the render.
This causes a common confusion. If your viewport view loses geometry as you zoom close, change the viewport clip values. If your render or camera view is missing geometry, change the camera's values. Changing the wrong one has no effect, so check which view is affected before you adjust anything.
Orthographic cameras
Clipping also applies to orthographic cameras. There, depth is measured the same way, along the view axis, but there is no perspective to make distant objects small. A common mistake is to place an orthographic camera inside or beyond the scene and see an empty frame, because the scene lies outside the clip range. The fix is the same: check depth against Clip Start and Clip End. The default numbers are often fine for perspective shots but too short for an orthographic camera placed far from a large scene.
Diagnosing missing geometry
| Symptom | Likely cause | Fix |
|---|---|---|
| Foreground object is sliced flat as the camera approaches | Object is nearer than Clip Start | Lower Clip Start or move the camera back |
| Distant scenery ends in a hard edge or empty void | Object is farther than Clip End | Raise Clip End |
| Whole scene is blank in camera view | Camera is far from the scene, or inside the clip gap | Check depth with the script above; enable Limits |
| Surfaces flicker where they nearly overlap | Clip ratio too large (z-fighting) | Raise Clip Start, lower Clip End |
| Geometry vanishes only while navigating | Viewport clip range, not the camera | Adjust Clip in the N sidebar View tab |
Edge cases
- Origin versus surface. Clipping acts on surfaces, not object origins. An object whose origin is out of range can still show a partial slice.
- Shared camera data. If several camera objects use one data block, changing clipping on one changes all of them. Make a single-user copy first if you need different values.
- Animation. Clip Start and Clip End can be keyframed like other camera properties. An animated Clip Start makes a moving cutaway.
- Lighting side effects. In some render engines, geometry that is clipped from the camera view can still influence shadows or reflections. Test this in your Blender version before relying on clipping to hide an object from the scene's lighting. If you need an object gone, hide it in the render instead.
Exercises
Exercise
A camera has Clip Start 1.0 and Clip End 30.0. A cube sits 0.6 units in front of the camera, and a tower sits 45 units in front of it. Which objects appear, and what two changes would make both appear?
Show answer
Neither appears. The cube is nearer than Clip Start and the tower is farther than Clip End. Lower Clip Start to 0.5 or less, and raise Clip End to at least 45 (more if the tower's far side matters).
Exercise
Your viewport shows a distant building, but the rendered image has a flat black gap where the building should be. Which clip setting do you change, and where?
Show answer
Change the camera's Clip End in the Object Data tab, in the Lens panel. The viewport has its own clip range in the N sidebar View tab, which does not affect the render. The viewport shows the building because its range is larger than the camera's.
Exercise
Why does a camera with Clip Start 0.001 and Clip End 10000 risk flickering surfaces, and how would you reduce the risk?
Show answer
The ratio of end to start is 10,000,000, which spreads limited depth precision too thin, so nearby surfaces at distance fight for the same depth value (z-fighting). Raise Clip Start and lower Clip End to the smallest range that still contains the shot.