Project Page | Video | Paper | Demo | Data
This repository contains the source code for creating and viewing OmniPhotos – a new approach for casual 360° VR photography using a consumer 360° video camera.
OmniPhotos: Casual 360° VR Photography
Tobias Bertel, Mingze Yuan, Reuben Lindroos, Christian Richardt
ACM Transactions on Graphics (SIGGRAPH Asia 2020)
The quickest way to try out OmniPhotos is via our precompiled demo (970 MB). Download and unzip to get started. Documentation for the precompiled binaries, which can also be downloaded separately (392 MB), can be found here.
For the demo to run smoothly, we recommend a recently updated Windows 10 machine with a discrete GPU.
We provide 31 OmniPhotos for download:
- 9 preprocessed datasets that are ready for viewing (3.2 GB zipped, 12.8 GB uncompressed)
- 31 unprocessed datasets with their input videos, camera poses etc.; this includes the 9 preprocessed datasets (17.4 GB zipped, 17.9 GB uncompressed)
Note: A few of the .insv files are missing for the 5.7k datasets. If you need to process these from scratch (using the insv files) these files can be found here.
OmniPhotos are viewed using the "Viewer" executable, either in windowed mode (default) or in a compatible VR headset (see below). To run the viewer executable on the preprocessed datasets above, run the command:
Viewer.exe path-to-datasets/Preprocessed/
with paths adjusted for your machine. The viewer will automatically load the first dataset in the directory (in alphabetical order) and give you the option to load any of the datasets in the directory.
If you would like to run the viewer with VR enabled, please ensure that the firmware for your HMD is updated, you have SteamVR installed on your machine, and then run the command:
Viewer.exe --vr path-to-datasets/Preprocessed/
The OmniPhotos viewer can also load a specific single dataset directly:
Viewer.exe [--vr] path-to-datasets/Preprocessed/Temple3/Config/config-viewer.yaml
If you would like to preprocess additional datasets, for example "Ship" in the "Unprocessed" directory, run the command:
Preprocessing.exe path-to-datasets/Unpreprocessed/Ship/Config/config-viewer.yaml
This will preprocess the dataset according to the options specified in the config file. Once the preprocessing is finished, the dataset can be opened in the Viewer.
For processing new datasets from scratch, please follow the detailed documentation at Python/preprocessing/readme.md.
The OmniPhotos Preprocessing
and Viewer
applications are written in C++11, with some Python used for preparing datasets.
Both main applications and the included libraries use CMake as build system generator. We recommend CMake 3.16 or newer, but older 3.x versions might also work.
Our code has been developed and tested with Microsoft Visual Studio 2015 and 2019 (both 64 bit).
- GLFW 3.3 (version 3.3.1 works)
- Eigen 3.3 (version 3.3.2 works)
- Please note: Ceres (an optional dependency) requires Eigen version "3.3.90" (~Eigen master branch).
- OpenCV 4.2
- OpenCV 4.2 includes DIS flow in the main distribution, so precompiled OpenCV can be used.
- OpenCV 4.1.1 needs to be compiled from source with the
optflow
contrib package (for DIS flow). - We also support the CUDA Brox flow from the
cudaoptflow
module, if it is compiled in. In this case, tickUSE_CUDA_IN_OPENCV
in CMake.
- OpenGL 4.1: provided by the operating system
- glog (newer than 0.4.0 master works)
- gflags (version 2.2.2 works)
- DearImGui 1.79: included automatically as a git submodule.
- GL3W
- JsonCpp 1.8.0: almalgamated version
- nlohmann/json 3.6.1
- OpenVR 1.10.30: enable with
WITH_OPENVR
in CMake. - TCLAP
- tinyfiledialogs 3.3.8
- Ceres (with SuiteSparse) is required for the scene-adaptive proxy geometry fitting. Enable with
USE_CERES
in CMake. - googletest (master): automatically added when
WITH_TEST
is enabled in CMake.
Please cite our paper if you use this code or any of our datasets:
@article{OmniPhotos,
author = {Tobias Bertel and Mingze Yuan and Reuben Lindroos and Christian Richardt},
title = {{OmniPhotos}: Casual 360° {VR} Photography},
journal = {ACM Transactions on Graphics},
year = {2020},
volume = {39},
number = {6},
pages = {266:1--12},
month = dec,
issn = {0730-0301},
doi = {10.1145/3414685.3417770},
url = {https://richardt.name/omniphotos/},
}
We thank the reviewers for their thorough feedback that has helped to improve our paper. We also thank Peter Hedman, Ana Serrano and Brian Cabral for helpful discussions, and Benjamin Attal for his layered mesh rendering code.
This work was supported by EU Horizon 2020 MSCA grant FIRE (665992), the EPSRC Centre for Doctoral Training in Digital Entertainment (EP/L016540/1), RCUK grant CAMERA (EP/M023281/1), an EPSRC-UKRI Innovation Fellowship (EP/S001050/1), a Rabin Ezra Scholarship and an NVIDIA Corporation GPU Grant.