Implement model optimization and caching for 3D characters

- Added a new modelsProxyRouter to handle requests for optimized 3D character models.
- Introduced modelsProxyService to manage GLB file optimization using gltf-transform with Draco compression.
- Updated app.js to include the new modelsProxyRouter for API access.
- Enhanced .gitignore to exclude model cache files.
- Added scripts for optimizing GLB models and updated README with optimization instructions.
- Integrated DRACOLoader in Character3D.vue for loading compressed models.
- Updated FamilyView.vue to streamline character rendering logic.
This commit is contained in:
Torsten Schulz (local)
2026-01-22 13:24:47 +01:00
parent 086ceee502
commit 6b01625f56
19 changed files with 4472 additions and 63 deletions

View File

@@ -33,7 +33,7 @@ export default defineConfig(({ mode }) => {
})
},
optimizeDeps: {
include: ['three', 'three/addons/loaders/GLTFLoader.js'],
include: ['three', 'three/addons/loaders/GLTFLoader.js', 'three/addons/loaders/DRACOLoader.js'],
esbuildOptions: {
plugins: [
NodeGlobalsPolyfillPlugin({