ComfyUI Node

Generate AO Map

Generates an Ambient Occlusion map from a height map. GPU-accelerated for fast processing.

By lilquail·Created 8 months ago·Updated 8 months ago· 1
Generate AO Map
  • height_map
  • IMAGE
auto_levelstrue
radius_percent3.0
strength2.5
contrast1.0
bias0.001
num_samples24
blur_radius1.5
CategoryLeputen-Utils/PBR

Inputs (8)

NameTypeDefaultDescription
height_mapIMAGEThe input grayscale height map (white is high, black is low).
auto_levelsBOOLEANtrueAutomatically stretch the height map's contrast to use the full 0-1 range before processing.
radius_percentFLOAT3.00.1–20Sample radius as percentage of image size. Scales automatically with resolution.
strengthFLOAT2.50–10Controls the intensity of the AO effect. Higher values result in darker shadows.
contrastFLOAT1.00.1–4Adjusts the falloff curve. Higher = sharper shadows, Lower = softer gradients.
biasFLOAT0.0010–0.1Helps prevent 'acne' artifacts on flat surfaces. Lower = more detail but more noise.
num_samplesINT244–128Number of samples per pixel. Higher = smoother but slower. 16-32 is usually sufficient.
blur_radiusFLOAT1.50–50Final Gaussian blur to smooth the result. Set to 0 to disable.

Outputs (1)

NameTypeDescription
IMAGEIMAGE