Nodes/ComfyUI_KubaNodes/kubakub relief field (from depth)
ComfyUI Node

kubakub relief field (from depth)

Turns a depth map into a physical relief panel in millimetres, the start of every relief chain. Set the real panel width and the deepest relief; the other relief nodes then shape, check, weigh and export it.

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub relief field (from depth)
  • depth
  • field
  • preview
  • height
◄panel_width_mm2400►
◄max_relief_mm120►
◄panel_bottom_mm300►
◄invertfalse►
◄gamma1.00►
◄flatten_percentile0.5►
Categorykubakub/3d/fabricate/relief

Inputs (7)

NameTypeDefaultDescription
depthIMAGEDepth map of the relief (bright = sticks out, unless invert is on). Only the first image of a batch is used.
panel_width_mmFLOAT2400100–20000Real width of the panel in mm. The depth map is stretched to it; the panel height follows from the image aspect.
max_relief_mmFLOAT1201–1000How far the brightest point sticks out from the back, in mm.
panel_bottom_mmFLOAT3000–10000Height of the panel's lower edge above the ground, in mm. The safety check uses it to know what a person can reach.
invertBOOLEANfalseTurn the depth around: on when your depth map has near = dark.
gammaFLOAT1.000.1–4Shapes the depth curve: below 1 lifts the mid tones (more shallow detail), above 1 pushes them back. 1 = linear.
flatten_percentileFLOAT0.50–10Percent of the darkest and brightest pixels clipped before scaling, so single stray pixels from a depth model do not set the range. 0 = no clipping.

Outputs (3)

NameTypeDescription
fieldRELIEFFORGE_FIELDThe relief as heights in mm with its real size, for the other relief nodes.
previewIMAGEGrey preview of the relief (white = sticks out furthest).
heightMASKThe relief as a mask: 0 = the lowest, 1 = the highest point (the same picture as preview), to use as a depth or displacement map. Here 0 = the back and 1 = max_relief_mm.