Skip to content
github-actions[bot] edited this page Nov 23, 2026 · 35 revisions

Next a usage example of the available modules is presented. The walkthrough uses the Sceaux Castle images, reconstructed end-to-end with the native OpenMVS pipeline — sparse Structure-from-Motion (CreateStructure), dense reconstruction, meshing, refinement and texturing — without any external SfM dependency. If you prefer another SfM solver (OpenMVG, COLMAP, Metashape, Polycam, …), the corresponding importers are documented in the Convert SfM scene sections further down. All output presented here is the original output obtained automatically by the OpenMVS pipeline, with no manual manipulation of the results. Pre-built binaries for Windows x64 (with and without CUDA), Ubuntu x64 and macOS arm64 are attached to every tagged release on the OpenMVS releases page.

All OpenMVS binaries support some command line parameters, which are explained in detail if executed with no parameters or with -h.

Extract Keyframes from a Video

When starting from video (for example a 360° tour, a drone flyover, or any hand-held capture), the ExtractKeyframes module selects a stable, well-spaced subset of frames and writes them out together with a native .sfm project containing the initial calibration, per-frame features and the pairwise matches discovered during keyframe selection — so the next step does not have to redo any of that work:

ExtractKeyframes -i input.mp4 -o scene_keyframes.sfm -d keyframes

Notable options:

  • --overlap-threshold (default 0.85) — minimum feature-overlap kept between two consecutive keyframes.
  • --detector-type (SIFT | AKAZE | ORB | SIFTGPU, default SIFTGPU when OpenMVS is built with SiftGPU, SIFT otherwise) — feature detector used for the overlap estimation.
  • --focal-length (default 0, auto-calibrate) — known focal length in pixels; the module will auto-calibrate from the fundamental matrices when left at 0.
  • --camera-type (0 pinhole, 1 spherical, default 0) — set to 1 for equirectangular 360° video.
  • --cubemap-faces (4, 6, 8, 12 or 20, default 6) — number of tangent-pinhole faces used internally for feature extraction on spherical frames.
  • --blur-size (default 0, disabled) — Gaussian kernel applied to the optical-flow image to reject motion-blurred frames.
  • --image-format (jxl | jpg | png, default jxl) — file type of the keyframe images written to the output directory.
  • --export-timestamps-csv <file> — also write a filename,time CSV with each keyframe's image file name and its time in the video in seconds (the video backend's frame time stamp, which also follows variable frame rate video), for tools that cannot read the .sfm project.
  • --refine-calibration (0 disabled, 1 two-view, 2 three-view, 3 view-graph; default 3) — level of intrinsic refinement performed during matching.

Running the native SfM step (see next section) on the resulting .sfm produces the sparse reconstruction shown below — the keyframe camera frustums and the triangulated sparse cloud are visualized together:

CreateStructure -s scene_keyframes.sfm -o scene.sfm --export-mvs scene.mvs --extract-colors 1

keyframe-driven sparse reconstruction

Sparse Reconstruction with Native SfM

From either the keyframes produced above or any folder / semicolon-separated list of still images, the CreateStructure module performs a full incremental SfM and writes a sparse reconstruction. The --export-mvs option additionally writes a ready-to-consume .mvs project for the downstream dense-reconstruction step, and --extract-colors samples the input images to attach a per-point color to the sparse cloud (needed for any sparse-cloud visualization):

CreateStructure -s images_folder -o scene.sfm --export-mvs scene.mvs --extract-colors 1

The exported project references the original images: distorted cameras are written with their Brown distortion and undistorted by the MVS modules when they load the images. --undistort-extension .png (or .jpg, .jxl) writes undistorted copies into an undistorted folder instead, with --undistort-alpha choosing how much of the image they keep.

native sparse reconstruction

When the input is a .sfm produced by ExtractKeyframes or CreateStructure with feature extraction and matching only, point --source at that file directly: CreateStructure loads the saved features and pair matches and skips re-detection.

