@plasius/gpu-demo-viewer 0.1.7 → 0.1.8

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.
@@ -15,7 +15,7 @@
15
15
  }
16
16
  </script></head>
17
17
  <body><header><a href="https://plasius.co.uk/" target="_blank" rel="noopener">PLASIUS</a><span>Renderer workshop · Local review</span></header>
18
- <main><div class="intro"><p class="eyebrow">From source to scene</p><h1>Model studies</h1><p>Eleven assets. One renderer. Explore the surfaces, silhouettes and details that will shape our next improvements.</p></div>
18
+ <main><div class="intro"><p class="eyebrow">From source to scene</p><h1>Model studies</h1><p>Original assets. One renderer. Explore the surfaces, silhouettes and details that will shape our next improvements.</p></div>
19
19
  <div class="workspace"><aside><label for="model">Choose a model</label><select id="model" disabled></select><p id="category" class="muted"></p><h2 id="name"></h2><p id="target"></p><p id="note"></p><div id="metrics" class="metrics"></div>
20
20
  <details><summary>Source and licence</summary><p id="credits"></p><p><a id="source" target="_blank" rel="noopener">Original model</a> · <a id="licence" target="_blank" rel="noopener"></a></p><p>Original files retained. Framing is normalized for inspection. Powered by Poly Haven for its asset metadata.</p></details>
21
21
  <details><summary>Camera help</summary><p id="help">Drag to orbit. Shift-drag or right-drag to truck. Alt-drag to pan. Scroll to move closer; Shift-scroll changes the lens. Touch: one finger orbits; two fingers move and pinch. Keyboard: arrows orbit, Shift-arrows truck, + / − move closer or further, Home resets. Keys 1–5 choose orbit, truck, pan, dolly or zoom. Press ? for a brief reminder.</p></details>
@@ -30,6 +30,6 @@
30
30
  </fieldset>
31
31
  <div class="refinement"><label id="refinement" for="sample-progress">Waiting for a model…</label><progress id="sample-progress" max="64" value="0"></progress></div>
32
32
  <div class="canvas-wrap"><canvas id="canvas" width="800" height="600" tabindex="0" aria-label="Interactive Plasius model view" aria-describedby="help"></canvas><p id="hint" hidden>Drag to orbit · Shift-drag to move · Scroll to approach<br>Touch: drag or pinch · Keyboard: arrows, + / −, Home</p></div><p id="status" role="status" aria-live="polite">Preparing the review…</p></section></div>
33
- <p class="footnote">Eleven retained source models. Gem is excluded from this rollout; no substitute is shown.</p></main>
33
+ <p class="footnote">Source models join this workshop in review batches. Gem is excluded from this rollout; no substitute is shown.</p></main>
34
34
  <script type="module">import { mountLibrary } from './main.js'; mountLibrary().catch(error => { document.querySelector('#status').textContent = `Unable to open review: ${error.message}`; });</script>
35
35
  </body></html>
@@ -81,110 +81,110 @@
81
81
  {
82
82
  "key": "sf-castle",
83
83
  "batch": 1,
84
- "status": "researched",
85
- "note": "Awaiting acquisition and Plasius visual qualification."
84
+ "status": "held",
85
+ "note": "Original source not acquired; upstream scan credits must be resolved before public redistribution."
86
86
  },
87
87
  {
88
88
  "key": "large_iron_gate",
89
89
  "batch": 1,
90
- "status": "researched",
91
- "note": "Awaiting acquisition and Plasius visual qualification."
90
+ "status": "qualified",
91
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
92
92
  },
93
93
  {
94
94
  "key": "modular_factory_facade",
95
95
  "batch": 1,
96
- "status": "researched",
97
- "note": "Awaiting acquisition and Plasius visual qualification."
96
+ "status": "qualified",
97
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
98
98
  },
