A PowerShell script that automates the full photogrammetry pipeline in RealityScan 2.1 — from raw images to exported 3D mesh (OBJ, FBX) and COLMAP camera registration.
Runs 6 steps sequentially via RealityScan's CLI:
| Step | Action |
|---|---|
| 1/6 | Align images + save project |
| 2/6 | Reconstruct mesh (High Quality) |
| 3/6 | Unwrap UV |
| 4/6 | Calculate texture |
| 5/6 | Export OBJ + FBX |
| 6/6 | Export COLMAP camera registration |
The COLMAP export step uses Win32 API (user32.dll) to automatically click the "Export all" dialog that RealityScan pops up — no manual interaction needed.
- Windows 10/11
- RealityScan 2.1 installed at the default path:
C:\Program Files\Epic Games\RealityScan_2.1\RealityScan.exe - PowerShell 5.1 or later (built into Windows)
.\run_pipeline_rc_progress.ps1 -ImagesFolder "C:\path\to\your\images".\run_pipeline_rc_progress.ps1 -ImagesFolder "D:\Scans\TreeStump\images"Given -ImagesFolder "D:\Scans\TreeStump\images", the script creates:
D:\Scans\TreeStump\
├── images\ ← your input photos
├── project\
│ └── images.rcproj ← RealityScan project file
├── export\
│ ├── images.obj ← 3D mesh (OBJ)
│ ├── images.mtl
│ ├── images.fbx ← 3D mesh (FBX)
│ └── images_*.png ← texture maps
└── colmap_export\
└── cameras.txt ← COLMAP camera registration
- The script aborts on failure at steps 1–5. Step 6 (COLMAP export) will warn but not abort if the dialog is not found within 120 seconds — you can manually click "Export all" in that case.
- If you have RealityScan installed at a different path, edit line 6 of the script:
$RC = "C:\Program Files\Epic Games\RealityScan_2.1\RealityScan.exe"
- Each step opens and closes RealityScan separately, so the full pipeline may take several minutes depending on image count and hardware.
MIT