JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3092
  • Score
    100M100P100Q113179F
  • License MIT

3DGS SPZ File Format Parser for X_ITE

Package Exports

  • x_ite-spz-parser
  • x_ite-spz-parser/x_ite-spz-parser-123.js
  • x_ite-spz-parser/x_ite-spz-parser-4.js

Readme

x_ite-spz-parser

npm Version Build Size jsDelivr Hits npm Downloads

SPZ File Format Parser for X_ITE for 3D Gaussian Splatting

Usage

Include the script after X_ITE:

<script defer src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-4.min.js"></script>
<!-- or/and for version 1-3 SPZ format -->
<script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-123.min.js"></script>

<!-- or as ES module -->
<script type="module" src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.mjs"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-4.min.js"></script>
<!-- or/and for version 1-3 SPZ format -->
<script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-123.min.js"></script>

Now you can directly load .spz files with the src attribute, but you also have to add the extensions attribute with a number, how many X_ITE extension you have included. Each extension will decrease this count and when it becomes 0, the canvas knows that all extensions are loaded and now starts loading the file in the src attribute.

You can also use .spz files as source of an Inline node.

<x3d-canvas data-src="room.spz"></x3d-canvas>

NPM

You can also install it from npm:

npm i x_ite-spz-parser

Converter

Look at the bottom part of the following page, there is a converter: https://www.nianticspatial.com/blog/spz4

License

x_ite-spz-parser is free software and licensed under the MIT License.