Procedural edge wear and cavity masks in Blender

Why bevels collect shine, dirt pools in grooves, and how the Smart Masking panel turns both observations into reusable masks, without painting a single stroke.

The physics of wear

Hard-surface objects wear in predictable places. Sharp convex edges catch handling, contact and scratching first, they expose bare material. Concave grooves collect dirt, dust and grease, that is cavity. Wear is curvature: convex high-curvature areas degrade; concave low-curvature areas accumulate. If your mask knows the curvature, it knows the wear.

Edge detection vs cavity

Edge wear: reads the angle between adjacent faces. Faces at a sharp enough angle (your Angle threshold) become the mask. Rust and chipped paint on box edges, panel lines, weapon muzzles.
Cavity: reads concave detail. Grease, dust and grime in engravings, seams and around rivets.
Ambient occlusion: reads contact darkness across the whole surface. Grounding, contact grime where objects meet, the "this object lives somewhere dirty" look.

The Smart Masking panel

CraftMat's Smart Masking lives in the panel's MASK view (VISIBLE PROPERTIES → MASK). The essentials:

Edge Detection settings

Cavity settings

A workflow that does not fight you

  1. Bevel first, wear second. Edge detection keys off face angles. A zero-bevel mesh gives the detector nothing to find, bevel your geometry before you enable masking.
  2. Stack, don't bake-in. Keep wear as its own layer above the base material. Opacity, blend modes and masks stay editable forever, that is the entire promise of layers.
  3. Layer the masks. Edge wear on top, cavity below. Rust creeps through chipped paint on edges; dirt pools in grooves beneath. Hierarchical nesting does exactly this.
  4. Noise per layer. A built-in Perlin layer beneath the edge masks breaks the "procedural regularity" that makes CG wear read as CG.

When procedural loses

Treat procedural masks as the first 80 percent, then hand-paint the last 20 over the top. Hero assets always want a hand pass afterwards: soften a mask here, paint a chip there, break the symmetry on the front face. CraftMat keeps everything paintable. The procedural stack is an underpaint; the last 20 percent is always hand work.

Watch it happen. The edge-wear masking demo (3aOUch-vVaY) and the layer stack workflow (6Z0auijrIKY) show these masks live in the viewport.

Watch the demos