How to Turn a 2D Photo Into a Clean 3D Laser or CNC Relief
A depth map (also called a heightmap) translates a regular color photograph into pure elevation data: bright white pixels represent the highest points closest to the viewer, and pure black pixels represent the deepest recessed areas. Laser tools like LightBurn 3D Slice and CNC CAM suites like Vectric Aspire or Carbide Create Pro read these brightness levels to command Z-axis depth or multi-pass ablation layers.
Unlike naive desaturation filters — which mistakenly carve dark hair deep into a skull and raise white shirts higher than a nose — DepthCraft runs the Depth Anything V2 Small neural network locally inside your browser to estimate true 3D surface volume before encoding the heightmap.
Why True 16-Bit PNG Matters (and Aspire vs. VCarve Compatibility)
Standard web image editors export 8-bit PNGs with only 256 shades of gray. Across a 3–6 mm curved cheek, coin dome, or hardwood plaque, 256 steps create visible topographic stair-steps. DepthCraft encodes the AI's raw 32-bit floating-point depth field directly into a true 16-bit grayscale PNG (65,536 height levels).
Vectric software note: Vectric Aspire imports 16-bit grayscale PNG heightmaps
directly via Create Component from Selected Bitmap. Vectric VCarve Desktop and VCarve Pro
cannot import 16-bit heightmap bitmaps directly — instead, use our
Photo to 3D Bas-Relief STL Generator
to export a watertight .STL mesh and import it cleanly via Import a Component or 3D Model.
Quick Import Workflow by CAM & Laser Software
For full wattage tables, pass formulas, and ball-nose stepover math, see our LightBurn 3D Slice Guide and CNC Wood Bas-Relief Guide .
- LightBurn (Fiber / MOPA 3D Slice): Export 16-Bit PNG with the LightBurn 3D Slice preset. In Layer settings, select Image Mode → 3D Sliced, set 64–256 passes for 40 mm brass or aluminum coins, and schedule a light cleanup pass every 10–15 layers to clear oxidized dust.
- Vectric Aspire (16-Bit Bitmap): Import the 16-bit PNG, select it, and click Create Component from Selected Bitmap. Set shape height to 3–8 mm for plaques and apply 2 px of smoothing inside DepthCraft first to minimize ball-nose chatter.
- Vectric VCarve Desktop / Pro (STL Path): VCarve does not convert bitmaps to 3D models. Export
your relief from
Photo to 3D Bas-Relief STL
(it shares the exact same cached AI model) and import the
.STLdirectly. - Carbide Create Pro: Open the Model tab, choose Import Image, load the 16-bit PNG, set desired Z-height, and pair a 1/4" flat endmill roughing pass with a 1/8" or 1/16" tapered ball-nose finishing pass at 8–10% stepover.
- Diode & CO2 Lasers (Grayscale Wood / Acrylic): Raise Background Floor to 10–15% and set Surface Smoothing to 2 px so dark edges do not char during slow passes.
5 Controls That Make Your Relief Carve Cleaner
- Background Floor (Black Clip): Push busy room clutter down to pure black (8–20%) so your subject rises cleanly off a flat base plate without stray bumps.
- Live 3D Relief Inspector: Always tilt the 3D preview under raking light before exporting. Sharp noise spikes are immediately obvious in 3D even when they look harmless in 2D grayscale.
- Surface Smoothing (1–3 px): Physical laser spots and 1/16" ball-nose bits cannot resolve 1-pixel camera grain. Adding 2 px smoothing produces satin curves and reduces CNC runtime.
- Edge Vignette Fade (5–10%): Ramps the outer border smoothly to zero height so rectangular portraits blend naturally into wood plaques instead of leaving abrupt vertical cliffs.
- Start With Even Lighting: Soft front lighting without harsh flash shadows gives Depth Anything V2 the cleanest facial contours and coin geometry.
Frequently Asked Questions
- Why is a 16-bit grayscale PNG better than an 8-bit PNG for laser and CNC relief?
- An 8-bit grayscale image only has 256 brightness steps, which causes visible stair-stepping bands on curved faces, coins, and wood carvings. A true 16-bit grayscale PNG stores 65,536 height levels, allowing LightBurn 3D Slice, Vectric Aspire, and Carbide Create Pro to generate smooth Z-axis transitions without sanding away fine detail.
- Can Vectric VCarve Desktop or Pro import a 16-bit depth map PNG directly?
- No. Only Vectric Aspire supports creating a 3D component directly from a 16-bit grayscale bitmap. If you run Vectric VCarve Desktop or VCarve Pro, use our companion Photo to 3D Bas-Relief STL Generator to export a watertight .STL mesh and import it via Modeling → Import a Component or 3D Model.
- Why does the very first photo take 5–15 seconds to start, and do slider edits re-run the AI?
- On your first visit, your browser downloads the compact Apache 2.0 Depth Anything V2 Small ONNX weights once into local browser cache. Every photo afterward starts in a second, and adjusting Background Floor, Gamma, Smoothing, Invert, or the 3D Relief preview runs instantly in milliseconds from the cached 32-bit float depth field.
- Are my customer portraits or logos uploaded to a server?
- Never. All image decoding, ONNX AI inference via WebGPU/WASM, 3D relief previewing, and 16-bit PNG encoding run strictly inside your local browser tab. Your files never leave your computer.
- Can I sell brass coins, plaques, or CNC carvings made with DepthCraft?
- Yes. DepthCraft runs the Apache 2.0 licensed Depth Anything V2 Small model and claims zero rights or royalties over your exports. As long as you hold rights to the source photo, you can sell physical engravings and carvings commercially.
Workshop Supplies for 3D Relief & Coin Carving
Proven shop specs and hardware references commonly paired with these exports.
Tapered Ball-Nose End Mills (R0.5 & R1.0)
Solid carbide, 1/4" shank, 2-flute spiral upcut
Finishing passes on 3D STL bas-reliefs with minimal step-over ridges and high lateral strength.
Kiln-Dried Tight-Grain Hardwood Blanks
Hard Maple, Cherry, or Black Walnut, 19–25 mm surfaced
Holds sharp 3D contour detail without tear-out on fine portrait reliefs and carved medallions.
XYZ Touch Probe & Digital Calipers
Conductive aluminum probe block + 0.01 mm calipers
Repeatable Z-zero accuracy when switching from flat roughing end mills to tapered finishing bits.
Low-Profile T-Track Hold-Down Clamps
Anodized aluminum clamps with non-marring pads
Keep relief stock rigidly clamped below the gantry clearance plane during long 3D finishing toolpaths.
Disclosure: Hardware and material specifications listed above are independent workshop recommendations tested against standard LightBurn, Bambu Studio, PrusaSlicer, Cura, Vectric, and xTool workflows. Where external retailer links are provided, DepthCraft may earn a small affiliate commission at no extra cost to you. Always verify material safety sheets (SDS) before lasering or machining.