Skip to content
depthue
Depth maps

How to Make a Depth Map From a Photo (AI and Manual Methods)

How to make a depth map from a photo for laser engraving, CNC and 3D printing: AI estimation, phone depth, hand painting, and checking it before you cut.

By Depthue Lab3 min read

A tablet showing a grayscale lion depth map beside the carved wooden lion relief made from it
On this page (5 sections)
  1. Step 1: choose a photo that has depth to find
  2. Step 2: generate the depth map
  3. Step 3: fix the map before you export
  4. Step 4: export for the machine
  5. A quick checklist

A depth map is a picture of distance. Every pixel is a shade of gray, white for the parts closest to the viewer and black for the parts farthest away. Laser software, CNC CAM and 3D printing slicers read those grays as heights, which is how a flat photograph becomes a carved or printed relief.

This guide covers four ways to make one, the one step most people skip, and the settings that decide whether the result carves cleanly.

Step 1: choose a photo that has depth to find

Depth models are good, but they cannot invent information the photo does not contain. The best inputs have:

  • One clear subject. A face, a pet, a statue, a building. Crowds and clutter turn into bumpy terrain.
  • Soft, even light. Hard shadows can be read as holes. Overcast daylight or a window is ideal.
  • Separation from the background. A plain wall or a blurred background lets the model push the background back cleanly.
  • Enough resolution. 1000 pixels across is plenty for most engravings. Upscaling a tiny image adds pixels, not detail.

Lighting matters even more for the carve itself: a depth map carved from a flat-lit photo still looks sculpted, because the relief creates its own light and shadow on the material.

Step 2: generate the depth map

Method A: AI depth estimation (fastest, best for faces and animals)

Modern monocular depth models predict depth from a single image. Depth Anything V2 is the most widely used open model; Depth Anything V3 and Lotus 2 are newer alternatives with different strengths on geometry and fine structure.

You can run Depth Anything V2 for free in the Depthue depth map generator. It works in your browser, downloads the model once, and processes the image on your own device.

Method B: a desktop depth map app (best for repeat work)

Desktop apps run the same kind of model offline and add the tools you need for production: batch processing, a height brush, 16-bit export and watertight meshes. DepthGen Pro routes each image to the model that suits it and uses a separate photometric method for coins and medals, which general models flatten.

Method C: paint it by hand (best for text and simple shapes)

For a logo, a monogram or a geometric pattern, a hand-built map is often cleaner than AI:

  1. Create a grayscale document at the final print size.
  2. Fill the background black.
  3. Draw each shape as white or light gray, higher parts lighter.
  4. Use a Gaussian blur or a bevel to round the edges. A hard black-to-white step makes a vertical wall.

Method D: phone depth data or photogrammetry

Portrait-mode photos often carry a low-resolution depth layer, and photogrammetry apps can build a full 3D model from dozens of photos. Both are useful, but for a single relief engraving they are more work for a worse map than a good AI model.

Step 3: fix the map before you export

Almost every disappointing engraving comes from a map that was exported without being checked. Look for these four problems:

ProblemWhat you seeFix
Background is not flatGray haze or a slope behind the subjectRaise the black point or use a background cutoff
Too little contrastThe subject is all mid-grayLower the white point, adjust midtones
Smoothed-away detailA face looks like soapAdd a little detail from the photo
Wrong polarityThe subject is carved in, not raisedInvert

The generator above has a 3D relief view. Use it. Rotate the preview and look at the silhouette: if the nose, ears or edges look wrong in 3D, they will look wrong in wood.

Step 4: export for the machine

A quick checklist

  • One subject, soft light, simple background
  • Background pushed to black
  • Subject uses the full range from dark to white
  • Checked in 3D before export
  • Exported at the resolution the job needs

Frequently asked questions

Can AI make a depth map from one photo?

Yes. Monocular depth estimation models such as Depth Anything V2, Depth Anything V3 and Lotus 2 predict relative depth from a single image. The result is relative, not measured in millimetres, so you set the physical height yourself when you export.

Can I make a depth map in Photoshop?

You can paint one by hand with gradients and soft brushes on a grayscale layer, and some versions include AI depth tools. Painting works for simple shapes and text, but it is slow for faces and animals, where an AI model is faster and more accurate.

Does my phone's portrait mode save a depth map?

Many phones store a depth or disparity map inside portrait photos. It is useful for background blur but is usually low resolution and noisy at the edges, so it rarely beats a dedicated model for carving.

What resolution should a depth map be?

Match the job. For laser engraving, aim for your line interval: a 100 mm engraving at 0.1 mm interval needs about 1000 pixels across. For CNC, the tool diameter limits detail more than the pixels do.

Turn the next photo into a depth map.

Try the free generator in your browser, or go offline with DepthGen Pro for coins, 16-bit export and batches.