SmartTools
Project library

Control guide · SmartTools Composite

Blur Based on Depth (Z-Depth Bokeh Blur)

The "Z-Depth Bokeh Blur" preset adds a group of nodes that uses the camera's focus distance as the reference and blurs areas away from it. This example places the Suzanne in front about 23m from the camera and the large blue Suzanne in the back about 80m away.

Starting scene demonstrated on a Suzanne in front and a blue Suzanne in the back

Steps

  1. Set the camera's "Focus Distance" under "Depth of Field" to the distance to the object you want in focus (about 23m here).
  2. Open the "Compositing" workspace at the top of the screen to show the Compositor.
  3. Select the "Smart Composite" tab in the Sidebar (N key).
  4. Open the "Effects / Presets" section header.
  5. In the "Preset to Add" list, choose "Z-Depth Bokeh Blur", then click "Apply Selected Effect".
  6. Render again (F12) and check the result.
  7. For more blur, lower the F-stop of the "SCS Aperture Defocus" node inside the Frame and render again.

Follow the changes on screen