Notable options:

  • --detector-type (default SIFTGPU when built with SiftGPU, SIFT otherwise) — feature detector; same choices as above.
  • --match-mode (-1 skip, 0 exhaustive, 1 vocabulary, 2 sequential, 3 known-poses; default 1) — pairwise-matching strategy.
  • --match-sequence-overlap (default 3) — sequence overlap when using sequential matching.
  • --vocab-max-pairs (default 50) — target pairs per image for vocabulary-tree and known-poses matching (with --match-verification-feedback, the default, part of this budget is re-invested in pairs suggested by the verified matches).
  • --import-poses-file (default poses.csv) with --import-poses-mode (0 none, 1 poses+intrinsics, 2 poses only, 3 positions only) — import camera data from an OpenMVS pose .csv or a Polycam-style frames.json; modes 1 and 2 select the known-poses workflow described below.
  • --known-poses-convention (auto | arkit | opencv, default auto) — camera-axes convention of the poses in a frames.json.
  • --export-poses-csv — write the recovered poses alongside the scene.
  • --export-pose-quality — estimate the per-image pose covariance during the final bundle adjustment and write a per-image quality report to CSV: 1-sigma camera-position accuracy per axis (with the full 3x3 covariance), rotation accuracy per axis in degrees, observation counts and the a-priori GPS accuracy. On a GPS-aligned scene the position values are ENU meters (East/North/Up); with GPS priors enabled they are absolute accuracies, otherwise relative to a reference (datum) image. The report can be visualized as per-camera error ellipsoids by the Viewer (--pose-quality-file).
  • --align-gps-threshold (default 5 m, 0 disabled) — rigidly align the reconstruction to the image GPS metadata (metric ENU frame).
  • --gps-position-weight / --gps-position-weight-z (default 0, disabled) — after GPS alignment, refine the reconstruction with a bundle adjustment that constrains each camera to its GPS position (weighted by the per-image accuracy metadata); this anchors the global position, orientation and scale to the GPS data.
  • --import-openmvg-dir / --export-openmvg-dir — interoperate with OpenMVG feature files.
  • --focal-length (default 0, disabled) and --default-focal-ratio (default 1.2, used as ratio * max(width,height) when the focal length is unknown) — intrinsic overrides.
  • --extract-colors (default false) — attach image colors to the reconstructed sparse points.
Finetune from Known Poses

When the camera poses are already known — an AR capture (ARKit/ARCore, Polycam), a drone flight log, or a previous reconstruction — CreateStructure can skip pose estimation and instead refine the poses it was given, producing a densification-ready sparse reconstruction in the input coordinate frame. Point --import-poses-file at the poses and pick a mode that brings in the extrinsics (1 or 2):

# poses only (ARKit phone capture, intrinsics taken from EXIF)
CreateStructure -w . -s ../keyframes/images --import-poses-file ../frames.json --import-poses-mode 2 --export-mvs scene.mvs --extract-colors 1 -v 3

# poses + intrinsics (DJI drone survey, intrinsics taken from the file)
CreateStructure -w . -s ../images --import-poses-file ../frames.json --import-poses-mode 1 --export-mvs scene.mvs --extract-colors 1 -v 3

Run these from a working subfolder of the dataset (-w); the other paths are relative to it.

Pose file formats. The extension selects the parser:

  • .csv — the OpenMVS pose CSV, the same schema --export-poses-csv writes: filename,fx,fy,cx,cy,qx,qy,qz,qw,Cx,Cy,Cz,score per row. Rows are matched to the images by file-name stem (case-insensitive); ambiguous stems are rejected, and a row whose score is 0 or negative explicitly marks that image as unposed.
  • .json — a Polycam-style frames.json: an array of {name, transform[16], params?} entries, where transform is a column-major 4x4 camera-to-world matrix and the optional params block holds an OPENCV camera model (w, h, fx, fy, cx, cy, k1, k2, p1, p2). The intrinsics may be declared for a different resolution than the images on disk and are rescaled automatically. Entries are matched to the images by file name — the full name first, then the stem, both case-insensitive. Ambiguous image names and duplicate entries for one image are rejected.

