Closed estoi closed 8 months ago
Hi @estoi, remove the import
inside of the useGLTF
const { scene: model, animations } = await useGLTF(
import('https://models.readyplayer.me/65e68d86374014375e47f33a.glb')
);
You need to pass the URL, not an import. https://stackblitz.com/edit/tresjs-basic-r5sszy?file=src%2Fcomponents%2FTheExperience.vue
Describe the bug
I have a link to a
.glb
suffix file which when I pass touseGLTF
causes the project to not run properly for a long time. When I revert to the code in the example it returns to normalpackage.json
Reproduction
https://stackblitz.com/edit/tresjs-basic-cxjaef?file=package.json,src%2Fcomponents%2FTheExperience.vue
Steps to reproduce
No response
System Info
Used Package Manager
npm
Code of Conduct