Skip to content
DepthCarve

STL workflow

Convert a depth map to STL without creating an open shell

A depth image becomes useful geometry only after its pixels are sampled, scaled, connected, and closed. Understand each step before a technically valid mesh reaches a slicer or CAM project.

DepthCarve4 minute readProduct guide
Try the free preview

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

A CNC router cutting a closed wooden relief mesh
A watertight mesh is the start of a toolpath, not a toolpath.Illustration, not a documented customer result.

Static before / after · tabletop & CNC terrain

Turn a 2D fantasy atlas or RPG map into a watertight 3D relief STL

Illustrated parchment maps, D&D campaign continents, and 16th-century-style atlases carve cleanly when mountain ridges, plateaus, and recessed river valleys are separated into a true 16-bit elevation field before STL triangulation.

2D 16th-century style parchment fantasy realm map illustration with mountains, coastlines, and river valleys
Before · 2D illustrated fantasy atlasFlat ink coastlines and mountain hachures have zero Z-height data for slicers or CAM.
16-bit grayscale heightfield and watertight 3D relief STL preview showing 3 mm solid base and +6 mm mountain peaks
After · 16-bit depth field + watertight STLClosed 3 mm flat backing plate + smooth 6 mm mountain relief ready for CNC, SLA resin, FDM, or LightBurn 3D slice.

1 credit = full production bundle (true 16-bit forward & inverse PNGs + raw 32-bit EXR + watertight binary STL + commercial license). $39 one-time Shop Pack covers 150 jobs ($0.26/job) — credits never expire, failed jobs auto-refund.

View Shop Pack pricing ($39 · 150 jobs)

Map pixels into physical coordinates

Each grayscale sample becomes a vertex height. Image X and Y map to the chosen physical width and its aspect-ratio-derived height. The normalized depth value maps to base thickness plus a selected relief height. This makes the scale explicit instead of leaving downstream software to guess whether one unit means a millimeter, inch, or meter.

DepthCarve samples the field to a bounded grid. More samples create more triangles and can follow finer changes, but they also preserve noise and increase memory, download size, slicing time, and CAM calculation. Begin with a moderate grid and increase only when the final physical process can reproduce the additional detail.

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.

Close the top with walls and a bottom

A height surface alone has no volume. DepthCarve triangulates each grid cell into a top, walks the four perimeter edges to create side walls, and adds two triangles for a flat bottom. The complete binary STL is therefore a backed relief rather than a floating sheet. The exporter checks its predicted and written triangle counts and fails loudly if construction is inconsistent.

Watertight means the mesh encloses volume. It does not mean every normal, feature, overhang, or slope suits the target process. Slicers may still flag very thin features. CAM software may find steep regions unreachable. A mesh validator and the target application's own simulation remain part of the contract.

Choose height and base for the manufacturing method

Relief height controls the total raised range, not stock thickness. For CNC, choose it around cutter diameter, tip geometry, reach, and desired finishing time. For FDM, compare it with nozzle width and layer height. For resin, consider supports, suction, and fragile peaks. Tall relief in a small width creates steep walls and is often less readable than a restrained, well-graded surface.

Base thickness gives the object strength and a predictable flat reference. A plaque that will be screwed, glued, framed, or machined from stock needs different backing. DepthCarve enforces a minimum but cannot choose the correct engineering dimension. Include mounting, finishing, and remaining stock in the decision.

3D depth map vs watertight STL: quick specs by workflow

A 3D depth map is a 2D grayscale height field (8-bit PNG for quick screening, or true 16-bit grayscale PNG with 65,536 elevation levels to eliminate stair-stepping on smooth wood or brass). A binary STL turns those grayscale samples into a closed 3D triangle mesh with perimeter side walls and a flat backing plate so slicers and CAM packages can compute toolpaths or print layers directly.

For typical shop outputs: choose 16-bit grayscale PNG when driving fiber/CO2 3D laser slice passes (LightBurn/EZCad) or importing heightfields into Vectric Aspire/Carveco; export watertight binary STL when slicing for FDM/resin 3D printing (2–4 mm base + 3–8 mm relief on a 150 mm plaque) or importing directly into Fusion 360/Carbide Create. DepthCarve exports an 8-bit preview PNG and low-res preview STL free with no account, while the production bundle (true 16-bit forward + inverse PNGs, raw 32-bit EXR, high-res watertight STL, and manifest) costs 1 credit—$39 one-time for 150 production jobs ($0.26/job, credits never expire, zero subscription).

Fantasy maps & RPG terrain to 3D relief STL (CNC, resin & FDM specs)

Tabletop RPG campaign maps, Tolkien-style parchment continents, and 16th-century atlas illustrations are one of the highest-impact relief projects because viewers expect bold topographic contrast: flat sea basins, stepped coastal shelves, carved river channels, and steep mountain spines. Unlike portraits, high-contrast ink borders and text labels can create unwanted spikes if left unfiltered, so strip decorative lettering or run a clean terrain-only export before generating your heightfield.

Match your STL dimensions and relief amplitude to the physical craft rather than chasing maximum Z height. On a 300 mm hardwood CNC wall plaque, a 6 mm relief over a 6 mm flat backing plate gives crisp raking-light shadows without burying a 1/16 inch tapered ball-nose cutter. For tabletop D&D diorama tiles on an SLA resin printer, 4.5 mm relief over a 3 mm base captures fine mountain ridges cleanly at 0.05 mm layer height while staying warp-resistant on the build plate.

Starting depth-to-STL parameters for 2D fantasy maps and RPG terrain reliefs
Output workflowTarget sizeRelief + base ZRecommended export & tooling
Hardwood CNC wall map (walnut / maple)300 × 220 mm6 mm relief + 6 mm baseWatertight STL or 16-bit PNG · 1/16" tapered ball-nose, 8% stepover
SLA resin tabletop terrain tile (D&D / wargaming)150 × 150 mm4.5 mm relief + 3 mm baseWatertight binary STL · 0.05 mm layer height, angled 20° on supports
FDM campaign map plaque (matte PLA)200 × 150 mm5 mm relief + 2.5 mm baseWatertight binary STL · 0.4 mm nozzle, 0.12 mm layer height, ironed ocean floor
Fiber / CO2 3D laser relief (brass / slate)120 × 90 mm16-bit grayscale heightfieldTrue 16-bit PNG · LightBurn / EZCad 3D slice mode (128–256 passes)

Reference starting points for test cuts only—always simulate toolpaths or slice previews against your exact material, bit reach, and machine limits.

Inspect, slice or simulate, then test

Open the STL in a mesh viewer and verify bounding dimensions, orientation, the lowest plane, and the highest point. Look along the silhouette for walls and under the model for the bottom. In a slicer, inspect every layer around fine islands. In CAM, confirm units, stock, origin, safe Z, boundaries, roughing allowance, finishing toolpath, and remaining material.

Do not generate unreviewed G-code from a generic web tool. Machine-specific post-processors, workholding, cutter data, and controller limits are safety-critical. Use the DepthCarve STL as a bounded geometry handoff, then let verified downstream software perform the operation it was designed to control.

Before the file moves forward

Final checklist

  • The depth field has the correct direction and a quiet intended base.
  • Width, aspect ratio, relief height, and base thickness are intentional.
  • Mesh grid matches real process resolution rather than maximum file size.
  • The STL opens as a closed volume with correct dimensions and orientation.
  • Slicer or CAM simulation exposes no unsupported or unreachable features.
  • A low-cost physical test is completed before final production.

Straight answers

Questions this workflow raises

Why does a raw height surface fail in CNC CAM or a 3D slicer?

A displaced grid without side walls or a bottom face is an open sheet with zero volume. Slicers and solid-model CAM checks flag open shells as non-manifold; DepthCarve closes the perimeter walls and flat bottom so the exported binary STL is a watertight solid.

What relief height and base thickness should I set for wood CNC or resin printing?

Keep relief height proportional to plaque width and cutter reach—typically 3 mm to 8 mm on a 150 mm to 250 mm hardwood plaque—and add at least 2 mm to 4 mm of flat base thickness for structural rigidity or mounting.

Does a higher STL mesh density always produce a cleaner carve?

No. Exceeding what your ball-nose stepover or printer nozzle can resolve mainly amplifies photo noise and inflates file size. Match the mesh grid to real tool resolution and inspect the STL in a viewer before generating toolpaths.

When should I use a 16-bit 3D depth map PNG instead of a depth map to STL mesh?

Use a true 16-bit grayscale PNG for 3D laser engraving (LightBurn/EZCad 3D slice mode) or when your CAM tool imports heightfields natively (Vectric Aspire, Carveco). Export a watertight binary STL when your workflow requires a closed 3D solid for FDM/SLA slicers, Fusion 360, or Carbide Create.

How much does converting a 3D depth map to production STL cost on DepthCarve?

The 8-bit grayscale depth map PNG and low-resolution preview STL are free without signup so you can verify subject separation first. Production exports (true 16-bit forward/inverse PNGs, raw EXR, and full-resolution watertight STL) cost 1 credit per job—with the one-time $39 Shop Pack covering 150 jobs ($0.26/job) with no subscription and commercial rights included.

How do I convert a 2D fantasy map or D&D RPG terrain illustration into a 3D relief STL?

Start with a clean terrain version of your map (hide labels and compass text if you do not want raised lettering), remap ocean level to the quiet base plane, and export a true 16-bit heightfield plus watertight binary STL. Set 4.5–6 mm relief over a 2.5–6 mm solid base depending on whether you are resin printing tabletop tiles or CNC carving hardwood wall plaques.

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.