Images with no entry are simply left unposed and are registered by the usual resection at the end of the pipeline; if fewer than 20% of the images end up posed, the run stops and lists the unmatched names rather than quietly degrading into a from-scratch reconstruction — the gate catches a file-name mismatch between the poses file and the images, while partially covered captures are legitimate.

Modes. --import-poses-mode 1 imports the intrinsics (when the file carries them) and the poses, 2 imports the poses only and leaves the intrinsics to EXIF, 3 imports only the camera positions and does not select this workflow. Note that mode 1 previously imported the intrinsics without the poses, and mode 2 the poses without the intrinsics — no mode imported both. They now do what their names say, which is a behavior change if you were relying on the old, undocumented meaning.

Camera-axes convention. A frames.json does not record whether its transform uses the ARKit/OpenGL camera axes (X right, Y up, Z backward) or the OpenCV ones (X right, Y down, Z forward), and the two differ by a 180° rotation about the camera X axis — pick wrong and every optical axis is reversed. The default --known-poses-convention auto decides after matching, by checking the imported relative rotations against the ones recovered from the images themselves; when the evidence is inconclusive the run stops and asks you to pass arkit or opencv explicitly. EXIF-rotated portrait images are handled automatically.

What changes compared to a normal run:

  • The match mode switches to 3 (known-poses) unless you passed --match-mode yourself: pairs between posed images are chosen geometrically. If the pose file is incomplete, vocabulary retrieval also supplies pairs touching the unposed images so the final resection can register them. The substitution is logged at startup.
  • The reconstruction is similarity-aligned back to the imported pose frame instead of to GPS — preserving the input frame is the point of this mode, so the prior-pose alignment takes precedence over --align-gps-threshold. This also anchors the scale that a non-GPS bundle adjustment leaves free. Straight-line captures (a corridor walk, a single flight line), whose camera centers cannot constrain the roll about the trajectory, are aligned using the imported camera rotations for the rotation part.

At -v 3 the final alignment reports how far the finetune actually moved the cameras — median and maximum position delta (in the units of the input poses) and median and maximum rotation delta in degrees — which is the quickest sanity check that the import was interpreted correctly. If that final similarity cannot be estimated, the run warns and the output stays in the refined (arbitrary-gauge) frame instead of being discarded.

End-to-End Pipeline: Video → Textured Mesh

A complete reconstruction starting from a 360° video file:

ExtractKeyframes -i pano.mp4 -o scene_keyframes.sfm -d frames --camera-type 1
CreateStructure -s scene_keyframes.sfm -o scene.sfm --export-mvs scene.mvs --extract-colors 1 --spherical-export cubemap
DensifyPointCloud scene.mvs
ReconstructMesh scene_dense.mvs -p scene_dense.ply
TextureMesh scene_dense.mvs -m scene_dense_mesh.ply

spherical untextured mesh spherical reconstruction result

Equirectangular images and video are processed natively by the SfM stage. The .mvs export writes them as native spherical cameras, whose depth-maps DensifyPointCloud estimates and fuses natively (CPU, CUDA or Metal; the mesh modules do not support them). CreateStructure --spherical-export cubemap, used in the example above because it continues to a textured mesh, writes instead each panorama as an automatic six-face cube-map of pinhole views, which the downstream MVS modules consume as they are — no manual flat-panorama unwrapping is needed.

MvgMvsPipeline.py — end-to-end one-shot helper (optional)

The bundled script chains a sparse SfM frontend with the full OpenMVS dense → mesh → refine → texture pipeline in a single command. Three frontends are supported — the native OpenMVS CreateStructure (default), OpenMVG (incremental or global), and COLMAP — selectable through --preset. The script auto-discovers CreateStructure / ReconstructMesh in PATH (OpenMVS), openMVG_main_SfMInit_ImageListing (OpenMVG) and colmap (COLMAP), and only prompts for the folders it cannot find and that are actually needed by the chosen preset — so the default native run does not require OpenMVG or COLMAP to be installed.

Default run — native OpenMVS SfM followed by the full OpenMVS dense / mesh / refine / texture pipeline. When <input> is a single video file (.mp4, .mov, .mkv, .avi, .webm, …) instead of an image folder, the script automatically prepends an ExtractKeyframes step and points CreateStructure at the resulting scene_keyframes.sfm so the keyframe-time features and matches are reused:

