Sub topic 2
Check the active camera and the scene before rendering
A render that finishes without errors can still produce a black frame, a cropped image, or a shot from the wrong angle. Most of these failures come from scene state, not from render settings. This chapter covers the checks to make before you press Render.
This chapter assumes you can navigate the 3D Viewport, Properties editor, Outliner, and Timeline. It also assumes your scene has at least one object, one light, and one camera. The scripting section assumes basic Python.
What Blender renders
Blender renders one scene, through one camera, using one view layer set. Each of those has a specific setting that decides what is used:
- The scene is the one currently selected in the scene selector at the top of the window. Other scenes in the same file are not rendered.
- The camera is the object in the Camera field of the Scene properties tab. This is the active camera. Having a camera object in the scene is not enough.
- The view layers are those with Use for Rendering enabled.
- Objects and collections are included only if they are enabled for rendering. This is a different setting from being visible in the viewport.
The active camera
Open the Scene properties tab. The Camera field shows which object renders. If it is empty, Blender has no camera to use. When you render, it reports an error that no camera was found in the scene and produces nothing.
There are three common ways to set the active camera:
- In the Scene properties, pick the camera object in the Camera field.
- Select the camera object, then choose View > Cameras > Set Active Object as Camera in the 3D Viewport. The shortcut is Ctrl+Numpad 0. This also switches the viewport to look through that camera.
- In a script, assign
scene.camera = camera_object.
When a scene has several cameras, only the active one renders. The active camera is drawn with a filled triangle on top of its frame in the viewport. Press Numpad 0 to look through it. If the view is not what you expect, the active camera is probably not the one you have been adjusting.
Cameras that switch during an animation
The active camera can change over time. In the Timeline, you can add a marker at a frame, select the camera you want from that frame on, and use Marker > Bind Camera to Markers (Ctrl+B). Blender then switches scene.camera at each bound marker while the animation plays or renders.
This causes a common surprise. If your scene has bound markers, setting the Camera field by hand has no lasting effect. The marker overrides it as soon as the frame changes. If a render shows the wrong camera for part of the animation, check the markers first.
Framing and clipping
Look through the camera with Numpad 0 and check the following:
- Framing. Your subject should sit inside the solid camera border. Enable Viewport Overlays > Guides > Safe Areas or Composition guides in the camera properties if you want help.
- Clip Start and Clip End. These are in the camera's Lens settings. Geometry closer than Clip Start or farther than Clip End is not rendered. A large scene with the default Clip End can lose distant objects. A tiny model with a large Clip Start can disappear entirely.
- Focal length and sensor. These control the field of view. A very short focal length gives heavy perspective distortion. A very long one can make the subject fill or miss the frame.
- Depth of field. If it is enabled with a focus object or distance that is wrong, the subject will be blurred. The viewport does not always show this clearly.
Render visibility versus viewport visibility
Blender keeps separate switches for the viewport and for the render. An object can show in the viewport and be missing from the render, or the reverse.
| Switch | Where | Affects |
|---|---|---|
| Eye icon | Outliner | Viewport only (per view layer) |
| Monitor icon | Outliner filter, Object properties > Visibility | Viewport only |
| Camera icon | Outliner filter, Object properties > Visibility | Rendering |
| Exclude checkbox | Outliner, collection | Removes the collection from the view layer, so viewport and render both lose it |
| Use for Rendering | View Layer properties | Whether that view layer renders |
If the Camera icon column is not visible in the Outliner, open the Outliner's Filter popover and enable the Camera (Disable in Renders) toggle. Without it, you cannot see the render state of objects at a glance.
Lights and world
A scene with no lights, and a world with no color, renders black in Cycles and in EEVEE. An empty world or a dark one gives a black or very dark background, which can look like "nothing rendered". Confirm that at least one light is enabled for rendering. Then check World properties > Surface for a background color and strength, unless a black background is what you want.
Render region and other cropping
Two settings can crop a render silently:
- Render Region in Output properties > Dimensions. When enabled, only the box you drew with Ctrl+B in the camera view is rendered. By default the rest of the frame stays as empty space at full resolution. With Crop to Render Region also on, the output is cut to the box.
- Resolution Percentage set below 100 percent gives a smaller image than expected. This is covered in a later chapter.
If a render has an unexpected rectangle of content, check Render Region first.
Checking the scene with a script
A short script can run the same checks on every file. It is useful before batch renders from the command line, because nobody is watching the result. This script reports problems for the current scene. It does not change anything.
import bpy
from bpy_extras.object_utils import world_to_camera_view
def check_scene(scene):
problems = []
cam = scene.camera
if cam is None or cam.type != 'CAMERA':
problems.append("No active camera")
return problems
bound = [m for m in scene.timeline_markers if m.camera]
if bound:
problems.append(
f"{len(bound)} marker(s) bind cameras and will override scene.camera"
)
if scene.render.use_border:
problems.append("Render Region is enabled")
if not any(vl.use for vl in scene.view_layers):
problems.append("No view layer is enabled for rendering")
lights = [
o for o in scene.objects
if o.type == 'LIGHT' and not o.hide_render
]
if not lights and scene.world is None:
problems.append("No lights and no world: the render will be black")
clip_start = cam.data.clip_start
clip_end = cam.data.clip_end
in_view = 0
for obj in scene.objects:
if obj.type != 'MESH' or obj.hide_render:
continue
co = world_to_camera_view(scene, cam, obj.matrix_world.translation)
if 0.0 <= co.x <= 1.0 and 0.0 <= co.y <= 1.0 and clip_start <= co.z <= clip_end:
in_view += 1
if in_view == 0:
problems.append("No renderable mesh origin lies inside the camera view")
return problems
issues = check_scene(bpy.context.scene)
print("Scene check:", "OK" if not issues else "")
for issue in issues:
print(" -", issue)world_to_camera_view returns normalized coordinates. X and Y between 0 and 1 are inside the frame. Z is the distance in front of the camera. The check uses object origins, so a large object whose origin is off-screen can be flagged even though part of it is visible. Treat the result as a warning, not proof.
You can paste the script into the Scripting workspace's text editor and run it. The output goes to the system console.
Common mistakes
- Rendering the wrong scene. The scene selector shows the active scene. Confirm its name before rendering.
- Moving a camera that is not active. The viewport shows no obvious difference between two cameras until you look through each one.
- Assuming the eye icon controls rendering. It does not. The camera icon does.
- Forgetting that markers override the Camera field. Delete or edit the marker to change the camera.
- Leaving Render Region on from an earlier test. Press Ctrl+Alt+B in the camera view to clear the region, or turn off Render Region in Output properties.
Exercise
A scene contains two cameras, "CamA" and "CamB". You set CamB as the active camera in the Scene properties and press Render, but the output still comes from CamA after frame 40. Which scene feature most likely causes this, and how do you fix it?
Show answer
A timeline marker at frame 40 has CamA bound to it (Bind Camera to Markers). The marker changes scene.camera when playback reaches that frame, so it overrides the Camera field. Fix it by removing or moving that marker, or by rebinding it to CamB.
Exercise
An object is visible in the 3D Viewport but does not appear in the final render. Name two settings that could cause it and where you find each one.
Show answer
The object's Camera (Disable in Renders) toggle may be off, found in the Outliner filter column or in Object properties > Visibility. Alternatively, its collection may have Disable in Renders enabled, or it may belong to a collection excluded from the view layer.