0.0.1 • Published 2 months ago

t3d-gaussian-splatting v0.0.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 months ago

T3D Gaussian Splatting

NPM Package

This is a t3d-based implementation of 3D Gaussian Splatting for Real-Time Radiance Field Rendering. Supports both .ply and .splat files.

Only supports WebGL2.

Online Demo

Usage

import { SplatLoader, PLYLoader } from 't3d-gaussian-splatting';

// ...

// load splat file and add to scene
const splatLoader = new SplatLoader(); // ro new PlyLoader();
splatLoader.loadAsync('./path/to/xx.splat').then(({ buffer, node }) => {
    scene.add(node);
});

function loop() {
    // ...

    // call node.update in loop function
    node.update(camera, renderTargetWidth, renderTargetHeight);

    // ...
}

Reference

TODO

  • Optimize sorting algorithm
  • Boundings Computations