python MvgMvsPipeline.py <images_folder_or_video> <output_folder>

Use --preset to switch frontend or skip stages. The built-in presets are:

Preset Frontend → backend
NATIVE (default) Native OpenMVS CreateStructure → OpenMVS dense / mesh / refine / texture
SEQUENTIAL OpenMVG incremental SfM → OpenMVS dense / mesh / refine / texture
GLOBAL OpenMVG global SfM → OpenMVS dense / mesh / refine / texture
COLMAP_MVS COLMAP feature extraction / matching / mapper / undistort → OpenMVS dense / mesh / refine / texture
COLMAP COLMAP only, stopping after image undistortion
MVG_SEQ / MVG_GLOBAL OpenMVG only, stopping after openMVG_main_openMVG2openMVS
MVS OpenMVS only — assumes a scene.mvs already exists in <output_folder>/mvs/
MVS_SGM OpenMVS Semi-Global Matching densification only

Examples:

# Native SfM + full OpenMVS backend (default)
python MvgMvsPipeline.py <images_folder> <output_folder>

# Drive the full chain through COLMAP instead of the native SfM
python MvgMvsPipeline.py <images_folder> <output_folder> --preset COLMAP_MVS

# Drive the full chain through OpenMVG (incremental SfM)
python MvgMvsPipeline.py <images_folder> <output_folder> --preset SEQUENTIAL

Per-step options can be appended with --<step-number> <key> <value> (drop the - prefix from the underlying option name). For example, set the OpenMVG feature describer to HIGH on 8 threads, and the matcher to ANNL2:

python MvgMvsPipeline.py <images_folder> <output_folder> --preset SEQUENTIAL --1 p HIGH n 8 --2 n ANNL2

The dense steps 18-21 split a scene that does not fit this machine's memory into sub-scenes (see Large Scenes); --sub-scene-memory off disables the split, a number of GB sets the budget.

For the full step / preset / passthrough reference, invoke -h:

python MvgMvsPipeline.py -h
Convert SfM scene from COLMAP

After COLMAP finishes calibrating and stitching the input images, the undistorted cameras and images must be created:

colmap image_undistorter --image_path <images_path> --input_path sparse/0 --output_path dense --output_type COLMAP

The undistorted camera poses and images, plus the sparse point-cloud generated by COLMAP can be imported by OpenMVS into project scene.mvs:

InterfaceCOLMAP -i dense -o scene.mvs --image-folder dense/images
Convert SfM scene from OpenMVG

After all camera views are calibrated and stitched, OpenMVG will generate by default the sfm_data.bin file containing camera poses and the sparse point-cloud. Using the exporter tool provided by OpenMVG, we convert it to the OpenMVS project scene.mvs:

openMVG_main_openMVG2openMVS -i sfm_data.bin -o scene.mvs -d scene_undistorted_images

The directory made with the -d switch will store the undistorted images.

Convert SfM scene from Metashape / iTwin Capture Modeler and Polycam

OpenMVS has importers for other well known SfM solutions, like Metashape (aka Photoscan) / iTwin Capture Modeler (aka ContextCapture) using the BlocksExchange format, and Polycam using the raw export scene.

Convert SfM scene from any other format

OpenMVS can process any scene, calibrated by any Structure-from-Motion solver, as long as it receives as input the camera poses, the sparse point-cloud and the corresponding undistorted images. All that needs to be done is to store this information in the MVS file format as described in Interface.h header file. This file is stand-alone, and can be copied as it is in the SfM solver code and use it directly to export the data in MVS format.

A typical sparse point-cloud and camera poses obtained by the previous steps will look like this:

sparse point-cloud

Viewer module can be used to visualize any OpenMVS scene file (MVS project, SFM sparse reconstruction, or individual DMAP depth-map) or geometry file (PLY, OBJ, OFF, GLTF, GLB). The viewer expects the input file either on the command line or to drag & drop it inside the viewer window. Viewer is used to create all the screenshots below.

