Upload model to website doesnt work from your site


(Gavriel Rionely) #1

im trying to upload GLTF file that i downloaded from your site to a website with ‘three.js’ and it doesnt work. with other GLTF files from other sites it works. help plz.


(Waleguene) #2

Hi @Gavriel.Rionely,

Could you share the model you are trying to load in Three.js so that we can investigate ?
Thanks


(Gavriel Rionely) #3

no matter which GLTF i try with (from the free models) i cant put it on website.
for example: https://sketchfab.com/models/d5ca33dacf10459a92a8de25fb362a23


(Waleguene) #4

@Gavriel.Rionely Ok thanks.
From what I see it seems to be an issue with the loader and not the model.

For example, this model loads in https://gltf-viewer.donmccurdy.com/

However, the model is not perfect regarding glTF validity. The glTF validator generates a few warnings (that are known and should be fixed soon). If the loader uses a strict validation and fails if it detects anything, it could explain the result.

Also, it could be an issue with the version of the glTF. Our models are exported in glTF 2.0, but if the loader is still on glTF 1.0, as there is no retro-compatibility between major versions, it will not be able to load it.

Can you share the url of the website you’re talking about ? We should be able to quickly find these info.

Thanks