MATERIAL WORKFLOW / NORMAL MAPS

Reduce noisy photo-derived normal maps without erasing every detail

Technical review: · Page structure updated: .

Keep Strength fixed while you compare Smoothing, then lower Strength if the whole relief is too strong. Smoothing averages the estimated height before normals are calculated; Strength scales the slopes of that height. Neither setting knows which marks in a photograph are real surface relief.

Start with Strength 4 and compare Smoothing 1 px against 4 px in the Normal Map Generator. Those are comparison settings from the test below, not a best preset for every material. Inspect the same region at the same scale. Keep the smaller radius if the larger one removes grain or pores you need.

Decide what you are calling noise

A fine mark can be useful wood grain, a pit in brick, a paint variation, a shadow or an image artifact. This tool cannot tell them apart: it estimates height from decoded RGB brightness. A busy normal map alone does not prove that the source is noisy.

Check the source beside the normal output. Decide which visible structures should become relief in your material, and which should remain color. If you do not know the surface, treat that distinction as a hypothesis. A lower variation number is not proof of better geometry.

Wood reference input: the original photograph decoded to lossless PNG
Wood reference input: the original photograph decoded to lossless PNG. Full frame; display copy scaled to fit.

The wood and brick images are existing 1024 × 1024 CC0 texture assets from Poly Haven wood_floor_deck and brick_wall_001, under the CC0 license. They are prepared texture photographs, not measurements of physical height. No crop or resize was applied to the inputs or exported PNGs.

What Strength and Smoothing actually change

The height proxy is (0.2126 R + 0.7152 G + 0.0722 B) / 255, using the decoded 8-bit RGB channels. This is the current tool's calculation, not a claim of physical luminance or recovered depth.

Smoothing uses an alpha-weighted, separable box average on that height. Radius 0 skips it; radius 1 uses a 3 × 3 neighborhood; radius 4 uses 9 × 9. It happens before the central-difference slopes are calculated. The PNG resolution stays unchanged, but small height features can still lose contrast. Keeping the original pixel dimensions does not mean preserving every detail.

Strength multiplies both slopes before the vector is normalized: n = normalize(−Strength × dx, +Strength × dy, 1). Lowering it reduces intended relief as well as unwanted variation. It is not selective denoising and it does not specify millimeters of depth.

A reproducible wood and brick comparison

We exported the same sources through the existing browser tool on 2026-11-11. The grid used Strength 2, 4 and 8, each with Smoothing 0, 1 and 4 px. OpenGL was selected and Tileable Sampling was off for every export. Dimensions and alpha were retained. The study uses an interior region so changing boundary sampling is not part of this comparison.

For each source we also made a paired, deliberately perturbed input. A seeded generator adds one integer from −6 to +6 to all three color channels at each pixel, then clamps to the 0–255 range. The unperturbed image is the reference for that pair, not a noise-free photograph. The added disturbance is known; the amount of real camera noise in either original is unknown. Clamping affected 80,386 wood RGB channel samples and 68 brick channel samples out of 3,145,728 per photo; the control below had no clipped channels. The perturbation is deliberately specified, not assumed to be an exact camera-noise model.

Every saved browser PNG was compared, channel by channel, with the unchanged Normal Map Worker. The experiment record contains source/output SHA-256, seeds, clipping counts, parameters and full-precision measurements. The CSV lists all 46 exports, including the control described below. Linked PNGs are lossless measurement files; page illustrations are smaller WebP display copies.

SourceStrengthSmoothing (px)Reference adjacent RMS (°)Added-noise RMS (°)
wood204.1231.678
wood211.3670.523
wood240.4150.212
wood408.0983.294
wood412.6790.943
wood440.7300.298
wood8015.3976.351
wood815.2201.812
wood841.3890.435
brick204.3511.679
brick211.5360.525
brick240.4150.213
brick408.3913.293
brick413.0010.946
brick440.7270.299
brick8015.3066.367
brick815.7391.812
brick841.3800.436

Adjacent RMS measures angular variation between neighboring normals in the unperturbed reference. Added-noise RMS measures the angular difference between the reference and its perturbed partner at identical settings. These are different questions. Neither column classifies individual photo features as noise.

At Strength 4, the wood pair's added-noise RMS is 3.294° with radius 0 and 0.298° with radius 4. The paired test demonstrates less sensitivity to this specific disturbance. It does not establish that all of the removed variation was unwanted in the original material.

