Skip to content

Commit f77173a

Browse files
committed
Added two optimized models
1 parent 2e6b081 commit f77173a

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
3131
<option value="Duck.glb">GLB Duck - KhronosGroup Models Testing</option>
3232
<option value="NodePerformanceTest.glb">Wait a little bit! NodePerformanceTest - KhronosGroup Models Testing
3333
</option>
34+
<option value="NodePerformanceTest_opt.glb">Wait a little bit! NodePerformanceTest - Optimized with
35+
gltf-transform -
36+
KhronosGroup Models Testing
37+
</option>
3438
<option value="grinkopf.glb">Wait a little bit! Grinkopf Cologne -
3539
https://codeforcologne.github.io/Denkmal-4D-Koeln/</option>
40+
<option value="grinkopf_opt.glb">Grinkopf Cologne - Optimized with gltf-transform
41+
https://codeforcologne.github.io/Denkmal-4D-Koeln/</option>
3642
<option value="coffeemat.glb">GLB coffeemat with KTX2 cpmpression - KhronosGroup Models Testing</option>
3743
</select>
3844
<button id="uploadButton">Upload a file</button>
@@ -104,7 +110,7 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
104110
}
105111

106112
/*
107-
window.THREE = require( './lib/three/three.js' );
113+
window.THREE = require( './lib/three/three.js' );
108114
*/
109115

110116
// let modeltype = 'glb';
@@ -130,7 +136,7 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
130136
directionalLight.shadow.camera.near = 1;
131137
directionalLight.shadow.camera.far = 50;
132138
directionalLight.color.setHSL(0.1, 1, 0.95);
133-
/*
139+
/*
134140
lightHelper = new THREE.DirectionalLightHelper( directionalLight );
135141
this.scene.add( lightHelper );
136142
*/
@@ -163,7 +169,7 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
163169

164170
// move the camera to a position distance units way from the center
165171
// in whatever direction the camera was from the center already
166-
// for the screenshots, it is good not too be too far away
172+
// for the screenshots, it is good not too be too far away
167173
camera.position.copy(direction.multiplyScalar(distance + 3).add(boxCenter));
168174

169175
// pick some near and far values for the frustum that
@@ -269,7 +275,7 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
269275
this.scene.environment = pmremGenerator.fromScene(environment).texture;
270276
environment.dispose();
271277
TD.addShadowedLight(1, 1, 1, 0xffffff, 3.5);
272-
// helper for testing
278+
// helper for testing
273279
/*
274280
const grid = new THREE.GridHelper(500, 10, 0xffffff, 0xffffff);
275281
grid.material.opacity = 0.5;
@@ -309,7 +315,7 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
309315
};
310316

311317

312-
// STL Material wird Geometry hinzugefügt
318+
// STL Material wird Geometry hinzugefügt
313319
TD.geometryToObject = function (geometry) {
314320
const material = new THREE.MeshPhongMaterial(
315321
{
@@ -526,4 +532,4 @@ <h1>Prototype Viewer MediaWiki 3D GLTF Data, STL data is already available </h1>
526532
</script>
527533
</body>
528534

529-
</html>
535+
</html>

models/NodePerformanceTest_opt.glb

27.4 MB
Binary file not shown.

models/grinkopf_opt.glb

2.54 MB
Binary file not shown.

0 commit comments

Comments
 (0)