+ 1
Why is the model not loading?
https://sololearn.com/compiler-playground/W4ZAX6V61iL1/?ref=app
8 Réponses
+ 5
The cat model isn't loading because the URL you're using to fetch the GLB file is invalid. The URL https://dl.dropbox.com/scl/fi/va7jzskhzjn7yumty8865/trotting_cat.glb?rlkey=u8ug9eq2mni57rm97b9e15lre&st=7f80klij& is for a shared Dropbox file.
Once you have a valid, direct URL, replace the current one in your loader.load() call:
JavaScript:
loader.load(
'your_new_valid_and_direct_url_to_trotting_cat.glb',
(gltf) => {
// ... rest of your code
},
undefined,
(error) => {
console.error('Failed to load GLB:', error);
}
);
+ 3
Sky? I remember this working before. It is working for me now/still. Did you fix it?
+ 2
Yup it's working now🔥
+ 1
But It used to work before, now it's not working idk. Does they change policies for 3d models?
+ 1
It now appears to be the text file not the correct glb ...
Are you running this outside of Sololearn and running correctly or did you create this inside / on sololearn platform?
+ 1
Yes I created this on sololearn before, u can check the comments
0
Ishwar Tekam the code you presented is off-topic and appears to be spam in nature. Please follow the forum guidelines.
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/discuss/3021159/?ref=app