@playcanvas/supersplat-viewer 1.35.2 → 1.36.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
@@ -21,39 +21,42 @@ The app supports a number of URL parameters (these are subject to change):
21
21
 
22
22
  ### Content
23
23
 
24
- | Parameter | Description | Default |
25
- | --------- | ----------- | ------- |
26
- | `settings` | URL of the `settings.json` file | `./settings.json` |
27
- | `content` | URL of the scene file (`.ply`, `.sog`, `.compressed.ply`, `.meta.json`, `.lod-meta.json`) | `./scene.compressed.ply` |
28
- | `skybox` | URL of an equirectangular skybox image | |
29
- | `poster` | URL of an image to show while loading | |
30
- | `collision` | URL of a collision asset (`.glb` mesh, or voxel data). `voxel` is accepted as an alias. | |
24
+ | Parameter | Description | Default |
25
+ | ----------- | ----------------------------------------------------------------------------------------- | ------------------------ |
26
+ | `settings` | URL of the `settings.json` file | `./settings.json` |
27
+ | `content` | URL of the scene file (`.ply`, `.sog`, `.compressed.ply`, `.meta.json`, `.lod-meta.json`) | `./scene.compressed.ply` |
28
+ | `skybox` | URL of an equirectangular skybox image | |
29
+ | `poster` | URL of an image to show while loading | |
30
+ | `collision` | URL of a collision asset (`.glb` mesh, or voxel data). `voxel` is accepted as an alias. | |
31
31
 
32
32
  ### UI
33
33
 
34
- | Parameter | Description |
35
- | --------- | ----------- |
36
- | `noui` | Hide the UI overlay (the programmatic form is `ui: false`, which skips building it) |
37
- | `reticle` | Show the centre reticle in captured desktop fly/walk mode (off by default; programmatic form: `reticle: true`) |
38
- | `noanim` | Start with animation paused |
39
- | `ministats` | Show runtime CPU/GPU performance graphs |
40
- | `lang` | Override the UI language (`de`, `en`, `es`, `fr`, `ja`, `ko`, `pt-BR`, `ru`, `zh-CN`; default: detect from browser) |
34
+ | Parameter | Description |
35
+ | ----------- | ------------------------------------------------------------------------------------------------------------------- |
36
+ | `noui` | Hide the UI overlay (the programmatic form is `ui: false`, which skips building it) |
37
+ | `reticle` | Show the centre reticle in captured desktop fly/walk mode (off by default; programmatic form: `reticle: true`) |
38
+ | `noanim` | Start with animation paused |
39
+ | `ministats` | Show runtime CPU/GPU performance graphs |
40
+ | `lang` | Override the UI language (`de`, `en`, `es`, `fr`, `ja`, `ko`, `pt-BR`, `ru`, `zh-CN`; default: detect from browser) |
41
41
 
42
42
  ### Renderer
43
43
 
44
44
  By default the viewer uses WebGPU when available (falling back automatically when not). The flag below forces the WebGL renderer (also required for WebXR / AR / VR):
45
45
 
46
- | Parameter | Description |
47
- | --------- | ----------- |
48
- | `webgl` | Force the WebGL renderer (required for AR/VR) |
49
- | `aa` | Enable antialiasing (WebGL only) |
50
- | `nofx` | Disable post effects |
51
- | `hpr` | Override `highPrecisionRendering` from settings (`?hpr`, `?hpr=1`, `?hpr=true`, `?hpr=enable` to enable) |
52
- | `budget` | Override the splat budget, in millions of splats |
53
- | `colorize` | Render with LOD colorization |
54
- | `fullload` | Load all streaming LOD data before the first frame |
55
- | `heatmap` | Use heatmap mode for the voxel collision debug overlay. Requires WebGPU and voxel collision data; press `V` or use **Show Collision** in the settings panel to show the overlay. |
56
- | `debug` | Open the developer debug panel on load (`Ctrl+Shift+D` to toggle) |
46
+ | Parameter | Description |
47
+ | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48
+ | `webgl` | Force the WebGL renderer (required for AR/VR) |
49
+ | `aa` | Enable antialiasing (WebGL only) |
50
+ | `stochastic` | Experimental: opt in to the stochastic splat renderer (unsorted, depth-tested splats). WebGPU only; the sorted renderer draws on WebGL and in XR. |
51
+ | `splatSource` | Developer knob for the stochastic renderer: the data path feeding it (`workbuffer`, the default) |
52
+ | `variant` | Developer knob for the stochastic renderer: comma-separated `key:value` experiment switches, e.g. `spp:1,compose:none` |
53
+ | `nofx` | Disable post effects |
54
+ | `hpr` | Override `highPrecisionRendering` from settings (`?hpr`, `?hpr=1`, `?hpr=true`, `?hpr=enable` to enable) |
55
+ | `budget` | Override the splat budget, in millions of splats |
56
+ | `colorize` | Render with LOD colorization |
57
+ | `fullload` | Load all streaming LOD data before the first frame |
58
+ | `heatmap` | Use heatmap mode for the voxel collision debug overlay. Requires WebGPU and voxel collision data; press `V` or use **Show Collision** in the settings panel to show the overlay. |
59
+ | `debug` | Open the developer debug panel on load (`Ctrl+Shift+D` to toggle) |
57
60
 
58
61
  ## NPM Package
59
62
 
@@ -65,22 +68,22 @@ To initialize a local development environment for SuperSplat Viewer, ensure you
65
68
 
66
69
  1. Clone the repository:
67
70
 
68
- ```sh
69
- git clone https://github.com/playcanvas/supersplat-viewer.git
70
- cd supersplat-viewer
71
- ```
71
+ ```sh
72
+ git clone https://github.com/playcanvas/supersplat-viewer.git
73
+ cd supersplat-viewer
74
+ ```
72
75
 
73
76
  2. Install dependencies:
74
77
 
75
- ```sh
76
- npm install
77
- ```
78
+ ```sh
79
+ npm install
80
+ ```
78
81
 
79
82
  3. Start the development build and local web server:
80
83
 
81
- ```sh
82
- npm run develop
83
- ```
84
+ ```sh
85
+ npm run develop
86
+ ```
84
87
 
85
88
  4. Open your browser at http://localhost:3000.
86
89