Depth Maps in 3D

· · Regular & Ultra

The Make 3D (simple) accordion of Image to Depth Map turns a depth map into 3D: a point cloud saved as a PLY file, a mesh opened as the Loaded Mesh — rebuilt from that cloud, or a grid of quads textured with the photo, open at the back or closed into a solid for printing — and a normal map. One photo shows one side of the object, so every output is the side the photo shows (a closed back is flat). It works from a depth map made in the window, or straight from a picture that is already a depth map, such as a terrain's height map (below).

The Image to Depth Map window in the Sunset Amber theme after Make depth map, its Make 3D (simple) accordion open: Every pixel, Shape: surface-detail model (true proportions), Field of view at The model's camera with the camera's angle under it, Cut at steep edges, Surface detail in 3D, Fine forms: the normals, Micro detail in 3D, Remove specks, Save point cloud and Point cloud to Loaded Mesh, Back: open (the visible surface), the Mesh to Loaded Mesh button, and the Normal map part; the preview on the Depth map view of the character
The Make 3D (simple) accordion.

What the 3D is made from

The outputs are built from the models' own depth, not from the relief: the Relief Settings squash, round and shade the depth for a carved picture, which is no shape for a model. (The one thing taken from the relief is the small share of its finest texture that Micro detail in 3D lays on top.) What shapes the 3D is the background, the models, Run on and the detail — make the depth map again after changing them — and the settings in this accordion, which count the next time you press one of its buttons.

