Skip to content

A 3D Gaussian Splatting Viewer App written in Rust using wgpu and egui.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

LioQing/wgpu-3dgs-viewer-app

Repository files navigation

...written in Rust using wgpu and egui.

Github Pages CI

Getting started

This viewer app is built for 3D Gaussian Splatting. It supports the PLY file format from the 3D Gaussian Splatting for Real-Time Radiance Field Rendering research paper.

The app uses WebGPU to render the model, so it supports most of the GPU backends.

Note

To use the web version, you need a browser that supports WebGPU. Please refer to the WebGPU Implementation Status for more information.

Running the app

You can run the app on the web by visiting lioqing.com/wgpu-3dgs-viewer-app/.

You may also run the app natively by building it from source.

Demo

Demo.mp4

Development

Native

Make sure you are using the latest version of stable rust by running rustup update.

cargo run --release

On Linux you need to first run:

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev

On Fedora Rawhide you need to run:

dnf install clang clang-devel clang-tools-extra libxkbcommon-devel pkg-config openssl-devel libxcb-devel gtk3-devel atk fontconfig-devel

Web locally

We compile to WASM and use Trunk to build for web target.

  1. Install the required target with rustup target add wasm32-unknown-unknown.
  2. Install Trunk with cargo install --locked trunk.
  3. Run trunk serve to build and serve on http://127.0.0.1:8080. Trunk will rebuild automatically if you edit the project.
  4. Open http://127.0.0.1:8080/index.html#dev in a browser. See the warning below.

Note

assets/sw.js script will try to cache our app, and loads the cached version when it cannot connect to server allowing your app to work offline (like PWA). appending #dev to index.html will skip this caching, allowing us to load the latest builds during development.

About

A 3D Gaussian Splatting Viewer App written in Rust using wgpu and egui.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks