Skip to content
DepthCarve

Image to heightmap generator

Image to height map and 16-bit heightmap generator with controlled range

Convert any photo into a camera-derived 16-bit heightmap for CNC relief carving, laser engraving, or PBR displacement—not a geographic terrain map. Shape grayscale range, flatten backgrounds, invert elevation, and preview in 3D before export.

  • True 16-bit heightmap PNG from raw float
  • CNC relief & PBR displacement paths
  • Watertight STL export + free 3D preview

Three free AI previews per day · no account to try · 1 credit unlocks raw EXR, true 16-bit PNGs & STL ($12 / 30 credits)

image to height map preview with a grayscale field and carved relief surface
Preview → range → production file

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.

Inspect a real download

From a public photo to inspectable files

Follow one existing public AI preview through local format conversion. These downloads show what the files contain; they are not a paid raw-EXR sample or a successful machining case.

A cluttered workshop with tools and materials behind the workbench
1 · Source photograph
Grayscale AI depth estimate of the same cluttered workshop
2 · Existing AI depth preview

3 · Download and check

What was checked in these sample files
FileMeasured resultWhat it proves
depth.png8-bit grayscale · 255 distinct valuesAn AI preview, with the busy background still present.
compatible-16bit.png16-bit grayscale container · still 255 distinct valuesA format conversion. No added depth precision.
preview-relief.stl24,572 triangles · approximately 120 × 80.16 × 5.98 mmFinite mesh coordinates and closed edges checked; no toolpath or physical test.

File hashes, settings and checks (JSON) · File checks dated

What this example does not establish

The complex background has not been removed or flattened. LightBurn import and pass preview have not been tested. No machine, material, carving or print was tested. Inspect and prepare the file for your own workflow before a production job.

LightBurn 2.1: 3D Sliced is for Galvo lasers only. A 16-bit container with 255 distinct values does not provide more than 256 depth levels for a high-pass-count job.

Read the official LightBurn 2.1 mode requirements

Photo by Shixart1985 via Wikimedia Commons. AI depth estimation and format conversions by DepthCarve. Original photograph · CC BY 2.0 license

Real work, real failure cost

Built around the people who pay for a bad output

The useful product is not the model call. It is the review loop that catches a reversed field, a noisy border, or an impossible relief before the next tool turns that mistake into wasted time.

01

CNC & laser relief shops

Convert client photos into a smooth 16-bit CNC relief heightmap for Aspire, Carveco, or LightBurn.

02

3D & PBR texture artists

Build clean displacement heightmaps from image structure instead of noisy raw pixel luminance.

03

Game & VFX artists

Prototype parallax, micro-displacement, and normal-map base layers with predictable grayscale range.

01

How an image to heightmap converter remaps depth into elevation

Depth describes distance from a camera, while a heightmap describes surface elevation above a flat reference plane. Turning a photograph into an image to height map field is an editorial step: you decide that the nearest subject becomes the highest white peak, that distant background clutter collapses to a quiet flat floor, and that midtone transitions spread evenly across the grayscale histogram.

DepthCarve runs monocular depth estimation first so dark hair, pupils, and shadowed clothing stay physically attached to the subject instead of sinking into brightness holes. From that depth estimate, this heightmap generator gives you black and white points, gamma curve, subject threshold, background flattening, inversion, edge-preserving smoothing, and border taper—updating both the grayscale heightmap and 3D relief preview locally without spending another model call.

02

CNC relief heightmap vs. PBR displacement heightmap settings

A CNC relief heightmap and a PBR displacement map start from the same grayscale elevation concept, yet downstream tools consume them very differently. CNC CAM packages (Vectric Aspire, Carveco Maker, VCarve) and LightBurn 3D Slice turn brightness directly into spindle Z-depth or laser pass count, where steep single-pixel cliffs cause bit chatter, chip tear-out, or vertical wall artifacts.

3D renderers and game engines (Blender, ZBrush, Unreal Engine, Unity) read the single-channel grayscale heightmap as a non-color scalar multiplied by a shader displacement strength. There, clean midtone distribution, unclipped highlights, and true 16-bit precision matter more than physical millimeters. Use the starting profile table below to match your image to heightmap settings to the receiving workflow.

