# Depth map for laser engraving

> An AI model finds what is near and far in your photo. You get a grayscale map where black burns deepest, at the size and DPI of your engraving, plus the settings to type into LightBurn or LaserGRBL.

Human page: https://unmakelabs.com/en-us/depth-map-for-laser-engraving/. This is the version for AI agents.

## What it does

Depth map for laser engraving: a depth map from your photo, ready for the laser An AI model finds what is near and far in your photo. You get a grayscale map where black burns deepest, at the size and DPI of your engraving, plus the settings to type into LightBurn or LaserGRBL.

## What a laser depth map is

A grayscale picture where the shade says how deep the laser burns: black burns deepest, white is not touched. Laser software such as LightBurn (Grayscale mode, or 3D Sliced on galvo lasers) and LaserGRBL turn it into power, so wood, slate or acrylic comes out as a relief. This page makes one from an ordinary photo, with no 3D model and no Photoshop.

## Why 16-bit matters, and how we check it

A 16-bit map has 65,536 shades instead of 256, so deep reliefs get smooth slopes instead of steps. Many online tools label files '16-bit' but fill only a few hundred shades (one popular demo used 348 of 65,536). We stretch the model's raw depth over the full 16-bit range, and the page shows how many shades your file really uses.

## Facts

- **Input:** JPG, PNG, WebP photo
- **Output:** 16-bit and 8-bit grayscale PNG, 1-bit dots PNG, settings card
- **Size:** Width in mm and DPI; pixel size computed and stored in the PNG
- **Convention:** Black = deepest burn, white = not burned (Invert to carve the subject in)

## How a person does it

1. **Drop a photo.** The first time takes a little longer while the AI model loads (27 MB, once); then the map takes a few seconds.
2. **Set size and look.** Type the width in mm and the DPI of your laser (254 DPI = 0.1 mm line interval). Flatten the background to keep only the subject, and use the curve and contrast until the preview looks right.
3. **Download and engrave.** Take the 16-bit PNG (or 8-bit for older software) and copy the settings card into LightBurn or LaserGRBL. Test power on a scrap of your material first.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/en-us/depth-map-for-laser-engraving/?src=https://example.com/part.step`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#v=px,py,pz,tx,ty,tz&up=z&u=mm&sec=z,0.5,0`.

