Skip to content

Commit 08e1748

Browse files
authored
Upgrade Three.js to r176 & Adopt GLTF for 3-D Assets (#4496)
* Upgrade Three.js to r176 and migrate assets to GLTF ### What’s new * **Three.js** bumped from **r97 → r176** * **All existing 3D assets converted to GLTF** * Smaller payloads, PBR-ready, future-proof. * **New assets** * `resources/models/airplane.gltf` – ready for immediate use in demos. * `resources/models/car.gltf` – base mesh & materials; reserved for upcoming feature work. * fix: rewrite src/js/model.js per CodeRabbitAI review * fix: rewrite src/js/model.js per CodeRabbitAI review Remove redundant Three.js imports * Fix: Typo in comments Corrected "modifie" to "modified" in various code comments. * fix: Include missing fallback.gltf 3D model This commit adds the 'resources/models/fallback.gltf' file, which was inadvertently excluded from a previous commit. This GLTF file is a converted version of the legacy 'fallback.json' 3D model. * refactor: Recompress 3D models to reduce file size This commit replaces existing 3D model assets with newly compressed versions. The recompression aims to significantly reduce file sizes without compromising visual quality, thereby improving overall application efficiency and resource loading. * feat: Re-enable legacy 3D renderer for low-performance device compatibility This commit reactivates the legacy 3D renderer, ensuring continued functionality for low-performance devices. This prevents the renderer from becoming a blocking issue for users with less powerful hardware. Additionally, this update incorporates the latest 'Projector' import from the Three.js examples library into the CanvasRenderer, improving compatibility and leveraging recent advancements
1 parent 1809bb8 commit 08e1748

20 files changed

+17258
-21
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ testresults/
2121
.vscode/*
2222
!.vscode/extensions.json
2323

24+
# Visual Studio
25+
.vs/
26+
27+
# node js
28+
node_modules/
29+
2430
# NetBeans
2531
nbproject/
2632

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"semver-min": "^0.7.2",
6969
"short-unique-id": "^5.2.0",
7070
"switchery-latest": "^0.8.2",
71-
"three": "~0.97.0",
71+
"three": "^0.176.0",
7272
"tiny-emitter": "^2.1.0",
7373
"vite-plugin-pwa": "^1.0.0",
7474
"vue": "^3.5.13"

0 commit comments

Comments
 (0)