ControlWhat it doesDefaultRange
The point spacingHow many of the photo's pixels become points: Every pixel, Every 2nd pixel, Every 4th pixel or Every 8th pixel. Every pixel of a 2K photo is a million points or more; every 2nd is a quarter of that.Every 2nd pixel
The shapeWhere the depth comes from. Shape: surface-detail model (true proportions): the surface-detail model (MoGe-2) measures the figure in 3D and keeps its proportions — on test renders within about 7 %, where Depth Anything's depth was up to 5 times too deep. Shape: Depth Anything (the depth map's): the depth map's own. Without a surface-detail model Depth Anything's is used either way, and the accordion says so.Surface-detail model
Field of viewThe camera's angle across the photo's long side. Wider makes the shape flatter for its size, narrower makes it deeper. At 0 the slider reads The model's camera and uses the camera the model estimated; the line under it gives that camera's angle.0 (the model's camera)0 – 120°
Cut at steep edgesWhere the depth jumps — the outline, an arm in front of the body — the surface would be seen edge-on: faces turned further than this from the camera are cut there instead of joined by a wall. Lower cuts more. Real sides that the surface-detail model sees turning away are kept.80.0°30 – 89.9°
Surface detail in 3DHow strongly the surface-detail model's fine forms go into the point cloud and the mesh: 1 is their true proportion, higher exaggerates them, lower softens them. Needs a surface-detail model.1.000 – 6
The fine formsWhere the fine forms come from. Fine forms: the tiles' depth is the surface-detail model's own depth over the photo's tiles, which can show a faint cross-hatch (the model's grid and the tiles' seams). Fine forms: the normals rebuilds every form finer than the split below from the same model's normals, which have no such pattern. Needs a surface-detail model.The normals
Fine forms splitWith the normals: forms finer than this many pixels of the photo come from the normals, broader ones from the depth. 0 chooses automatically. Larger removes a coarser cross-hatch, but lets the normals, which come out a little flatter, shape more of the surface.0 (automatic)0 – 64 px
Micro detail in 3DHow much of the depth map's finest texture goes onto the point cloud and the mesh: 100 % is the depth map's own, 0 leaves it out. Low values add crispness; high ones turn shading in the photo into bumps.1 %0 – 100 %
Remove specksStray pieces covering fewer than this many of the photo's pixels are removed — what a depth jump's cut leaves behind. It counts the photo's pixels whatever the point spacing. 0 keeps everything.400 px0 – 5000 px

The outputs

ControlWhat it does
Save point cloud...The visible surface as points with their colours and normals, in a PLY file named after the image with _cloud added; the dialog starts in the depth map's own folder. MeshLab, CloudCompare, Blender and Vertexix open it.
Point cloud to Loaded MeshOpens that point cloud as the Loaded Mesh: a smooth surface is rebuilt through the points, as for a point-cloud scan — small gaps filled, the photo's colours as vertex colours — but trimmed to the points rather than closed, so it is only the side the photo shows. A cloud saved with Save point cloud... carries a mark that makes Vertexix rebuild it the same way when you open it later.
The backFor Mesh to Loaded Mesh. Back: open (the visible surface), the default, or Back: closed (a solid for printing): a flat back behind the figure and walls down to it from every open edge, so the mesh is watertight and can be printed; a gap cut at a depth jump becomes a tunnel through it. The point clouds always stay open.
Back thicknessWith a closed back: how far behind the figure's farthest point the flat back sits, in percent of the figure's height. 5 % by default, 0 to 50 %.
Mesh to Loaded MeshOpens the visible surface as the Loaded Mesh: a grid of quads (triangles only where the outline or a cut needs them), cut where the depth jumps, textured with the photo. Open at the back, as the photo shows nothing there, unless the back is set to closed.

While an output is being made its buttons wait, and Making the 3D model... shows under the accordion. If nothing is left to build, the status line says Nothing was left to make: the figure is empty, or every face was cut (raise Cut at steep edges, or check the mask).

The 3D view in the Crimson Flat theme after Mesh to Loaded Mesh: the character's visible surface as a dense quad mesh of 3.5 million quads, textured with its photo and turned to show its depth, standing on the grid
Mesh to Loaded Mesh: the photo's visible surface, textured, open at the back.

Opening as the Loaded Mesh

The two to Loaded Mesh buttons open their result exactly as File > Load... does. With a model already loaded, Load a New Model? asks first, as it always does: Load Mesh replaces the model, and with it any created topology, UV maps and baked textures; Cancel keeps it. The files — the mesh as an OBJ with its material and the photo as a PNG, the cloud as a PLY, named after the image — are written into the depth map's own folder in your Downloads, beside the depth map they were made from (What is saved, and where), so the next one made from the same depth map replaces them. A depth map you loaded rather than made has no such folder: its mesh goes to the image_depth folder of Vertexix's cache folder (%LOCALAPPDATA%\Vertexix\cache\image_depth in an installed copy) instead. From there it is an ordinary Loaded Mesh (see Loaded Mesh vs. Generated Mesh), ready to retopologize, UV and bake.

From a depth map you already have

When the picture loaded into Image to Depth Map has no colour, the window offers it as a depth map (Loading a picture), and until you make a depth map from it, Make 3D works from the picture itself. Its grey is a height: white is near, and even steps of grey are even steps of height. No model ran, so nothing says how deep it is or what lens took it: the shape, Surface detail in 3D, the fine forms and Micro detail in 3D are greyed out, and these controls take their place:

ControlWhat it doesDefaultRange
Invert (black is near)For a map that holds distances, with black near and white far. The image is turned over first, so a white background then counts as the black one.Off
Map heightHow tall white stands above black, in percent of the image's long side.20 %1 – 100 %
Smooth mapSmooths the map before it becomes a mesh, in image pixels, so a compressed or 8-bit image's blocks and stair-steps do not show on the surface. Higher also softens real detail; 0 leaves the map as it is.2.0 px0 – 16 px
Use the map as the mesh's textureFor Mesh to Loaded Mesh: the mesh wears the image itself, each pixel over the point it raised. Off, it is plain grey, which shows its shape best.Off

Field of view reads Straight on, no lens at 0: every pixel is raised straight out of the image, as a carving. Above 0 it is a lens of that angle across the long side, and what stands nearer comes out smaller. Cut at steep edges cuts the surface where the height jumps between neighbouring pixels instead of joining it with a wall; at the top of its range it is all one surface.

Which part of the image is the object: all of it when the Background mode is Keep it; otherwise the image's own transparency when it has some; otherwise black is the background, when enough of the image is black (a terrain with a few black pixels is not cut full of holes); otherwise all of it. An 8-bit map's terraces are smoothed out by themselves: a gentle slope stored in 256 levels comes out as the ramp it stood for, and nothing moves further than the file's own rounding, so ridges and cliffs stay where they are.

Tip

A terrain: load its height map, keep Field of view at 0, set Map height to how tall the land should stand, raise Smooth map if a compressed file shows blocks, and press Mesh to Loaded Mesh. With Back: closed (a solid for printing) it comes out as a printable block.

Normal map

The Normal map part of the accordion makes a normal map of the same surface the 3D outputs build — so their settings shape it too — with every normal in the model's own space: x towards the figure's left side, y up, z towards its front. The figure's left is the side its left hand is on. The dropdown says which way this picture looks at the figure, so that maps of the same figure from the front and from the left agree where they show the same place:

ControlWhat it does
The directionSeen from the front (0°) (the default), Seen from the figure's left (90°), Seen from the back (180°), Seen from the figure's right (270°), or Seen from another angle.
Camera headingWith another angle: the camera's angle round the figure, from the front towards the figure's left — 90 is its left side, 180 its back, 270 its right. 45° by default, 0 to 360°.
Save normal map...Writes the map: a 16-bit PNG (the default, named after the image with _normals added), or EXR or TIFF in 32-bit floats. It is stored as normal maps store them, each axis's −1 to 1 as 0 to 1, with the outline in the alpha.

The preview's Normals view shows the map over black: the side towards the figure's left is red, up is green, the front blue. It follows the settings that shape the surface a moment after you stop moving a slider, and the direction at once. The direction is not saved in presets, since it belongs to one picture. Normal maps can be made from a depth map you already have too.

The Image to Depth Map window in the Paper Light theme on the Normals view: the character's normal map over black, its front faces blue, the sides red and green; in the sidebar the Make 3D (simple) accordion open down to its Normal map part, Seen from the front (0 degrees), and the Save normal map button
The Normals view of a front view.