99
99
  {
100
100
  "key": "modular_fort_01",
101
101
  "batch": 1,
102
- "status": "researched",
103
- "note": "Awaiting acquisition and Plasius visual qualification."
102
+ "status": "qualified",
103
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
104
104
  },
105
105
  {
106
106
  "key": "modular_urban_apartments_facade",
107
107
  "batch": 1,
108
- "status": "researched",
109
- "note": "Awaiting acquisition and Plasius visual qualification."
108
+ "status": "qualified",
109
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
110
110
  },
111
111
  {
112
112
  "key": "modular_wooden_pier",
113
113
  "batch": 1,
114
- "status": "researched",
115
- "note": "Awaiting acquisition and Plasius visual qualification."
114
+ "status": "qualified",
115
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
116
116
  },
117
117
  {
118
118
  "key": "sf-cottage",
119
119
  "batch": 1,
120
- "status": "researched",
121
- "note": "Awaiting acquisition and Plasius visual qualification."
120
+ "status": "held",
121
+ "note": "Original Sketchfab source has not been acquired; no substitute is included."
122
122
  },
123
123
  {
124
124
  "key": "dandelion_01",
125
125
  "batch": 1,
126
- "status": "researched",
127
- "note": "Awaiting acquisition and Plasius visual qualification."
126
+ "status": "qualified",
127
+ "note": "Original source fixed64 and native UHD1 render checks passed with material reuse correction 3d119868. Registry consumption and production verification pending."
128
128
  },
129
129
  {
130
130
  "key": "DiffuseTransmissionPlant",
131
131
  "batch": 1,
132
- "status": "researched",
133
- "note": "Awaiting acquisition and Plasius visual qualification."
132
+ "status": "held",
133
+ "note": "Required diffuse-transmission material support is not implemented in the released loader; source has not been admitted."
134
134
  },
135
135
  {
136
136
  "key": "fir_tree_01",
137
137
  "batch": 2,
138
- "status": "researched",
139
- "note": "Awaiting acquisition and Plasius visual qualification."
138
+ "status": "held",
139
+ "note": "Source LOD0 has 6,982,937 triangles, above the unchanged 500,000-triangle inspection budget. Requires suitable LOD preparation; original asset not substituted."
140
140
  },
141
141
  {
142
142
  "key": "grass_medium_01",
143
143
  "batch": 2,
144
- "status": "researched",
145
- "note": "Awaiting acquisition and Plasius visual qualification."
144
+ "status": "qualified",
145
+ "note": "Original-source fixed64, camera reset/refinement and native UHD1 checks passed. Released renderer 0.2.51 and shared 1.1.8 are required; production verification pending."
146
146
  },
147
147
  {
148
148
  "key": "island_tree_01",
149
149
  "batch": 2,
150
- "status": "researched",
151
- "note": "Awaiting acquisition and Plasius visual qualification."
150
+ "status": "held",
151
+ "note": "Source LOD0 has 1,599,403 triangles, above the unchanged 500,000-triangle inspection budget. Requires suitable LOD preparation; original asset not substituted."
152
152
  },
153
153
  {
154
154
  "key": "jacaranda_tree",
155
155
  "batch": 2,
156
- "status": "researched",
157
- "note": "Awaiting acquisition and Plasius visual qualification."
156
+ "status": "held",
157
+ "note": "Source LOD0 has 3,863,832 triangles, above the unchanged 500,000-triangle inspection budget. Requires suitable LOD preparation; original asset not substituted."
158
158
  },
159
159
  {
160
160
  "key": "pine_tree_01",
161
161
  "batch": 2,
162
- "status": "researched",
163
- "note": "Awaiting acquisition and Plasius visual qualification."
162
+ "status": "held",
163
+ "note": "Source LOD0 has 17,182,252 triangles, above the unchanged 500,000-triangle inspection budget. Requires suitable LOD preparation; original asset not substituted."
164
164
  },