Perturbed wood: actual Strength 4, Smoothing 0 export
Perturbed wood: actual Strength 4, Smoothing 0 export. Full frame; display copy scaled to fit.
The same perturbed wood: actual Strength 4, Smoothing 4 export
The same perturbed wood: actual Strength 4, Smoothing 4 export. Full frame; display copy scaled to fit.

The brick comparison below uses the unperturbed reference. Look for changes in mortar edges and small pits rather than judging the amount of blue in the image. These are normal-vector PNGs, not shaded 3D renders. No claim about their appearance under a particular renderer or light was tested here.

Brick reference input, unchanged full frame
Brick reference input, unchanged full frame. Full frame; display copy scaled to fit.
Brick reference: actual Strength 4, Smoothing 1 export
Brick reference: actual Strength 4, Smoothing 1 export. Full frame; display copy scaled to fit.
The same brick reference: actual Strength 4, Smoothing 4 export
The same brick reference: actual Strength 4, Smoothing 4 export. Full frame; display copy scaled to fit.

The cost of suppressing fine variation

To distinguish known detail from known disturbance, we also constructed a 512 × 512 grayscale control: v = round(128 + 40 sin(2πx/128) + 12 sin(2πy/16)), with RGB equal to v and alpha 255. Its fine wave repeats every 16 pixels and is intentional signal. We applied the same ±6 brightness perturbation with a separate recorded seed.

StrengthSmoothing (px)Added-noise RMS (°)Intentional fine-wave amplitude retained
403.189100.0%
410.947100.8%
440.31658.4%
210.53450.8%
811.828203.7%

Fine-wave retention is measured from the clean control, relative to its Strength 4, Smoothing 0 output. Values above 100% mean a stronger slope component, not extra recovered detail. The 100.8% value at radius 1 is the measured quantized-PNG component, not evidence that smoothing created detail. The larger smoothing radius attenuates the intentional fine wave as well as the added disturbance. Reducing Strength also reduces that signal. A flat map would score little variation while discarding relief; that is why minimizing one number is the wrong target.

Reproduce the measurements

Decode RGB into a unit vector with normalize(2 × RGB/255 − 1). For two vectors use θ = acos(clamp(dot(n1,n2), −1,1)) × 180/π. The added-noise RMS is sqrt(sum(θ²)/N), comparing paired outputs at the same pixel. The adjacent RMS uses horizontal and vertical neighbor pairs inside the region instead.

All metrics exclude 8 pixels from each edge: x and y run from 8 inclusive to width−8 and height−8 exclusive. Each photo has 1,016,064 measured pixels and 2,030,112 adjacent pairs. The control has 246,016 pixels. Fine-wave amplitude is 2/N × sum((ny/nz) × cos(2πy/16)) over the clean control region; retention is that amplitude divided by the clean Strength 4, radius 0 amplitude. Its signed phase is kept consistent across comparisons.

The PNG vectors are quantized to 8-bit channels, so the numbers include encoding effects. Tables round degrees to three decimals and retention to one decimal percent; the JSON and CSV retain the unrounded results. Use the reference control PNG and perturbed control PNG to repeat the experiment. This is an output-sensitivity test, not a benchmark against physical surface normals.

Choose a setting for your own source

  1. Open the Normal Map Generator and choose the original photo or a deliberate height image. This generates a new map from brightness; do not feed it an existing normal map expecting selective cleanup.
  2. Keep direction, Strength and the preview scale fixed. Compare Smoothing 1 and 4 px. Use radius 0 as a diagnostic view of the unsmoothed height changes.
  3. Compare a region containing both a feature you want and a disturbance you do not want. Keep the smallest radius that meets your needs; there is no universal winning radius.
  4. If the entire relief remains too pronounced, compare Strength 4 with 2. Recheck the feature you want to retain. Increasing Strength to 8 is a useful stress comparison, not a detail-recovery step.
  5. Export the original-size PNG and check it in your actual material. This study did not validate a specific renderer or lighting setup. Use the OpenGL/DirectX green-channel test if the direction convention is uncertain.

When the sliders are not the fix

Broad shadows, painted marks and specular highlights still affect estimated height. Smoothing cannot reliably separate them from geometry. If the only acceptable radius erases the texture you wanted, prepare a more deliberate height input or a less misleading source rather than claiming the slider repaired the photograph.

Smoothing also cannot align mismatched opposite edges, repair a model's UVs or correct an incompatible material convention. For a source intended to repeat, use the separate Tileable Sampling boundary test. That setting changes where samples come from at the edge; it is not a substitute for this interior detail/noise check.