@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 +16 -37
- package/dist/index.js +2 -2
- package/package.json +21 -21
- package/public/index.html +2 -2
- package/public/index.js +1701 -436
- package/public/index.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
# SuperSplat Viewer
|
|
2
2
|
|
|
3
|
-
[![NPM Version]
|
|
4
|
-
[![NPM Downloads]
|
|
5
|
-
[![License]
|
|
6
|
-
[](https://www.npmjs.com/package/@playcanvas/supersplat-viewer)
|
|
4
|
+
[](https://npmtrends.com/@playcanvas/supersplat-viewer)
|
|
5
|
+
[](https://github.com/playcanvas/supersplat-viewer/blob/main/LICENSE)
|
|
6
|
+
[](https://discord.gg/RSaMRzg)
|
|
7
|
+
[](https://www.reddit.com/r/PlayCanvas)
|
|
8
|
+
[](https://x.com/intent/follow?screen_name=playcanvas)
|
|
9
9
|
|
|
10
|
-
| [User Manual]
|
|
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
|
|
12
|
+
This is the official viewer for [SuperSplat](https://superspl.at).
|
|
13
13
|
|
|
14
|
-
<img width="
|
|
14
|
+
<img width="1114" height="739" alt="supersplat-viewer" src="https://github.com/user-attachments/assets/15d2c654-9484-4265-a279-99acb65e38c9" />
|
|
15
15
|
|
|
16
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
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
|
|
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 (
|
|
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
|