All guides

How to Use a Depth Map for Laser Engraving

How a grayscale depth map becomes a 3D engraving in LightBurn and xTool Creative Space, why 16 bits matter, and how to avoid an inverted or flat result.

Depth Map Generator
A rendered gold medallion with a raised animal portrait

A depth map is a grayscale image where brightness stands for height. Laser software that does 3D engraving reads it and removes more material where the map says the surface is lower. Done well, the result is a carved relief rather than a printed photo.

Set the depth map polarity

The one setting that ruins most first attempts is the direction of the map.

  • Light is high is the usual convention, and what Depth Map Generator exports by default: white areas stay at the surface, black areas are cut deepest.
  • Some workflows expect the opposite. If your test piece comes out like a mold instead of a relief, switch Raised areas to Dark. If you already have the PNG, invert it in the depth map editor.

Export a 16-bit grayscale depth map

An ordinary 8-bit image has 256 levels of gray. Stretched over a few millimeters of depth, that shows as terraces on gentle slopes such as cheeks or sky. A 16-bit PNG has 65,536 levels, so slopes stay smooth. Depth Map Generator’s PNG export is 16-bit, and its export window counts the distinct levels actually in the file.

Import the depth map into LightBurn

LightBurn's 3D Sliced image mode turns a grayscale image into many passes: darker pixels get more passes and end up deeper. It is meant for galvo lasers, which are fast enough to make many passes practical.

On gantry lasers (most diode and CO₂ machines) the usual route is Grayscale mode, which varies the power with the gray level. It gives depth in wood, but less precisely than sliced passes.

If you're engraving a flat image, use laser photo prep to size and dither the original photo for your machine.

Either way, set the image size in LightBurn to the size you want in millimeters, and test on a scrap of the same material first.

xTool Creative Space and xTool Studio

xTool calls 3D engraving Laser Embossing. It cuts dark areas deepest, the same as LightBurn, so a light-is-high map works as it is. Import the PNG as the depth map, choose Laser Embossing for your machine, and run a small test patch before the full piece.

Getting a better result

  • Keep the background flat. A busy background becomes a rough field around the subject. Dropping it, or lowering it, makes the subject stand out.
  • Lower the steps between near and far. A bas-relief setting compresses big jumps (a face in front of a distant wall) into small steps, so the depth goes into the subject's shape.
  • Clean up after engraving. A stiff brush and a light sanding take the char off wood; a second, lower-power pass can smooth the floor.

Generate a depth map from a photo. To set up its size, polarity and export for your machine, use the 3D laser engraving tool.

Turn a photo into a depth map

Try a sample for free without signing in. Sign in to generate a map from your own photo.