Starting image to heightmap settings by CNC relief, laser, and PBR displacement workflow
Target workflowRecommended exportHeight directionRange & smoothing setupTypical scale / depth
CNC Hardwood Relief (Aspire / Carveco / VCarve)True 16-bit PNG or watertight STLWhite = raised peak (positive relief)Flatten background + 1–2× smoothing + 5–8% edge taper3.5–6.5 mm Z-relief on ≥14 mm stock
3D Laser Engraving (LightBurn 3D Slice / MOPA)True 16-bit grayscale PNGWhite = high peak; invert for negative coin diesTighten black/white points + gentle gamma (1.05–1.2)0.8–2.4 mm over 128–256 grayscale passes
Blender / ZBrush Displacement ModifierTrue 16-bit grayscale PNG (Linear / Non-Color)White = outward displacement (mid-level 0.0–0.5)Keep full 0–1 histogram; avoid harsh clipping on curvesSubdivide mesh to match map resolution
Unreal Engine / Unity PBR Parallax & Materials16-bit PNG (or 8-bit preview for coarse LODs)White = raised surface; pair with tangent normal mapNormalize contrast; remove background gradient rampShader height ratio 0.02–0.08 + POM steps
FDM / MSLA 3D Print Bas-Relief & PlaquesWatertight binary STL (from same heightmap)White = raised front face over solid base plate2× smoothing for fur/hair + 2.5–3.0 mm base backing2.5–4.5 mm relief · 160–256 mesh grid

Always verify white-high vs. black-high convention and physical stock limits inside your CAM, laser, or shader viewport before production.

03

Why a true 16-bit heightmap prevents CNC and shader stair-stepping

Standard 8-bit grayscale PNGs only store 256 discrete height steps (0–255). On a 6 mm hardwood CNC relief plaque, each single 8-bit gray increment equals a 23.5 µm physical ledge—large enough to appear as visible topographic terracing across smooth cheeks, foreheads, brass medallions, and finely subdivided Blender meshes.

A true 16-bit heightmap encoded from raw floating-point EXR depth stores 65,536 elevation levels, cutting the quantization step on that same 6 mm relief down to 0.09 µm. DepthCarve clearly separates free preview containers from raw-float production outputs so you never mistake an upscaled 8-bit file for genuine 16-bit elevation data.

Comparison of heightmap export formats from the image to heightmap workbench
Export formatGrayscale levelsStep size on 6 mm reliefBest use caseAvailability
8-bit Grayscale PNG256 levels (0–255)~23.5 µm (visible terracing on curves)Fast visual checks, coarse parallax, quick draftsFree preview
Compatibility 16-bit PNG256 preview values in 16-bit container~23.5 µm (container compatibility only)Testing CAM/shader 16-bit import pipelines before payingFree preview
True Raw-Float 16-bit Heightmap PNG65,536 levels from MoGe2 EXR float~0.09 µm (smooth continuous slopes)Hardwood CNC plaques, brass coins, Blender/ZBrush displacement1-credit production ZIP
Watertight Relief STLContinuous float32 vertices + solid baseBounded by mesh grid & cutter radiusVCarve, Fusion 360, Bambu Studio, PrusaSlicerPreview STL free · Full STL in ZIP

One approved production ZIP includes both forward and inverse true 16-bit heightmap PNGs, raw EXR, watertight STL, 8-bit preview, and a versioned manifest.

04

Practical grayscale range, inversion, and smoothing checklist

Before running an image to heightmap conversion, crop out distracting borders or distant rooms so the depth estimator focuses its dynamic range on the actual subject. After generating the free preview, pull the black point up until background noise drops flat, set the white point just below peak highlights so noses or crests do not plateau, and toggle Invert whenever your target software expects black-as-high (such as negative wax molds or rear-lit intaglio acrylic).

For CNC relief heightmaps, apply one to two passes of edge-preserving smoothing and a 5–8% border taper so a 1.0–1.5 mm tapered ball-nose bit never slams into sheer perimeter walls. Once downloaded, you can verify exact PNG bit depth and inspect watertight STL triangle bounds locally in your browser before touching hardwood, brass, or resin.

05

When an image-based heightmap generator is the wrong tool