165
165
  {
166
166
  "key": "searsia_lucida",
167
167
  "batch": 2,
168
- "status": "researched",
169
- "note": "Awaiting acquisition and Plasius visual qualification."
168
+ "status": "qualified",
169
+ "note": "Original-source fixed64, camera reset/refinement and native UHD1 checks passed. Released renderer 0.2.51 and shared 1.1.8 are required; production verification pending."
170
170
  },
171
171
  {
172
172
  "key": "boulder_01",
173
173
  "batch": 2,
174
- "status": "researched",
175
- "note": "Awaiting acquisition and Plasius visual qualification."
174
+ "status": "qualified",
175
+ "note": "Original-source fixed64, camera reset/refinement and native UHD1 checks passed. Released renderer 0.2.51 and shared 1.1.8 are required; production verification pending."
176
176
  },
177
177
  {
178
178
  "key": "coastal_cliff_01",
179
179
  "batch": 2,
180
- "status": "researched",
181
- "note": "Awaiting acquisition and Plasius visual qualification."
180
+ "status": "qualified",
181
+ "note": "Original-source fixed64, camera reset/refinement and native UHD1 checks passed. Released renderer 0.2.51 and shared 1.1.8 are required; production verification pending."
182
182
  },
183
183
  {
184
184
  "key": "dead_tree_trunk",
185
185
  "batch": 2,
186
- "status": "researched",
187
- "note": "Awaiting acquisition and Plasius visual qualification."
186
+ "status": "qualified",
187
+ "note": "Original-source fixed64, camera reset/refinement and native UHD1 checks passed. Released renderer 0.2.51 and shared 1.1.8 are required; production verification pending."
188
188
  },
189
189
  {
190
190
  "key": "food_pomegranate_01",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/gpu-demo-viewer",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "description": "Root validation viewer for Plasius gpu-* demos.",
6
6
  "license": "Apache-2.0",
@@ -18,7 +18,8 @@
18
18
  "exports": {
19
19
  ".": "./viewer-manifest.js",
20
20
  "./viewer-manifest": "./viewer-manifest.js",
21
- "./package.json": "./package.json"
21
+ "./package.json": "./package.json",
22
+ "./model-library/acquire": "./model-library/acquire.js"
22
23
  },
23
24
  "files": [
24
25
  "assets/",
@@ -53,8 +54,8 @@
53
54
  "test:coverage": "c8 --reporter=lcov --reporter=text node --test"
54
55
  },
55
56
  "dependencies": {
56
- "@plasius/gpu-renderer": "^0.2.50",
57
- "@plasius/gpu-shared": "^1.1.7"
57
+ "@plasius/gpu-renderer": "^0.2.51",
58
+ "@plasius/gpu-shared": "^1.1.8"
58
59
  },
59
60
  "devDependencies": {
60
61
  "c8": "^11.0.0",
@@ -1,8 +1,11 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { fileURLToPath } from 'node:url';
3
3
  import { acquireFixtures } from '../model-library/acquire.js';
4
- export async function run(acquire=acquireFixtures) {
4
+ import { selectBatch } from '../model-library/rollout.js';
5
+ export async function run(acquire=acquireFixtures,batch=0) {
5
6
  const {assets}=JSON.parse(await readFile(new URL('../model-library/catalogue.json',import.meta.url),'utf8'));
6
- return acquire({assets,root:fileURLToPath(new URL('../model-library/assets/',import.meta.url))});
7
+ const {entries}=JSON.parse(await readFile(new URL('../model-library/rollout.json',import.meta.url),'utf8'));
8
+ const keys=new Set(selectBatch(entries,batch).map(entry=>entry.key));
9
+ return acquire({assets:assets.filter(asset=>keys.has(asset.key)),root:fileURLToPath(new URL('../model-library/assets/',import.meta.url))});
7
10
  }
8
- if(process.argv[1]===fileURLToPath(import.meta.url))console.log(await run());
11
+ if(process.argv[1]===fileURLToPath(import.meta.url))console.log(await run(undefined,process.argv[2]===undefined?0:Number(process.argv[2])));