A pose-quality report produced by CreateStructure --export-pose-quality can be loaded alongside the scene with --pose-quality-file quality.csv: each camera gets a translucent shaded error ellipsoid (shape and orientation from its 3x3 position covariance, colored blue = best localized to red = worst), a magnification slider in the render settings scales the 1-sigma radii, and selecting a camera shows its per-axis position and rotation accuracy. Report rows are matched to scene images by ID, which the .mvs export preserves from the SfM scene.

The output of each OpenMVS module is displayed by default both on the console and stored in a LOG file. Example of the generated LOG files can also be found at OpenMVS_sample.

Dense Point-Cloud Reconstruction (optional)

If scene parts are missing, the dense reconstruction module can recover them by estimating a dense point-cloud, employing by default a Patch-Match approach:

DensifyPointCloud scene.mvs

The obtained dense point-cloud (please note the vertex colors are roughly estimated only for visualization, they do not contribute farther down the pipeline):

dense point-cloud

The densification module stores, along the dense scene in MVS format, also the depth-maps for every processed image in DMAP format. Viewer module can be used to visualize the DMAP files and export them as PLY point-clouds.

Two options are worth knowing about:

  • --postprocess-dmaps controls the depth-map confidence recalibration (see Modules), which replaces the raw photometric score with one that predicts whether a depth will survive fusion. The default (4) enables it only when the depth-maps are estimated on CUDA, where it runs fused into the last estimation iteration for about 3 ms per map; on the CPU it would cost a separate full-resolution pass, so pass 8 to force it on there.
  • --fusion-prior-weight keeps depths that lie on a locally coherent surface but are seen by too few views. The default (3) favours completeness and suits the usual pipeline where mesh reconstruction follows and removes the few extra outliers; use 2 when the dense point-cloud itself is the final deliverable.

dense point-cloud

Dense Point-Cloud Reconstruction using Semi-Global Matching (optional)

Alternatively, the dense reconstruction module can estimate a dense point-cloud using Semi-Global Matching (SGM) on the CPU: it matches each image against all its neighbor views at once to estimate its depth-map, then fuses the depth-maps into the final point-cloud:

DensifyPointCloud scene.mvs --fusion-mode -2

--fusion-mode -1 instead exports the disparity-maps of the rectified image pairs (.dimap).

Dense Point-Cloud Reconstruction using available depth-maps (optional)

The densification module can skip depth-maps estimation if these are known for certain images. In order to use pre-computed depth-maps, all you need to do is to store them in depthXXXX.dmap files, where XXXX is the ID of the image, using the very simple/portable format explained in Interface.h. Once depth-maps exported as DMAP files, simply run DensifyPointCloud as usual, and it will only estimate missing depth-maps, and continue by fusing them in a dense point-cloud.

Rough Mesh Reconstruction

The sparse or dense point-cloud obtained in the previous steps is used as the input of the mesh reconstruction module:

ReconstructMesh scene_dense.mvs -p scene_dense.ply

The obtained mesh:

rough mesh

Mesh Refinement (optional)

The mesh obtained either from the sparse or dense point-cloud can be further refined to recover all fine details or even bigger missing parts. Next the rough mesh obtained only from the sparse point-cloud is refined:

RefineMesh scene.mvs -m scene_mesh.ply -o scene_mesh_refined.mvs

The mesh before and after refinement:

rough mesh refined mesh

Similarly, the rough mesh obtained from the dense point-cloud can be refined:

RefineMesh scene_dense.mvs -m scene_dense_mesh.ply -o scene_dense_mesh_refined.mvs --scales 1 --max-face-area 16

The mesh before and after refinement:

rough mesh refined mesh

Mesh Texturing

The mesh obtained in the previous steps is used as the input of the mesh texturing module:

TextureMesh scene_dense.mvs -m scene_dense_mesh_refined.ply -o scene_dense_mesh_refined_texture.mvs

The obtained mesh plus texture:

textured mesh

Note that the triangles textured in orange (default) are not visible in any of the input images, and can be colored differently or removed.

Large Scenes: split into sub-scenes that fit this machine

