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
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:
- Enable Masking, the master switch. Everything else is disabled until this is on.
- Intensity / Power, how strong the mask reads: Intensity is the master strength, Power remaps the falloff (higher power = tighter mask).
- Invert Mask, the one-click inversion. The flip puts the wear on the unmasked faces.
- Mask Type, picks the generator: image mask, luminance, Edge Detection, Cavity. Each type reveals its own settings.
Edge Detection settings
- Angle, the corner angle above which a face counts as an edge. Default ~0.08; raise it to catch only very sharp corners, lower it for soft bevels.
- Scale / Responsiveness, how wide and how fast the wear spreads from the edge.
- Edge Contrast Curve, remaps the mask value after detection. The linear default is fine; pull the curve hard for a razor-sharp edge line or soften it for a hand-worn gradient.
- Damage settings. Edge Threshold, Wear Amount, Edge Size, Smoothing and Random Seed. Seed is the variety lever: same settings, different seed, different wear pattern, still procedural, still non-destructive.
Cavity settings
- Cavity Distance / Contrast, how far out from grooves the mask reaches, and how strong the falloff is. Small distance + high contrast = pin-stripe dirt in panel lines; large distance = broad grime.
- Cavity Curve, the falloff shape. Shallow S-curves give the "grime accumulates in the bottom third of the groove" look.
A workflow that does not fight you
- 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.
- 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.
- 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.
- 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