Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image realism with depth and shadow details through simulated light interactions in a 3D environment.
Image SSAO (Screen Space Ambient Occlusion) is a node designed to enhance the realism of your images by simulating the way light interacts with surfaces in a 3D environment. This technique adds depth and shadow details to your images, making them appear more lifelike. By using depth information and applying occlusion effects, the node creates subtle shadows in crevices and areas where light would naturally be obstructed. This results in a more dynamic and visually appealing image, especially useful in AI-generated art where depth and realism are crucial. The node also offers options for specular masking, which helps in managing reflections and highlights, further enhancing the overall quality of the image.
This parameter accepts a list of images that you want to process for ambient occlusion. Each image should be in a tensor format. The quality and resolution of these images will directly impact the final output.
This parameter takes a list of depth images corresponding to the input images. Depth images provide the necessary depth information required to calculate occlusion. Ensure that the depth images align correctly with the input images for accurate results.
This parameter controls the intensity of the ambient occlusion effect. A higher value will result in more pronounced shadows and depth, while a lower value will produce a subtler effect. The default value is 1.0, with a typical range from 0.0 to 2.0.
This parameter defines the radius within which the occlusion effect is calculated. A larger radius will consider a broader area for occlusion, resulting in softer shadows, while a smaller radius will produce sharper shadows. The default value is 30, with a typical range from 1 to 100.
This parameter applies a Gaussian blur to the occlusion effect, helping to smooth out the shadows and make them appear more natural. The default value is 5, with a typical range from 0 to 10.
This parameter sets the threshold for specular highlights. Pixels with intensity above this threshold will be considered as specular highlights and can be masked if specular masking is enabled. The default value is 200, with a typical range from 0 to 255.
This boolean parameter enables or disables specular masking. When enabled, it helps in managing reflections and highlights by masking out specular areas. The default value is False.
This parameter determines the size of the tiles used for processing. A smaller tile size will result in higher quality but may take longer to process. The default value is 1, with a typical range from 1 to 10.
This output provides the final composited image with the ambient occlusion effect applied. It combines the original image with the calculated occlusion to produce a more realistic and depth-enhanced result.
This output provides the occlusion map, which is a grayscale image representing the areas of occlusion. This map can be used for further processing or as a mask in other image editing tasks.
This output provides the specular mask, which highlights the specular areas in the image. This mask is useful for managing reflections and highlights, especially when specular masking is enabled.
© Copyright 2024 RunComfy. All Rights Reserved.