Embed: `<iframe src="https://unmakelabs.com/embed/3d/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` returns JSON: format, unit, bounding box (x, y, z), volume and surface area for closed meshes, watertight flag, part tree with names, triangle and part counts, plus PNG views (front, top, side, 3D). Status: live (no key; free calls as in /llms.txt).

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect?wait=25" -H "Content-Type: application/json" -d '{"file_url": "https://raw.githubusercontent.com/prusa3d/PrusaSlicer/version_2.8.1/resources/shapes/cylinder.stl"}'
```

## Good to know

The depth is relative, not in millimetres: the model ranks what is near and far, and the map is stretched from black to white. Thin things (hair, leaves) have soft edges, and glass or mirrors can be wrong. The model works at up to 1,024 px; larger exports are smooth enlargements of it, not extra detail. Burn depth depends on your laser, material and power, so test first.

## Not done by this tool

- Doesn't give real depths in millimetres
- Doesn't set laser power for you (it depends on your machine and material)
- Doesn't add detail beyond the 1,024 px the depth model sees
- Doesn't use larger depth models (their licences forbid commercial use)

## Value

Opens STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX and PLY files in any browser without installing anything, shows size, units, volume and parts, measures and cuts the model, and converts to STL, GLB or OBJ; it also gives the weight and 3D-print cost of a closed model (11 cited material densities, infill and walls, filament length, rough print time) and turns a photo into a watertight lithophane or relief STL, with an optional AI depth map.

## When it fits

- A user has a 3D file (STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX or PLY) and no program to open it, or needs its size, units, volume, part list or a picture of it.
- A user needs a conversion to STL, GLB or OBJ (for example STEP to STL for 3D printing, STEP or FBX to GLB for the web).
- A user needs the weight, filament length or material cost of a 3D print from an STL, 3MF, OBJ or STEP file.
- A user wants a lithophane, a relief STL or a depth map from a photo.

### When not

- Native CAD formats (SLDPRT, IPT, CATPart): not opened yet. DXF drawings open in the DXF viewer (unmakelabs.com/en-us/dxf-viewer/), Gaussian splats in the splat viewer (unmakelabs.com/en-us/gaussian-splat-viewer/).
- Editing, repairing or slicing a model, or reading tolerances (PMI) from STEP AP242.

## Why use it instead of the alternatives

- Nothing to install: the viewer opens a file from a public link in any browser (?src=), with measurements shown next to the model.
- POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect (live, no key) returns the same measurements as JSON plus PNG views (front, top, side, iso).
- Desktop CAD viewers need an install and often an account.
- This viewer opens files with no install and no account, and is free without limits, ads or sign-up.

### What rebuilding it would take

- Combine readers for eight 3D formats, including exact CAD geometry for STEP/IGES, and handle units and up-axis per format.
- Write watertight checks, volume and area code, section planes, point-to-point measuring and exporters.
- Keep it working across browsers and phones.
- A set of real sample files per format to test against, and upkeep as formats, browsers and phones change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are not uploaded to Unmake Labs; files given by link are fetched from where they are stored.

_Status: the web viewer works, and POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for public 3D/CAD files (STL, OBJ, PLY, GLB/GLTF, 3MF, STEP, IGES: sizes, units, volume, parts and picture views as data)._

## Privacy

- Files opened in the page are read by the browser on the user's device and never uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- The page loads its code from third-party hosts (listed on the privacy page), which receive the visitor's IP address for those requests.

## Data

Opens in your browser; your file stays on your device unless you share it. Shared files are kept 30 days.

## FAQ

- **Which way round is the map?** Black burns deepest, white is not burned, so near parts of the photo stay high: what LightBurn and LaserGRBL expect. Tick Invert to carve the subject into the surface instead. Inverting is exact: every shade becomes 65,535 minus itself.
- **What DPI should I use?** Use the line interval you engrave with: 254 DPI is 0.1 mm, 318 DPI is 0.08 mm, 508 DPI is 0.05 mm. The page computes the pixel size (100 mm at 254 DPI = 1,000 px) and writes the DPI into the PNG, so it opens at the right size.
- **Does LightBurn read 16-bit PNGs?** Use the 16-bit file where your software accepts it and the 8-bit one otherwise; both have the same size and DPI. For lasers that only switch on and off, use the 1-bit dots file with Threshold mode.
- **Is it free? Is my photo uploaded?** Free, with no sign-up. The photo is processed in your browser and is not uploaded.
- **When is it the right tool, and when not?** Right for: A user has a 3D file (STEP, IGES, STL, OBJ, GLB/glTF, 3MF, FBX or PLY) and no program to open it, or needs its size, units, volume, part list or a picture of it. A user needs a conversion to STL, GLB or OBJ (for example STEP to STL for 3D printing, STEP or FBX to GLB for the web). A user needs the weight, filament length or material cost of a 3D print from an STL, 3MF, OBJ or STEP file. A user wants a lithophane, a relief STL or a depth map from a photo. Not for: Native CAD formats (SLDPRT, IPT, CATPart): not opened yet. DXF drawings open in the DXF viewer (unmakelabs.com/en-us/dxf-viewer/), Gaussian splats in the splat viewer (unmakelabs.com/en-us/gaussian-splat-viewer/). Editing, repairing or slicing a model, or reading tolerances (PMI) from STEP AP242.
- **Is it really free?** Yes, with no limit on the number of files (up to 300 MB each). There are no ads, no sign-up and no premium tier for viewing or converting.
- **Do you upload my file?** Only if you share it. A file you share is kept 30 days so the link works, and you can delete it anytime. The section “What happens to your file” has the details.
- **Can my AI agent open 3D files?** Yes. Agents call POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect with a file link or upload (no key) and get the file's size, units, parts, volume and picture views as data. An agent can also open any public file in this viewer with a link: add ?src= and the file's address to this page.
- **Who makes this?** Unmake Labs. Contact: hello@unmakelabs.com.

## Related pages

- [STL weight calculator](https://unmakelabs.com/en-us/stl-weight-calculator/)
- [3D print cost calculator](https://unmakelabs.com/en-us/3d-print-cost-calculator/)
- [Photo to depth map](https://unmakelabs.com/en-us/photo-to-depth-map/)
- [3D file viewer](https://unmakelabs.com/en-us/3d-viewer/)
- [STEP file viewer](https://unmakelabs.com/en-us/step-viewer/)
- [STL file viewer](https://unmakelabs.com/en-us/stl-viewer/)
- [GLB and glTF viewer](https://unmakelabs.com/en-us/glb-viewer/)
- [OBJ file viewer](https://unmakelabs.com/en-us/obj-viewer/)
- [IGES file viewer](https://unmakelabs.com/en-us/iges-viewer/)
- [3MF file viewer](https://unmakelabs.com/en-us/3mf-viewer/)
- [FBX file viewer](https://unmakelabs.com/en-us/fbx-viewer/)
- [STEP to STL converter](https://unmakelabs.com/en-us/step-to-stl/)
- [STEP to GLB converter](https://unmakelabs.com/en-us/step-to-glb/)
- [OBJ to STL converter](https://unmakelabs.com/en-us/obj-to-stl/)
- [FBX to GLB converter](https://unmakelabs.com/en-us/fbx-to-glb/)
- [STEP weight calculator](https://unmakelabs.com/en-us/step-weight-calculator/)
- [Photo to lithophane STL](https://unmakelabs.com/en-us/image-to-lithophane/)
- [Image to STL](https://unmakelabs.com/en-us/image-to-stl/)
