t3d-gaussian-splatting

0.1.0 • 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

Package Sidebar

Install

npm i t3d-gaussian-splatting

Weekly Downloads

2

Version

0.1.0

License

BSD-3-Clause

Unpacked Size

55.1 kB

Total Files

13

Last publish

Collaborators

  • shawn0326