ComfyUI > Nodes > radiance > ◎ Radiance Depth of Field

ComfyUI Node: ◎ Radiance Depth of Field

Class Name

RadianceDepthOfField

Category
FXTD Studios/Radiance/Filter
Author
fxtdstudios (Account age: 0days)
Extension
radiance
Latest Updated
2026-03-20
Github Stars
0.18K

How to Install radiance

Install this extension via the ComfyUI Manager by searching for radiance
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter radiance in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

◎ Radiance Depth of Field Description

Simulates depth of field in images using depth maps for realistic focus and blur effects.

◎ Radiance Depth of Field:

The RadianceDepthOfField node is designed to simulate the depth of field effect in digital images, which is a crucial aspect of creating realistic and visually appealing renders. This effect mimics the way cameras focus on a subject while blurring the background and foreground, enhancing the depth perception in an image. The node achieves this by utilizing depth maps to determine the focus distance and range, allowing for precise control over which parts of the image remain sharp and which are blurred. This capability is particularly beneficial for artists aiming to add a professional touch to their digital artwork, as it helps in directing the viewer's attention to specific areas of the image while maintaining a natural and aesthetically pleasing composition.

◎ Radiance Depth of Field Input Parameters:

image

The image parameter represents the input image that you want to apply the depth of field effect to. It is crucial as it serves as the base upon which the depth of field calculations are performed. The image should be in a format compatible with the node's processing capabilities, typically a tensor format that allows for efficient manipulation and transformation.

depth_map

The depth_map parameter is an optional input that provides a precomputed depth map for the image. This map indicates the relative distance of each pixel from the camera, with closer objects typically represented by lighter shades and farther objects by darker shades. If a depth map is provided, the node uses it to calculate the blur effect more accurately. If not provided, the node can generate a radial depth map centered on the image, which is less precise but still effective for certain artistic purposes.

focus_distance

The focus_distance parameter determines the distance from the camera at which the image will be in sharp focus. Pixels at this distance will remain clear, while those further away will become progressively blurred. Adjusting this parameter allows you to control which part of the image is the focal point, thereby influencing the overall composition and visual impact.

focus_range

The focus_range parameter defines the range around the focus distance within which the image remains sharp. A larger focus range results in more of the image being in focus, while a smaller range creates a more pronounced depth of field effect with a sharper transition between focused and blurred areas. This parameter is essential for fine-tuning the depth of field effect to achieve the desired artistic outcome.

◎ Radiance Depth of Field Output Parameters:

blurred_image

The blurred_image output is the final image with the depth of field effect applied. It combines the original image with the calculated blur based on the depth map and focus parameters, resulting in a visually enhanced image that emphasizes the focal point while adding depth and realism to the composition.

◎ Radiance Depth of Field Usage Tips:

  • To achieve a realistic depth of field effect, ensure that the depth map accurately represents the scene's depth information. This can be done by using high-quality depth estimation models or manually refining the depth map.
  • Experiment with different focus distances and ranges to find the optimal settings for your specific image. This can significantly impact the visual appeal and effectiveness of the depth of field effect.

◎ Radiance Depth of Field Common Errors and Solutions:

Depth map dimensions mismatch

  • Explanation: This error occurs when the dimensions of the provided depth map do not match the dimensions of the input image.
  • Solution: Ensure that the depth map is resized to match the input image dimensions before feeding it into the node.

Invalid focus distance or range

  • Explanation: This error arises when the focus distance or range values are set outside the acceptable limits, leading to incorrect or no blur effect.
  • Solution: Verify that the focus distance and range are set within the valid range, typically between 0 and 1, and adjust them accordingly to achieve the desired effect.

◎ Radiance Depth of Field Related Nodes

Go back to the extension to check out more related nodes.
radiance
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

◎ Radiance Depth of Field