This image to heightmap generator is not a GIS or geographic DEM terrain builder. The elevation values are inferred from a single 2D photograph, carry no GPS coordinates, and contain no surveyed metric altitude. A distant mountain ridge in a photo is simply farther from the lens than a foreground tree—not measured in meters above sea level.

Likewise, mirrors, transparent glass, harsh cast shadows, and hidden back faces cannot be reconstructed with certainty from one frame. Use LiDAR or DEM datasets for real-world terrain; use DepthCarve when you need a controllable, fabrication-ready heightmap derived from photography, artwork, or product shots, and inspect the free 3D preview first.

Five bounded stages

A file moves forward only after it earns approval

  1. 1

    Inspect

    Check source contrast, edge detail, border clutter, and resolution before an AI call is trusted.

  2. 2

    Shape

    Adjust the subject mask, background, curve, detail, smoothing, taper, frame, and real dimensions for free.

  3. 3

    Check

    Compare beam or tool size, tonal slices, slope, base, manifold topology, and bounding box with the real setup.

  4. 4

    Approve

    Approve one successful production job only after the free 2D and 3D previews earn acceptance.

  5. 5

    Transfer

    Download one verified ZIP and inspect it in LightBurn, CAM, or a slicer before committing production material.

Choose by next action

The formats are not interchangeable

OutputUse it forIt does not guaranteeCost
8-bit PNGPreview, mask, laser and compositing testsPhysical scale or machine settingsFree
Compatible 16-bit PNGCompatibility with grayscale depth workflowsAdditional source precisionFree
Preview STLLow-cost scale and import checksPrintability, tool reach, or safe G-codeFree
Production job bundleRaw EXR, true 16-bit pair, STL, preview and manifestHidden surfaces or certified metric truth1 credit

Straight answers

Questions before you commit a file

What is the difference between a depth map and a 16-bit heightmap?

A depth map measures relative distance from a camera, while a heightmap maps surface elevation above a flat plane. DepthCarve estimates camera depth from your photo first, then lets you remap, flatten the background, and invert it into a true 16-bit heightmap PNG (65,536 levels) or watertight STL.

How do I convert an image to a heightmap for CNC relief carving?

Upload a well-lit, tightly cropped photo, generate the free AI depth preview, flatten the background, add 1–2 passes of smoothing plus a gentle edge taper, and check the 3D relief side view. Then export either the true 16-bit heightmap PNG for Vectric Aspire, Carveco, or LightBurn, or a closed STL for VCarve and Fusion 360.

Do I really need a true 16-bit heightmap instead of an 8-bit grayscale PNG?

Yes whenever the receiving surface is carved cleanly or finely subdivided. An 8-bit PNG only has 256 gray steps (~23.5 µm per step on a 6 mm relief), causing visible stair-stepping on smooth faces and curves. A true raw-float 16-bit heightmap provides 65,536 levels (~0.09 µm per step) and eliminates quantization banding.

How do I make the background flat on a CNC relief heightmap?

Use the background flattening slider together with the subject threshold and black-point controls to push distant scenery to pure zero elevation. Adding a small border taper also drops the outer frame cleanly to the base plane so CNC finishing passes do not plunge into vertical walls.

Can this image to heightmap generator create Unreal Engine or GIS terrain?

It can create an image-derived 16-bit grayscale heightmap for Unreal Engine, Unity, or Blender displacement materials, but it does not produce surveyed geographic coordinates or real-world DEM elevation data. Use GIS elevation sources when real-world terrain accuracy is required.

Does white mean high or low on the exported heightmap?

By default, white represents the highest raised peak and black represents the lowest flat base—matching standard Vectric Aspire, Carveco, Blender, and positive bas-relief conventions. You can flip the Invert toggle in the workbench, and every approved production ZIP includes both forward and inverse true 16-bit PNGs.

How does this image to heightmap converter differ from exporting straight to STL?

Exporting a heightmap PNG hands the grayscale elevation field to shaders, sculptors, LightBurn 3D Slice, or CAM programs that build relief internally, while exporting an STL via Heightmap to STL resamples that same approved field into a closed mesh with walls, base thickness, and millimeter dimensions.

Preview the idea free. Pay 1 credit for production output.

Start without an account—3 free AI previews per day. Unlock raw EXR, true 16-bit PNG heightmaps, and watertight STL with the $12 Maker Pack (30 credits) or $39 Shop Pack (150 credits).