fix: resolve gltf companion assets reliably

This commit is contained in:
Tom Boullay
2026-04-27 23:01:29 +02:00
parent aeb0832409
commit 5556364601
5 changed files with 82 additions and 14 deletions
+1
View File
@@ -70,6 +70,7 @@ Access the app at `http://localhost:3000`
> Local 3D preview supports `model.gltf` folders by resolving dropped companion files such as `model.bin` and textures through local object URLs.
> The preview also shows a small model stats helper with estimated draw calls, meshes, triangles, materials, and texture count.
> Opacity helper textures can be named `opacity.png` for the whole model or `opacity_part-name.png` to target a mesh/material whose name contains `part-name`; alpha-channel PNGs are converted to alpha maps for the preview.
> If `model.gltf` references a missing `.bin` but the folder contains exactly one other `.bin`, the preview can use it as a local fallback and shows a warning because the final upload may still be broken until the `.bin` filename matches the GLTF reference.
### Production (Coolify / Docker)