t3d-gaussian-splatting

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i t3d-gaussian-splatting

Weekly Downloads

6

Version

0.0.1

License

BSD-3-Clause

Unpacked Size

53.6 kB

Total Files

13

Last publish

Collaborators

  • shawn0326