Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 37 ยท Lighting and Rendering

Blender Camera Settings, Depth of Field and Render Output

Set up a Blender camera: focal length, sensor, depth of field, resolution, frame range and file formats, then render a still or an animation to disk.

A render needs three decisions: what the camera sees (framing and lens), how it looks (depth of field, exposure) and what you save (resolution, format, frame range). All three are set in a few Properties tabs. This lesson covers them in the order you will use them.

Blender cannot run here, so menus are described in words, and the runnable stand-ins calculate field of view, depth of field and file sizes.

Adding and using the camera

New scenes include a camera. Add another with Add > Camera. To see through it, press Numpad 0 (camera view). The easiest way to frame a shot: press Ctrl+Alt+Numpad 0 to snap the active camera to your current viewport view, then fine-tune. In View > Navigation > Camera, Lock Camera to View (in the sidebar N > View tab) lets you orbit and zoom to move the camera directly. Switch it off when finished, or you will drag the camera by accident.

To choose which camera renders, select it and use Scene Properties > Camera, or View > Cameras > Set Active Object as Camera (Ctrl+Numpad 0). Markers can switch cameras during an animation.

Lens and field of view

Select the camera and open the Object Data tab (green camera icon).

  • Focal Length (mm): 24 mm is wide, 50 mm is "normal", 85 to 135 mm is portrait telephoto. Longer lenses compress perspective.
  • Sensor Fit and Size: default 36 mm wide (full frame).
  • Type: Perspective, Orthographic (no perspective, used for technical drawings and isometric art) or Panoramic.
  • Clip Start / End: objects nearer or farther than these are not drawn. If part of a huge scene vanishes, increase Clip End.

The field of view follows from the focal length and sensor width:

fov = 2 * atan(sensor_width / (2 * focal_length))

Python Stand-in: field of view from focal length

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Depth of field

Real lenses blur what is not in focus. In the camera's Depth of Field panel, enable Depth of Field, pick a Focus Object (and optional bone) or set Focus Distance, and set the F-Stop: lower numbers (f/1.4) give a stronger blur, higher numbers (f/16) keep everything sharp. The Aperture blades, Ratio and Rotation shape bokeh (the blurry highlight discs).

The distance that looks sharp is the depth of field. The stand-in uses the common thin-lens formulas.

Python Stand-in: depth of field calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

At f/1.4 only a thin slice is sharp: a good look for portraits. A pitfall: depth of field with a large scene scale or a wrong sensor size changes the result, so check the object's real size (Scene Properties > Units).

Resolution, frame range and format

Open the Output Properties tab (printer icon).

  • Format > Resolution X / Y and Resolution %. 1920 x 1080 at 100 percent is Full HD. Use 50 percent for test renders. Common ratios: 16:9 (video), 1:1 (social), 9:16 (vertical video).
  • Frame Range: Start, End, Step. Frame Rate: 24 (film), 30, 60. The animation length in seconds is frames divided by frame rate.
  • Output > File Format: PNG (lossless, still), JPEG (small, lossy), OpenEXR (float, for compositing), FFmpeg Video (MP4/H.264 and others). For animations render to a PNG sequence first, then encode; if a render crashes at frame 400 you keep frames 1 to 399.
  • Output path: use //render/frame_ and Blender writes frame_0001.png. The // means "next to the .blend file". Use # characters as the frame number padding, for example frame_####.

Press F12 to render a still. Press Ctrl+F12 to render the animation. In the Image Editor use Image > Save As (Shift+Alt+S) to save a still; a render is not saved to disk automatically.

Python Stand-in: video length, frame count and storage

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The 0.45 ratio is a rough guess. The size of a real PNG depends on image detail and noise.

Render regions and passes

  • Render Region (Ctrl+B in camera view) renders just a box, great for checking a small area; Ctrl+Alt+B clears it.
  • Film > Filter Size and Overscan are for fine-tuning anti-aliasing.
  • View Layer Properties > Passes adds extra images (Combined, Depth, Normal, Diffuse, Shadow, Cryptomatte) for compositing in the Compositor workspace. Using OpenEXR Multilayer keeps all passes in one file.

A final checklist before pressing Ctrl+F12

flowchart LR
  A["Camera framed"] --> B["Resolution and %"]
  B --> C["Frame range and fps"]
  C --> D["Output path and format"]
  D --> E["Samples and denoise"]
  E --> F["Test one frame"]
  F --> G["Render animation"]

Run through this list for every animation.

Common mistakes

  • Rendering the wrong frame range because End is still 250.
  • Saving an animation as MP4 on the first attempt and losing it after a crash.
  • Leaving Lock Camera to View on and bumping the camera.
  • Forgetting to set the Output path; the files then go to a temporary folder.
  • Leaving Resolution % at 50 after test renders.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which focal length gives the widest view on a full-frame sensor?

    A shorter focal length means a wider field of view.
  2. 2. Which F-Stop gives the strongest background blur?

    Low f-numbers mean a wide aperture and a shallow depth of field.
  3. 3. Why render an animation to a PNG sequence first?

    Each finished frame is already saved, so you only render the missing ones after a crash.
  4. 4. What does the path //render/frame_#### produce for frame 7?

    // means relative to the .blend file, and #### is replaced by the zero-padded frame number.

Summary

  • Focal length sets the field of view; the F-Stop and focus distance set depth of field.
  • Output Properties hold resolution, frame range, frame rate, format and path.
  • Render sequences of images, then encode video.
  • Test one frame at reduced size before the final render.

Next: Keyframes and the Timeline