Local Height Curvature Extractor

Height Map to Cavity & Micro-Crevice Map Generator

Convert any grayscale height, bump, or displacement map into a neutral-gray centered cavity mask locally—darkening recessed mortar lines and cracks while highlighting raised ridges for PBR shading.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output

Height cavity mask (radius 2 px, strength 2.2x) · Mean Byte 128/255 · Contrast Spread 183

Input Preview
Processed Output
Open Full 4-Map PBR Studio

Cavity sample radius and strength recommendations

Kernel RadiusFeature ScaleIdeal Material Use
1 px (3×3)Crisp micro-scratches & fine poresBrushed metal, skin pores, fine weave
2–3 pxBrick mortar, wood grain, tile groutArchitectural masonry, carved stone
4–5 pxBroad bevels & sculpted foldsTerrain crevices, stylized rock cracks

How local height Laplacian contrast isolates fine cavities

By comparing each height pixel against the wrapped mean elevation of its immediate neighborhood, recessed grooves yield negative deltas (dark gray) while protruding ridges yield positive deltas (bright gray) around a clean 0.50 midpoint.

Multiply the dark side over Albedo or Specular to ground small geometric details that standard screen-space ambient occlusion misses.

Seamless tile wrapping built into every kernel pass

Because neighborhood sampling wraps modulo width and height, tiling height maps produce 100% seamless cavity maps with zero dark borders along UV edges.

Frequently asked questions

How is a Height-to-Cavity map different from Ambient Occlusion?

Cavity isolates tight local surface crevices and raised ridges around 50% gray, while Ambient Occlusion casts broader soft shadows into deeper pockets.

When should I enable Invert Output Values on a cavity map?

Enable Invert if your source height map uses dark pixels for raised peaks instead of bright pixels, or when you want bright cracks as a dust/dirt mask.

Should cavity maps be imported as Linear or sRGB?

Import cavity masks as Linear / Non-Color when driving shader math or roughness masks so the 0.50 neutral midpoint stays exact.

Does this generator upload my height maps?

Never. All pixel math runs 100% locally inside HTML5 Canvas memory.

More free local PBR & normal map tools