A scene with many images or a large dense point-cloud can need more memory for the depth-map fusion, the mesh reconstruction and the refinement than the machine has. MvsScalablePipeline.py runs the whole dense chain — point-cloud, mesh, refined mesh and texture — and splits the scene only when it has to:

python MvsScalablePipeline.py scene.mvs
  1. the depth-maps of the whole scene are estimated (DensifyPointCloud --fusion-mode 1);
  2. the memory each stage needs is predicted from the depth-maps (DensifyPointCloud --sub-scene-memory): if the scene fits the memory available on this machine (less a 10% reserve, at least 2 GB), it is reconstructed whole, exactly as by the modules themselves; otherwise it is cut into boxes that each fit, written as subscenes/scene_XXXX.mvs;
  3. every box is fused, meshed and refined on its own, one after the other;
  4. the box point-clouds and meshes are merged (MvsMergeChunks.py: each box keeps what lies inside it) and the merged mesh is textured with all the images.

The results have the usual names: scene_dense.ply, scene_dense_mesh.ply, scene_dense_mesh_refined.ply and scene_dense_mesh_refined_texture.mvs (+ .ply and texture images).

Options:

option meaning
--memory auto|off|GB memory budget per sub-scene: auto (default) fits this machine, off never splits, a number of GB sets the budget, e.g. to leave room for other programs
--steps densify,mesh,refine,texture the stages to run (default all); without densify, the sub-scenes an earlier run wrote are reused
--densify "...", --mesh "...", --refine "...", --texture "..." extra options for that module, e.g. --densify "--resolution-level 0 --number-views 24"
--resume skip a stage whose output exists already (continue an interrupted run)
--bin <folder> the OpenMVS binaries, if they are not in PATH

MvgMvsPipeline.py runs its dense steps (18-21) through this script by default; --sub-scene-memory off restores the plain module calls, and a number of GB sets the budget.

The sub-scenes are not stitched: the merged mesh can show small seams where two boxes meet, so a scene that fits is never split. The split itself can also be run by hand, on depth-maps computed with --fusion-mode 1:

DensifyPointCloud scene.mvs --sub-scene-memory -1 -o subscenes/scene.mvs

where -1 fits this machine and a positive value is a budget in GB. The algorithm, its memory model and its validation are described in design/SceneSplit.md.

Exporting and Viewing Results

Each of the above commands also writes a PLY file that can be used with many third-party tools. The Viewer can additionally export the loaded MVS projects to PLY, OBJ or glTF (.glb). For batch / scripted export — including web-ready formats — use the TransformScene app:

TransformScene scene_dense_mesh_refined_texture.mvs --convert 1 --export-type glb     # → .glb
TransformScene scene_dense_mesh_refined_texture.mvs --convert 1 --export-type gltf    # → .gltf (text + bin sidecars)
TransformScene scene_dense.mvs                     --convert 1 --export-type potree  # → folder of Potree 2.0 tiles
glTF (mesh + point-cloud, ASCII or binary)

