renderer.render(scene, camera);});</script>

You can also install the library straight from npm:

npm install @mizzen/splats-web

Usage

Import the MizzenSplats class:

import { MizzenSplats } from "@mizzen/splats-web";

Then create an instance of MizzenSplats with a splat source, and add it to your rendered scene.

source can be either of:

  • URL to a capture on mizzen.studio
  • path to a mizzen splats file or folder containing mizzen splats artifacts
DemoFirstScene.ts
Modern architectural sculpture in a city plaza, photo by Emanuel Mateus on Pexels