Skip to content
DepthCarve

File formats

How to read and repair a grayscale depth map

Grayscale is only an encoding. You still need to know which end is near, what the range means, where the model failed, and how the next application turns values into an effect or physical surface.

DepthCarve3 minute readProduct guide
Try the free preview

Start with an image or the sample. No account needed for the preview.

A laser engraving a portrait into wood
Brightness has to mean something before the file reaches the machine.Illustration, not a documented customer result.

Define black and white before editing

There is no universal rule that white must be near. Many visualization examples use white for closer surfaces, while displacement and machine workflows may use white for higher elevation. Some software offers an inversion switch and some silently assumes one convention. Use a simple wedge or known object to verify the receiver instead of depending on memory.

Write the chosen convention with the file. For relative depth, values describe ordering and normalized distance rather than meters. For relief, the same values may be remapped to millimeters. The visual image can appear plausible under either inversion, so correctness comes from the contract, not the thumbnail.

Try the workflow

Preview your image before spending a credit

Choose an image, inspect its source checks and preview, then test a free export. A production job is a separate approval that uses a credit; a preview is not a guarantee of a successful print or carve.

Live manufacturing workbench

Upload a photo. Preview the depth. Download your file.

Three free AI previews per day. Source checks, editing, 3D preview, and compatibility exports are free.

Sample relief depth preview

What happens to an ordinary photo (no login required):

Ordinary camera photograph before depth conversion
1. Ordinary photo
Smooth 16-bit AI grayscale heightmap without shadow artifacts
2. 16-bit depth map
Watertight 3D bas-relief STL mesh ready for CNC or printing
3. Watertight STL

Camera shadows get separated from true 3D height—ready for CNC ball-nose finishing, LightBurn 3D Sliced laser, or resin/FDM printing.

Choose a source image to begin.

Use the histogram range without crushing structure

When a few extreme pixels occupy black and white, most of the subject can collapse into middle gray. Move black and white points inward to allocate more levels to the useful object. Watch eyes, edges, hair, and shallow curves for clipping. Increased contrast can improve separation, but it can also exaggerate a model error into an unmanufacturable step.

A flat background is helpful for many reliefs because it defines a consistent base. It is not always helpful for VFX, where background distance drives fog or depth blur. Edit around the final intent. Keep an unmodified model output so a destructive grade can be compared and reversed.

Recognize halos, islands, bands, and false texture

A halo is a light or dark outline that does not belong to the object's actual shape. In a relief it becomes a trench or ridge; in compositing it creates an obvious fringe. Islands are isolated values that become spikes or holes. Bands indicate quantization or over-aggressive range expansion. False texture appears when shadows, print, or surface color are interpreted as geometry.

Range controls can suppress small problems but cannot reorder an incorrectly understood scene. Crop, choose a clearer source, retouch the field, or use a specialized segmentation step. Increasing resolution or converting to 16-bit will make a structural error denser, not more accurate.

Grayscale depth map defect diagnosis and workbench fix
Visible defectLikely root causeFix before export
Flat, lifeless reliefSubject occupies only 20–30% of the 0–255 histogramTighten black point & white point, enable background flattening
Recessed face / hollow subjectInverted white-near vs white-far convention in receiverToggle Invert near/far and verify with a 2-tone test block
Terraced stair-stepping on curves8-bit quantization stretched across deep Z reliefExport true 16-bit PNG from raw float EXR and verify in PNG checker
Trench or ridge around silhouetteSharp photo halo or hard cast shadow on backgroundApply 1–2 edge-preserving smoothing passes and crop harsh shadows

Check exported files locally in the PNG Bit Depth Checker before loading into LightBurn, Aspire, or Carveco.

Test the grayscale path end to end

Download the free 8-bit PNG and import it into the actual target. Confirm aspect ratio, direction, color management, and whether the software treats it as grayscale or converts it. For 16-bit workflows, inspect metadata and check that the receiving application preserves the wider samples. For relief, render under grazing light or build a low-density mesh to expose abrupt slopes.

For a laser or CNC job, keep machine settings out of the image contract. Test the field on scrap with documented material and tool parameters. For VFX, check the pass under the intended blur, fog, and parallax amplitude. A map that looks smooth by itself can fail when the downstream effect magnifies a small edge error.

Before the file moves forward

Final checklist

  • Near and far direction is confirmed in the receiving tool.
  • Relative or metric interpretation is documented.
  • The useful subject occupies enough of the grayscale range.
  • Halos, isolated islands, and false texture are inspected at full size.
  • Bit depth and channel count survive the import path.
  • The final effect or physical process is tested at low cost.

Straight answers

Questions this workflow raises

Does white mean closer or deeper in a grayscale depth map?

There is no single standard across software. Most CNC relief packages and LightBurn 3D Sliced mode treat white as highest/shallowest and black as deepest, while some laser modes invert that. Always verify with a two-tone test or toggle Invert before carving.

Can I turn an ordinary black-and-white photo into a grayscale depth map?

No. Desaturating a photograph records brightness and shadows rather than 3D distance, which turns dark hair or shadows into deep pits. Use a depth estimator to infer scene geometry first, then remap the grayscale range.

How can I tell if my grayscale PNG is truly 16-bit?

Open the file in DepthCarve's local PNG Bit Depth Checker. It inspects the IHDR bit depth header and counts distinct gray levels so you can distinguish true 16-bit data from an 8-bit image resaved in a 16-bit container.

Why do I see rings or steps when carving a grayscale depth map?

Contour banding appears when an 8-bit image (only 256 levels) is stretched across a deep Z height or smoothed aggressively. Starting from raw floating-point depth and exporting a true 16-bit PNG (65,536 levels) removes quantization steps.

No-login product advisor · Grounded in live export specs

Questions before exporting? Get straight answers on 16-bit depth, CAM & billing

Why does true 16-bit PNG matter for CNC wood relief and fiber laser engraving?

Standard 8-bit grayscale has only 256 height steps, which produces visible stair-stepping bands across faces and shallow curves. One DepthCarve production credit decodes raw floating-point EXR depth into 65,536-level true 16-bit forward and inverse PNGs plus a verified watertight STL.