glTF is supported end-to-end for both meshes and point clouds, in both directions. Files with the .gltf extension are ASCII glTF (with binary buffers in sidecar files); .glb is the self-contained binary variant. Loading and saving auto-detect the extension and round-trip vertices, faces, vertex colors / normals (point clouds) and the diffuse texture map (textured meshes).

  • Library entry points: MVS::Mesh::LoadGLTF / MVS::Mesh::SaveGLTF (libs/MVS/MeshHalfMesh.cpp, delegating to halfmesh) and MVS::PointCloud::LoadGLTF / MVS::PointCloud::SaveGLTF (libs/MVS/PointCloud.cpp). Underlying serializer is the header-only tiny_gltf library.
  • App exposure: TextureMesh --export-type glb|gltf, TransformScene --export-type glb|gltf, and the Viewer (File ▸ Export…, or --export-type on the CLI). ReconstructMesh / RefineMesh also produce glTF when the output filename has a .gltf / .glb extension (the extension drives Mesh::Save's format dispatch, regardless of --export-type).
  • Drag-and-drop and Viewer -i scene.glb are both supported for inspection.
Potree (web-streamable point-cloud LOD octree)

Dense point-clouds can be exported to the Potree 2.0 out-of-core tile format — a multi-resolution octree (metadata.json + hierarchy.bin + octree.bin) consumable by the Potree web viewer. This format is point-cloud only; it is not produced from a mesh.

Trigger the export from TransformScene (or by saving a .potree-extension file from any program that calls PointCloud::Save):

TransformScene scene_dense.mvs --convert 1 --export-type potree

The resulting scene_dense.potree/ directory can be served and inspected in a browser with the bundled helper:

python scripts/python/potree_server.py scene_dense.potree --browser

The script starts a small static HTTP server on port 8080 (override with --port) and serves a self-contained HTML page that wires up Potree.js from a CDN, opens the cloud with EDL shading enabled, sets a 2M point budget and fits the camera to the data. Press Ctrl+C to stop.

The Viewer App

The Viewer is a full-featured interactive GUI for inspecting, editing and exporting OpenMVS projects. It doubles as a hub from which the MVS pipeline can be launched step-by-step on the currently loaded scene.

Launching

Viewer [--input-file|-i] scene.mvs

The input file (or any of the supported formats listed below) can be passed on the command line or dragged and dropped onto the viewer window at any time.

Supported input formats: .mvs (native scene), .sfm (native SfM project), .dmap (single depth-map), .ply, .obj, .gltf, .glb.

Viewer-specific CLI options:

  • --input-file, -i — project file containing cameras and geometry.
  • --geometry-file, -g — external mesh or point-cloud that overlays / replaces the scene geometry.
  • --layer-file, -l — additional scene or geometry file loaded as a separate layer, for inspecting or comparing multiple reconstructions side by side (repeat for multiple layers).
  • --output-file, -o — output filename for programmatic mesh export.
  • --export-type — export format override (ply or obj).
  • --max-memory — hard memory cap in MB (0 = unlimited).
  • --screenshot-file, -S — render the scene off-screen to this image file and exit, without opening the interactive window.
  • --compare-mode — enable swipe or split comparison for interactive use or scripted screenshots (requires at least two loaded layers).
  • --align-layers — align additional layers to the active layer from shared cameras before entering interactive or screenshot mode.
  • --view-file — optional viewpoint for the screenshot: a transform file of 12 or 16 whitespace-separated values, row-major, interpreted as a camera-to-world pose (columns are the camera X, Y, Z axes in world space, the last column is the camera center).
  • --view-camera — alternative viewpoint for the screenshot: index of a scene camera view point to use (-1 disables it). Ignored when --view-file is given.
  • --screenshot-show — which layers to render in the screenshot, as a string of flags: p point-cloud, m mesh, t textured, c cameras, w wireframe, b bounding-box, u UI (e.g. p, m, mt). When omitted the interactive defaults are kept.

GUI

The user interface is built on Dear ImGui and organized into menus, dockable panels and overlays:

  • File menu — Open / Save / Save As / Close / Export, plus screenshot capture (with or without UI visible).
  • View menu — toggles the Layers panel, Scene Info, Camera Info, Camera Controls, Selection, Render Settings, Bounding Box, Point Confidence, Point Observations, Console and the Performance / Workflow / Viewport / Selection overlays. The Layers panel opens by itself once a second layer is loaded.
  • Render toggles — one-key switches for Point-cloud, Mesh, Cameras, Wireframe, Textured, and Bounding-box visibility.
  • Workflow menu — launches the OpenMVS pipeline steps on the loaded scene: Estimate ROI, Densify, Reconstruct Mesh, Refine, Texture. Each opens a parameter panel with the corresponding module's options.
  • Help / About dialogs — F1 shows the complete in-app keybinding reference.

Mouse controls

The viewer supports two navigation modes, switched with Tab:

  • Arcball mode (default) — left-drag rotates around the focus point, middle-drag (or Ctrl + scroll) pans, scroll-wheel zooms.
  • First-person mode — W / A / S / D move the camera, left-drag looks around, scroll adjusts movement speed.

In selection mode (G), left-drag performs a rectangle pick and a single left-click selects or deselects points or faces — selected vertex indices are printed to the console. In the bounding-box editor (Shift+B) the 8 corner handles, 6 face handles and 3 rotation rings can be dragged directly in the viewport to resize, translate and orient the region of interest.

Keyboard shortcuts

File & app

  • Ctrl+O open · Ctrl+S save · Ctrl+Shift+S save as · Ctrl+X screenshot · F11 fullscreen · ESC close window · F1 help

Navigation

  • Tab switch arcball ↔ first-person · R reset view · ← / → step to previous / next camera pose · [ / ] previous / next active layer

Display toggles

  • P point cloud · M mesh · C cameras · W wireframe · T textured · B bounding box

Panels (Shift + letter)

  • Shift+A Scene Info · Shift+Q Camera Info · Shift+C Camera Controls · Shift+S Selection · Shift+R Render Settings · Shift+B Bounding-Box editor · Shift+P Point Observations

Tools

  • G toggle selection mode · Ctrl+B run ROI estimation

Headline features

  • Multi-scene layers. Several scenes or geometry files can be loaded at the same time as independent layers (-l on the command line, Ctrl+O or drag-and-drop) with per-layer visibility, solo, active selection and appearance controls in the View ▸ Layers panel; [ / ] cycle the active layer, on which the in-GUI pipeline and all editing tools operate.
  • Side-by-side compare. The Layers panel places each layer on side A or B of a vertical divider, in one of two modes: Swipe renders both sides with the same full-window camera separated by a draggable divider, so aligned scenes match pixel-exact across it, while Split shows two equal viewports with each scene centered in its own frustum. Camera movement is synchronized between the two sides by default; uncheck Sync Cameras to adjust each viewport's camera individually with the mouse over it. Align to Active moves every other layer onto the active one with a similarity transform estimated from cameras shared between the scenes (matched by photo file name, then by preserved SfM image ID; at least 3 shared cameras are required).
  • ROI editing. Press Shift+B to overlay an interactive oriented bounding box on the scene; drag the corner, face or rotation handles to define the region that subsequent pipeline stages will focus on. ROI can also be auto-estimated from the scene (Ctrl+B) or loaded from a file.
  • Camera trajectory colouring. In Camera Controls ▸ Camera Display Color, Sequence colours the cameras of the active layer along a Jet colormap by their index in the capture sequence — red at the start, blue at the end — making it easy to spot loop closures, gaps or ordering issues; Solid uses a single colour picked next to it. The last choice is remembered between sessions and applied to newly loaded layers. Cameras can be rendered as full frustums or as simple dots; the currently selected camera and its neighbours are highlighted distinctly.
  • Point observations. Select a point of a cloud that stores its views (e.g. a dense cloud) and press Shift+P: the Point Observations panel shows, for every view seeing the point, the image patch centered on its projection (red cross), cropped from the full resolution photo in the background. Equalized sizes every patch to cover the same surface around the point, Original shows every photo's pixels at the same magnification; Zoom sets the magnification and Sort by confidence orders the views by their fusion confidence. Hovering a patch shows the image name, pixel position, depth, footprint, confidence and angle to the normal; clicking it views the scene from that camera.
  • Camera-pose navigation. The left / right arrow keys step through the scene's registered views; Shift+Q pins a panel showing the selected camera's intrinsics and extrinsics.
  • Depth-map inspection. Load a .dmap file directly (command-line, Ctrl+O or drag-and-drop) to render the depth map as a coloured 3D surface; the viewer also exports depth maps to .ply for use in external tools.
  • In-GUI pipeline. The Workflow menu launches DensifyPointCloud, ReconstructMesh, RefineMesh and TextureMesh on the loaded scene without leaving the viewer, with the result live-reloaded once each step completes.
  • Export. File ▸ Export... opens a dialog that writes the current point-cloud and/or mesh to .ply, .obj or .glb; the format can also be forced with the --export-type CLI override. Screenshots can be captured to .png, .jpg or .jxl interactively with Ctrl+X, or non-interactively (off-screen, for reproducible documentation) with the --screenshot-file / --view-file command-line options described above.

Clone this wiki locally