Blender Photogrammetry Importer
This repository contains a Blender addon to import reconstruction results of several libraries.
Compatibility
The latest release of the addon is currently compatible with Blender 3.1.2 onwards. For older Blender versions you might find a suitable release here.
Supported Reconstruction Libraries and Point Cloud Data Formats
Supported libraries (data formats):
- Agisoft Metashape (VisualSfM NVM) 1
- Colmap (Model folders (BIN and TXT), dense workspaces, NVM, PLY)
- Meshroom (MG, JSON, SfM, PLY)
- MVE (Workspaces) 1
- Open3D (JSON, LOG, PLY) 1
- OpenSfM (JSON)
- OpenMVG (JSON, NVM, PLY)
- Regard3D (OpenMVG JSON)
- VisualSFM (NVM) 1
In addition, the addon supports some common point cloud data formats:
- Polygon files (PLY) 2
- Point Cloud Library files (PCD) 2
- LASer files (LAS) 2,3
- LASzip files (LAZ) 2,3,4
- Simple ASCII point files (ASC, PTS, CSV) 2
1 Requires Pillow to read image sizes from disk. 2 Requires Pyntcloud for parsing. 3 Requires Laspy for parsing. 4 Requires Lazrs for parsing.
Getting Started
- Documentation
- Installation Instructions
- Troubleshooting
- Customize Import/Export Options
- Examples
- Import Data
- Export Data
- Adjust Results (Scale Cameras and Points)
- Ensure Camera and Point Alignment
- Point Cloud Visualization and Rendering
- Addon Usage with Python
- Extending the Addon
- Contribution
- Recent features / Changelog
Paper
If you use this library for scientific purposes, please consider to cite the following paper.
@article{PhotogrammetryForModeling2021,
title={A Photogrammetry-based Framework to Facilitate Image-based Modeling and Automatic Camera Tracking},
author={Bullinger, Sebastian and Bodensteiner, Christoph and Arens, Michael},
booktitle={International Conference on Computer Graphics Theory and Applications},
year={2021}
}
Example
This repository contains an example Colmap model. The following image shows the imported camera poses, image planes and point cloud in Blender's 3D view. The input images of the Colmap model are located here: https://github.com/openMVG/ImageDataset_SceauxCastle.
The addon computes an animated camera with corresponding background images from the reconstructed camera poses.
There is also an import option that allows to interpolate the reconstructed camera poses.
In addition, the addon allows to import meshes contained in the workspaces of specific libraries. Manually imported meshes can also be aligned with the corresponding reconstruction by following the instructions here.
The addon offers two options to represent the point clouds (OpenGL and Geometry Nodes). The addon provides different panels to adjust the appearance and to render these point clouds - see Point Cloud Visualization and Rendering. The following images show an example represented with OpenGL (top) and Geometry Nodes (bottom).
In addition, the addon allows to visualize depth maps (reconstructed with Colmap or MVE) as point clouds.