Sign in to follow this  
cx20

LittlestTokyo.glb DRACO format model can not be displayed with sandbox

Recommended Posts

I tried to display the following DRACO format glb model with Babylon JS Sandbox. 

https://github.com/mrdoob/three.js/blob/dev/examples/models/gltf/LittlestTokyo.glb

However, the following error occurred and the model was not displayed.

babylonjs.loaders.min.js:1 
Uncaught (in promise) Error: #/meshes/38/primitives/0: undefined
    at babylonjs.loaders.min.js:1
(anonymous)	@	babylonjs.loaders.min.js:1
Promise.then (async)		
(anonymous)	@	babylonjs.loaders.min.js:1
Promise.then (async)		
p._loadAsync	@	babylonjs.loaders.min.js:1
(anonymous)	@	babylonjs.loaders.min.js:1
Promise.then (async)		
p.loadAsync	@	babylonjs.loaders.min.js:1
(anonymous)	@	babylonjs.loaders.min.js:1
Promise.then (async)		
l.loadAsync	@	babylonjs.loaders.min.js:1
(anonymous)	@	babylon.js:1
f	@	babylon.js:1
n.onload	@	babylon.js:1
load (async)		
m.ReadFile	@	babylon.js:1
P._loadData	@	babylon.js:1
P.Append	@	babylon.js:1
P.Load	@	babylon.js:1
(anonymous)	@	babylon.js:1
P.LoadAsync	@	babylon.js:1
n.reload	@	babylon.js:1
n._processReload	@	babylon.js:1
n.loadFiles	@	babylon.js:1
n.drop	@	babylon.js:1
e._dropHandler	@	babylon.js:1

 

I confirmed that it can be displayed with BabylonJS Sandbox if it is a normal glb file which is not DRACO format.

https://sketchfab.com/models/94b24a60dc1b48248de50bf087c0f042

 

Share this post


Link to post
Share on other sites

I can repro the issue and checked hand it over for a deeper analysis. I ll come back to you shortly.

My main feelings is that the files contains about 2000 error in the gltf validator so potentially not being able to load it.

Share this post


Link to post
Share on other sites

So the  error seems totally related to the one of the gltf validator:

image.thumb.png.344f0b60d0209148162df0b96a7e4fee.png

This happens in the Draco library and my guess is we are using an older version of the library.

The files being not valid (gltf validator errors) means that in theory it should not load anyway.

But as other are able to load it, we will investigate whether we should also add support for it.

@bghgary for follow up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.