Tangent Divergence Extractor

Normal Map to Cavity & Edge Curvature Map Generator

Turn any tangent-space normal map into a crisp grayscale cavity and curvature mask locally—bright on convex bevels for edge-wear masks, dark in crevices for dirt and patina shaders.

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

Computed tangent-space curvature/cavity mask (strength 1.60x)

Source Input Preview
Processed Output Preview
Generate Full 4-Map PBR Pack

How curvature gray values map to 3D surface geometry

Curvature Gray ValueSurface GeometryShader Mask Use
White (200–255)Sharp convex outer edgePaint chipping, metal edge wear
Mid Gray (128 / 0.5)Flat surface planeNeutral base material
Dark Gray (0–60)Deep concave crevice / grooveDust, rust, grout grime, micro-AO

Computing surface curvature mathematically from tangent normals

By measuring the spatial divergence of the Red (dNx/dx) and Green (dNy/dy) channels across neighboring pixels, a browser shader pass isolates concave grooves and convex ridges directly from your existing normal map without needing the original high-poly 3D mesh.

Matching OpenGL vs DirectX green-channel polarity for accurate convexity

If crevices appear bright white while outer edges look dark, toggle Invert Y (DirectX -Y) to flip vertical derivative polarity so convex edges highlight cleanly.

Frequently asked questions

What is the difference between a Cavity map and an Ambient Occlusion map?

Curvature/cavity highlights sharp local ridges and micro-grooves centered at 50% gray, whereas Ambient Occlusion shadows broader recessed areas from white down to black.

Why do my edges look inverted (dark edges, bright cracks)?

Your input normal map likely uses DirectX (-Y) green channel polarity. Toggle Invert Y to flip convexity and concavity immediately.

Can I use this curvature PNG as an edge-wear mask in Blender or Substance?

Yes. Feed it through a ColorRamp or Levels node to isolate pure convex highlights (>0.55) for metallic edge wear.

Does Normal Map Studio also generate Ambient Occlusion maps from photos?

Yes—open our Ambient Occlusion Map Generator or full PBR Texture Generator for 4-map local packs.

More free local PBR & normal map tools