@playcanvas/supersplat-viewer 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,35 +1,35 @@
1
1
  # SuperSplat Viewer
2
2
 
3
- [![NPM Version][npm-version-badge]][npm-url]
4
- [![NPM Downloads][npm-downloads-badge]][npm-trends-url]
5
- [![License][license-badge]][license-url]
6
- [![GitHub Actions Build Status][build-status-badge]][workflow-url]
7
- [![Github Issue Resolve Time][issue-resolve-badge]][isitmaintained-url]
8
- [![Github Open Issues][open-issues-badge]][isitmaintained-url]
3
+ [![NPM Version](https://img.shields.io/npm/v/@playcanvas/supersplat-viewer)](https://www.npmjs.com/package/@playcanvas/supersplat-viewer)
4
+ [![NPM Downloads](https://img.shields.io/npm/dw/@playcanvas/supersplat-viewer)](https://npmtrends.com/@playcanvas/supersplat-viewer)
5
+ [![License](https://img.shields.io/npm/l/@playcanvas/supersplat-viewer)](https://github.com/playcanvas/supersplat-viewer/blob/main/LICENSE)
6
+ [![Discord](https://img.shields.io/badge/Discord-5865F2?style=flat&logo=discord&logoColor=white&color=black)](https://discord.gg/RSaMRzg)
7
+ [![Reddit](https://img.shields.io/badge/Reddit-FF4500?style=flat&logo=reddit&logoColor=white&color=black)](https://www.reddit.com/r/PlayCanvas)
8
+ [![X](https://img.shields.io/badge/X-000000?style=flat&logo=x&logoColor=white&color=black)](https://x.com/intent/follow?screen_name=playcanvas)
9
9
 
10
- | [User Manual][manual-url] | [API Reference][api-url] | [Blog][blog-url] | [Forum][forum-url] | [Discord][discord-url] | [Reddit][reddit-url] | [Twitter][twitter-url] |
10
+ | [User Manual](https://developer.playcanvas.com/user-manual/gaussian-splatting/editing/supersplat/import-export/#html-viewer-htmlzip) | [Blog](https://blog.playcanvas.com) | [Forum](https://forum.playcanvas.com) |
11
11
 
12
- This is the official viewer for https://superspl.at and the SuperSplat Editor HTML export.
12
+ This is the official viewer for [SuperSplat](https://superspl.at).
13
13
 
14
- <img width="1088" alt="Screenshot 2025-04-11 at 13 36 02" src="https://github.com/user-attachments/assets/a5e2a2eb-3064-4d73-beb9-eb9c4708b2b2" />
14
+ <img width="1114" height="739" alt="supersplat-viewer" src="https://github.com/user-attachments/assets/15d2c654-9484-4265-a279-99acb65e38c9" />
15
15
 
16
- This webapp compiles to simple, self-contained, static website.
16
+ The web app compiles to a simple, self-contained static website.
17
17
 
18
18
  The app supports a few useful URL parameters (though please note these are subject to change):
19
19
  - `&settings=url` - specify the URL of the `settings.json` file (default is `./settings.json`)
20
20
  - `&content=url` - specify the URL of the `scene.compressed.ply` file (default is `./scene.compressed.ply`)
21
21
 
22
- As well as the following:
22
+ Additional options:
23
23
  - `&noui` - hide UI
24
24
  - `&noanim` - start with animation paused
25
25
  - `&poster=url` - show an image while loading the scene content
26
26
  - `&ministats` - show the runtime CPU (and on desktop, GPU) performance graphs
27
27
  - `&skybox=url` - specify an equirectangular skybox image for the skybox
28
28
 
29
- The webapp source files is available as strings for templating when imported as an NPM module:
29
+ The web app source files are available as strings for templating when you import the package from npm:
30
30
 
31
31
  ```ts
32
- import { html, css, js } from '@playcanvas/supersplat-viewer`;
32
+ import { html, css, js } from '@playcanvas/supersplat-viewer';
33
33
 
34
34
  // logs the source of index.html
35
35
  console.log(html);
@@ -58,17 +58,17 @@ To initialize a local development environment for SuperSplat Viewer, ensure you
58
58
  npm install
59
59
  ```
60
60
 
61
- 3. Build SuperSplat Viewer and start a local web server:
61
+ 3. Start the development build and local web server:
62
62
 
63
63
  ```sh
64
64
  npm run develop
65
65
  ```
66
66
 
67
- 4. Open the browser at http://localhost:3000.
67
+ 4. Open your browser at http://localhost:3000.
68
68
 
69
69
  ## Settings Schema
70
70
 
71
- The `settings.json` file has the following schema (as defined in typescript, taken from SuperSplat editor):
71
+ The `settings.json` file has the following schema (defined in TypeScript and taken from the SuperSplat editor):
72
72
 
73
73
 
74
74
  ```typescript
@@ -117,24 +117,3 @@ type ExperienceSettings = {
117
117
  }
118
118
  }
119
119
  ```
120
-
121
- [npm-version-badge]: https://img.shields.io/npm/v/@playcanvas/supersplat-viewer
122
- [npm-downloads-badge]: https://img.shields.io/npm/dw/@playcanvas/supersplat-viewer
123
- [license-badge]: https://img.shields.io/npm/l/@playcanvas/supersplat-viewer
124
- [build-status-badge]: https://github.com/playcanvas/supersplat-viewer/actions/workflows/ci.yml/badge.svg
125
- [issue-resolve-badge]: https://isitmaintained.com/badge/resolution/playcanvas/supersplat-viewer.svg
126
- [open-issues-badge]: https://isitmaintained.com/badge/open/playcanvas/supersplat-viewer.svg
127
-
128
- [npm-url]: https://www.npmjs.com/package/@playcanvas/supersplat-viewer
129
- [npm-trends-url]: https://npmtrends.com/@playcanvas/supersplat-viewer
130
- [license-url]: https://github.com/playcanvas/supersplat-viewer/blob/main/LICENSE
131
- [workflow-url]: https://github.com/playcanvas/supersplat-viewer/actions/workflows/ci.yml
132
- [isitmaintained-url]: https://isitmaintained.com/project/playcanvas/supersplat-viewer
133
-
134
- [manual-url]: https://developer.playcanvas.com
135
- [api-url]: https://api.playcanvas.com
136
- [blog-url]: https://blog.playcanvas.com
137
- [forum-url]: https://forum.playcanvas.com
138
- [discord-url]: https://discord.gg/RSaMRzg
139
- [reddit-url]: https://www.reddit.com/r/PlayCanvas/
140
- [twitter-url]: https://twitter.com/intent/follow?screen_name=playcanvas