C++ implementation for the viewer of SNeRG (Baking Neural Radiance Fields for Real-Time View-Synthesis).
The third-party libraries are organized as git submodules.
Therefore, be sure to use the --recursive
flag when
cloning the repository:
$ git clone --recursive https://github.com/goddice/snerg-viewer-cpp.git
If you accidentally clone the repo without using --recursive
, run the
following command to also fetch the dependencies:
$ git submodule update --init --recursive
Steps of running the code:
$ python -m pip install --user -r requirements.txt
$ python scripts/download_data.py
$ cmake -S . -B build
$ cmake --build build --config Release
Run it (e.g.: ./build/app models/drums)
For the model training and the original webgl viewer, please refer to the official SNeRG repo: https://github.com/google-research/google-research/tree/master/snerg
- Fix rotation issue
- Support resize
- Support Android
- Support iOS
- Support WebAssembly