cx20 Posted August 10, 2018 Share Posted August 10, 2018 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 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 10, 2018 Share Posted August 10, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 10, 2018 Share Posted August 10, 2018 So the error seems totally related to the one of the gltf validator: 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. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 10, 2018 Share Posted August 10, 2018 I updated the draco loader and it seems all good. I will publish it as part of the nightly. Thanks for reporting the issue. Thanks for reporting the issue. https://github.com/BabylonJS/Babylon.js/pull/4921 cx20 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 10, 2018 Share Posted August 10, 2018 Deployed. It now works in the sandbox: Quote Link to comment Share on other sites More sharing options...
cx20 Posted August 11, 2018 Author Share Posted August 11, 2018 I confirmed that the model will be displayed with the latest BabylonJS Sandbox. I have reported validation errors to the Sketchfab Forum. https://forum.sketchfab.com/t/many-validation-errors-occur-in-littlesttokyo-gltf-model/22923 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.