@plasius/gpu-shared 0.1.20 → 1.0.1
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/CHANGELOG.md +44 -1
- package/README.md +30 -13
- package/assets/shoreline.gltf +532 -0
- package/dist/{chunk-EZHA3MH7.js → chunk-DBTWE2EF.js} +6 -2
- package/dist/chunk-DBTWE2EF.js.map +1 -0
- package/dist/{chunk-UKCJ2AWJ.js → chunk-KGKLNL4X.js} +3 -2
- package/dist/chunk-KGKLNL4X.js.map +1 -0
- package/dist/{chunk-CH3ZS5TQ.js → chunk-Z6SOXBHL.js} +2 -2
- package/dist/chunk-Z6SOXBHL.js.map +1 -0
- package/dist/{gltf-loader-FMRC3OEV.js → gltf-loader-44ILCO7V.js} +2 -2
- package/dist/index.cjs +503 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{product-studio-runtime-3KANG3JE.js → product-studio-runtime-H7S5WN64.js} +5 -3
- package/dist/{showcase-runtime-OH3H6ZW2.js → showcase-runtime-B544T6AM.js} +496 -189
- package/dist/showcase-runtime-B544T6AM.js.map +1 -0
- package/package.json +2 -1
- package/src/asset-url.js +1 -0
- package/src/index.d.ts +10 -1
- package/src/index.js +1 -0
- package/src/product-studio-runtime.js +4 -0
- package/src/showcase-runtime.js +521 -189
- package/src/translations/en-GB.js +1 -2
- package/dist/chunk-CH3ZS5TQ.js.map +0 -1
- package/dist/chunk-EZHA3MH7.js.map +0 -1
- package/dist/chunk-UKCJ2AWJ.js.map +0 -1
- package/dist/showcase-runtime-OH3H6ZW2.js.map +0 -1
- /package/dist/{gltf-loader-FMRC3OEV.js.map → gltf-loader-44ILCO7V.js.map} +0 -0
- /package/dist/{product-studio-runtime-3KANG3JE.js.map → product-studio-runtime-H7S5WN64.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
- **Added**
|
|
8
|
+
- (placeholder)
|
|
9
|
+
|
|
10
|
+
- **Changed**
|
|
11
|
+
- (placeholder)
|
|
12
|
+
|
|
13
|
+
- **Fixed**
|
|
14
|
+
- (placeholder)
|
|
15
|
+
|
|
16
|
+
- **Security**
|
|
17
|
+
- (placeholder)
|
|
18
|
+
|
|
19
|
+
## [1.0.1] - 2026-06-27
|
|
20
|
+
|
|
21
|
+
- **Added**
|
|
22
|
+
- (placeholder)
|
|
23
|
+
|
|
24
|
+
- **Changed**
|
|
25
|
+
- The shared harbor showcase now keeps the modeled lighthouse, dock, and
|
|
26
|
+
shoreline asset set even when `gpu_showcase_realistic_models_v1` is
|
|
27
|
+
disabled, falling back only to a brigantine-only ship catalog.
|
|
28
|
+
|
|
29
|
+
- **Fixed**
|
|
30
|
+
- Added regression coverage for the flag-disabled modeled-harbor path and
|
|
31
|
+
the bounded legacy fallback used only when showcase asset loading fails.
|
|
32
|
+
|
|
33
|
+
- **Security**
|
|
34
|
+
- (placeholder)
|
|
35
|
+
|
|
36
|
+
## [1.0.0] - 2026-06-27
|
|
37
|
+
|
|
7
38
|
- **Added**
|
|
8
39
|
- (placeholder)
|
|
9
40
|
|
|
@@ -34,7 +65,7 @@ All notable changes to this project will be documented in this file.
|
|
|
34
65
|
|
|
35
66
|
- **Added**
|
|
36
67
|
- Deterministic showcase asset generation for a richer shared brigantine,
|
|
37
|
-
cutter, lighthouse,
|
|
68
|
+
cutter, lighthouse, harbor-dock, and shoreline catalog.
|
|
38
69
|
- Fullscreen capture mode for slide-deck screenshots and video recording,
|
|
39
70
|
including scene-only layout and bounded 1080p canvas scaling.
|
|
40
71
|
- Bundled `en-GB` translation keys and dictionaries for shared showcase labels
|
|
@@ -44,6 +75,16 @@ All notable changes to this project will be documented in this file.
|
|
|
44
75
|
delegation to the `@plasius/gpu-renderer` WebGPU wavefront renderer.
|
|
45
76
|
|
|
46
77
|
- **Changed**
|
|
78
|
+
- Reworked the shared harbor showcase chrome into a render-first canvas with
|
|
79
|
+
compact controls and a collapsed runtime diagnostics drawer instead of
|
|
80
|
+
always-visible hero, status, sidebar, and footer panels.
|
|
81
|
+
- Improved the shared harbor shoreline presentation with a denser near-band
|
|
82
|
+
water mesh, generated shoreline/breakwater geometry, broken waterline foam,
|
|
83
|
+
subtler wake/ripple metadata, calmer ship traffic, and less exaggerated
|
|
84
|
+
cloth material cues.
|
|
85
|
+
- Re-exported `buildProductStudioSceneObjects(...)` as a compatibility alias
|
|
86
|
+
of `createProductStudioMeshes(...)` so browser validation pages and runtime
|
|
87
|
+
scene loaders can consume one stable Product Studio scene-builder contract.
|
|
47
88
|
- Lowered Product Studio wavefront renderer defaults to a host-safe `640x360`
|
|
48
89
|
frame at `maxDepth: 2` so browser demos do not start with a heavy 720p
|
|
49
90
|
depth-6 GPU workload.
|
|
@@ -306,3 +347,5 @@ All notable changes to this project will be documented in this file.
|
|
|
306
347
|
[0.1.11]: https://github.com/Plasius-LTD/gpu-shared/releases/tag/v0.1.11
|
|
307
348
|
[0.1.19]: https://github.com/Plasius-LTD/gpu-shared/releases/tag/v0.1.19
|
|
308
349
|
[0.1.20]: https://github.com/Plasius-LTD/gpu-shared/releases/tag/v0.1.20
|
|
350
|
+
[1.0.0]: https://github.com/Plasius-LTD/gpu-shared/releases/tag/v1.0.0
|
|
351
|
+
[1.0.1]: https://github.com/Plasius-LTD/gpu-shared/releases/tag/v1.0.1
|
package/README.md
CHANGED
|
@@ -30,8 +30,8 @@ npm install @plasius/gpu-shared
|
|
|
30
30
|
- Preserves one shared fix point for cloth motion, visible water continuity, and
|
|
31
31
|
occluded harbor-light reflections across GPU demo consumers.
|
|
32
32
|
- Ships a package-owned showcase asset catalog with distinct brigantine,
|
|
33
|
-
cutter, lighthouse,
|
|
34
|
-
hull mesh plus placeholder box geometry.
|
|
33
|
+
cutter, lighthouse, harbor-dock, and shoreline models instead of relying on
|
|
34
|
+
one tiny hull mesh plus placeholder box geometry.
|
|
35
35
|
- Converts Product Studio GLTF primitives into triangle mesh inputs for the
|
|
36
36
|
renderer-owned mesh-BVH wavefront path instead of customer-visible analytic
|
|
37
37
|
scene objects.
|
|
@@ -132,7 +132,10 @@ await mountGpuShowcase({
|
|
|
132
132
|
The legacy analytic proxy scene-object path is disabled and is not a customer
|
|
133
133
|
visible fallback. Stale callers must move to `createProductStudioMeshes(...)`
|
|
134
134
|
or `mountGpuShowcase({ demoMode: "product-studio" })`, both of which use mesh
|
|
135
|
-
inputs for renderer-owned BVH construction.
|
|
135
|
+
inputs for renderer-owned BVH construction. For compatibility with older demo
|
|
136
|
+
pages and validation harnesses, the package also re-exports
|
|
137
|
+
`buildProductStudioSceneObjects(...)` as an alias of
|
|
138
|
+
`createProductStudioMeshes(...)`.
|
|
136
139
|
|
|
137
140
|
Install `@plasius/gpu-renderer` alongside `@plasius/gpu-shared` when Product
|
|
138
141
|
Studio mode is used. Harbor-only consumers do not need the renderer peer.
|
|
@@ -185,17 +188,30 @@ Then open `http://localhost:8000/gpu-shared/demo/`.
|
|
|
185
188
|
This package demo mounts the integrated harbor showcase so the shared runtime
|
|
186
189
|
can be validated independently of `gpu-demo-viewer`.
|
|
187
190
|
|
|
188
|
-
The
|
|
189
|
-
|
|
191
|
+
The harbor showcase uses a render-first canvas layout with compact pause,
|
|
192
|
+
stress, and focus controls plus a collapsed runtime diagnostics drawer. The
|
|
193
|
+
older always-visible hero, status, metrics, notes, and validation footer panels
|
|
194
|
+
are no longer part of the default viewport, so consumers can embed the runtime
|
|
195
|
+
inside production showcase pages without debug copy occupying the render area.
|
|
196
|
+
|
|
197
|
+
The integrated scene now includes a persistent flag cloth state, subdued ship
|
|
198
|
+
wakes and waterline ripples, and water reflections that are occluded by later
|
|
190
199
|
ship geometry instead of being painted through hulls. The harbor surface reads
|
|
191
200
|
the banded `@plasius/gpu-fluid` continuity envelope directly, so the default
|
|
192
201
|
camera keeps finite, visibly animated near-band water motion instead of
|
|
193
|
-
flattening or dropping the shared water mesh.
|
|
202
|
+
flattening or dropping the shared water mesh. The near shoreline band now
|
|
203
|
+
includes denser water geometry, broken foam segments tied to modeled rocks, and
|
|
204
|
+
lower-contrast ripple highlights, while the flag cloth carries subtle material
|
|
205
|
+
cues for weave, folds, and pinned-edge continuity.
|
|
194
206
|
|
|
195
207
|
The default showcase asset set now uses a multi-primitive brigantine, a
|
|
196
|
-
distinct cutter profile, a modeled lighthouse,
|
|
197
|
-
|
|
198
|
-
machines.
|
|
208
|
+
distinct cutter profile, a modeled lighthouse, a dock/warehouse scene, and a
|
|
209
|
+
generated rocky shoreline/breakwater so the harbor reads closer to a believable
|
|
210
|
+
coastal night view on high-end machines.
|
|
211
|
+
|
|
212
|
+
If `gpu_showcase_realistic_models_v1` is disabled, the harbor keeps the modeled
|
|
213
|
+
lighthouse/dock/shoreline environment and falls back only to a brigantine-only
|
|
214
|
+
ship catalog instead of reverting to placeholder harbor blocks.
|
|
199
215
|
|
|
200
216
|
For slide-deck screenshots or video capture, open the route with
|
|
201
217
|
`?capture=1&renderScale=1`. Capture mode hides the validation chrome, fills the
|
|
@@ -233,10 +249,11 @@ surface for these family demos.
|
|
|
233
249
|
- `resolveShowcaseAssetUrl(baseUrlOrAssetName?, assetName?)`
|
|
234
250
|
- `showcaseFocusModes`
|
|
235
251
|
|
|
236
|
-
`resolveShowcaseAssetUrl()` keeps consumers on
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
payload in the
|
|
252
|
+
`resolveShowcaseAssetUrl()` keeps consumers on package-owned showcase asset
|
|
253
|
+
URLs and still defaults to the brigantine for backward compatibility. If a host
|
|
254
|
+
cannot actually serve that asset, `loadGltfModel()` lazily activates the
|
|
255
|
+
built-in inline fallback instead of eagerly parsing that payload in the
|
|
256
|
+
top-level package entrypoint.
|
|
240
257
|
|
|
241
258
|
## Development
|
|
242
259
|
|