Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load external gltf! #3818

Closed
osh opened this issue Apr 7, 2016 · 7 comments
Closed

Failed to load external gltf! #3818

osh opened this issue Apr 7, 2016 · 7 comments

Comments

@osh
Copy link

osh commented Apr 7, 2016

I'm having difficulty loading a gltf model correctly using cesium.
after specifying

...
model : {
uri : '/models/model.gltf',
minimumPixelSize : 64
},
...

I get the attached error message.
have tried generating the gltf using the web-convert as well as manually building COLLADA2GLTF and running it locally. Do you have any suggestions for additional approaches to debugging what could be going wrong here? Thanks! (gltf file provided for reference, generated using local COLLADA2GLTF binary)

image

model.gltf.zip

@lilleyse
Copy link
Contributor

lilleyse commented Apr 7, 2016

The glTF file is referencing some external files which aren't included included in the zip (binary files, images, shaders). Can you send those over as well? Also feel free to send over the dae file.

@osh
Copy link
Author

osh commented Apr 7, 2016

please see original DAE, and converted gltf format attached!
Thanks!

model_dae_original.zip
model_gltf_converted.zip

@lilleyse
Copy link
Contributor

lilleyse commented Apr 7, 2016

I reconverted the dae with Blender and it now loads okay (though it's missing the solar panel texture). I'll try to figure out why the original file doesn't work.
model.zip

@osh
Copy link
Author

osh commented Apr 8, 2016

im still getting the same error with the .gltf you posted

@lilleyse
Copy link
Contributor

lilleyse commented Apr 8, 2016

For my testing I placed the model in Apps/SampleData/models and modified the 3D Models Sandcastle example to load the new model in place of Cesium_Air.

createModel('../../SampleData/models/model.gltf', 5000.0);

Does that work at all?

@osh
Copy link
Author

osh commented Apr 8, 2016

ok actually, updating to latest cesium build 1.20 resolves this 👍 thanks!

@pjcozzi
Copy link
Contributor

pjcozzi commented Apr 11, 2016

Can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants