open-index/open-npm huggingface dataset:
npm package: @spz-loader/babylonjs
Description: .spz GaussianSplatting loader for Babylon.js
Author: drumath2237
Latest version: 0.3.1

# @spz-loader/babylonjs

## About

integration for Babylon.js `GaussianSplattingMesh`

## Usage

Install like below. `@spz-loader/babylonjs` requires Babylon.js version 7 or later.

```sh
# for npm
npm i @babylonjs/core @spz-loader/babylonjs

# for pnpm
pnpm add @babylonjs/core @spz-loader/babylonjs
```

Code example of ESModule or TypeScript.

```ts
import "./style.css";

import { Engine, Scene } from "@babylonjs/core";
import { createGaussianSplattingFromSpz } from "@spz-loader/babylonjs";

import spzPath from "../assets/hornedlizard.spz?url";

const engine = new Engine(renderCanvas);
const scene = new Scene(engine);
// ...
const splat = await createGaussianSplattingFromSpzUrl(spzPath, scene);
```
npm package: @spz-loader/core
Description: .spz Gaussian Splatting file loader
Author: drumath2237
Latest version: 0.3.1

# @spz-loader/core

## About

core logics for decode .spz

## Usage

Install like below.

```sh
# for npm
npm i @spz-loader/core

# for pnpm
pnpm add @spz-loader/core
```

Usage example of core package.

```ts
import { loadSpz } from "@spz-loader/core";

import spzUrl from "../assets/racoonfamily.spz?url";

const splat = await loadSpzFromUrl(spzUrl);
console.log(splat.numPoints);
```
npm package: @spz-loader/playcanvas
Description: .spz GaussianSplatting loader for PlayCanvas Engine
Author: drumath2237
Latest version: 0.3.1

# @spz-loader/playcanvas

## About

integration for PlayCanvas Engine and `GSplat` Entity

## Usage

Install like below:

```sh
# for npm
npm i playcanvas @spz-loader/playcanvas

# for pnpm
pnpm add playcanvas @spz-loader/playcanvas
```

Usage example:

```ts
import { Application } from "playcanvas";
import { createGSplatEntityFromSpzUrlAsync } from "@spz-loader/playcanvas";

import splatUrl from "../assets/racoonfamily.spz?url";

const app = new Application(canvas);
app.start();
// ...
const spzEntity = await createGSplatEntityFromSpzUrlAsync(splatUrl);
app.root.addChild(spzEntity);
```