How to Turn a Photo into a 16-bit Depth Map and STL for 3D Printing, Laser Engraving, and CNC
A single photograph will not give you a dimensionally accurate CAD solid, and it is not a substitute for photogrammetry when you have a ring of overlapping shots. What it can give you is a height field: a grayscale image in which every pixel's brightness stands for a physical height, plus a mesh you can slice, engrave, or cut. That is the file a lithophane, a LightBurn 3D Sliced job, or a CNC…
A single photograph can be transformed into a height field, a grayscale image where each pixel's brightness represents physical height, along with a mesh suitable for 3D printing, laser engraving, or CNC. This tutorial explains how to create a 16-bit PNG and a closed STL file from one photo, and how to use these files in various tools.
Depth-Map.com, a free online generator, is used to produce these files. The depth map is a grayscale image, with bright pixels representing objects closer to the camera and dark pixels representing objects further away. The resulting depth map can be used as a height map or displacement map in various applications, such as Blender, laser controllers, and lithophane slicers.
The process involves uploading a well-lit photo of a single subject, generating a depth map, tuning the settings in the browser, and then exporting the files for use in different tools.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.