keero Posted November 13, 2017 Share Posted November 13, 2017 Hi all, I am trying to load the gltf/glb file using BJS, and encountered the following error. _______________________________________________ babylon.max.js:6657 Binary buffer length (25997538) from JSON does not match chunk length (25997540) glTF Loader: Array buffer allocation failed _________________________________________________________________ The error will crash the browser. May I know what is this error about? Am not very familiar with the requirements of the gltf. I converted from sketchup to gltf and glb using the Khronos plugin. Have just attached the sketchup here. It will load on three.js though. Thank you. Central Train Station London Underground.skp Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 13, 2017 Share Posted November 13, 2017 Hi @keero, Welcome to the forum! 1) Have you included the gltf loader's script in your page? 2) Does the file end with .gltf (or .glb)? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 13, 2017 Share Posted November 13, 2017 ping @bghgary Quote Link to comment Share on other sites More sharing options...
bghgary Posted November 13, 2017 Share Posted November 13, 2017 Quote Binary buffer length (25997538) from JSON does not match chunk length (25997540) @keero This is just a warning. It shouldn't cause the loader to fail. I need to relax the warning as binary buffer length can now be up to 3 bytes samller than actual chunk length. See here: https://github.com/KhronosGroup/glTF/issues/1026 Do you have the converted glTF or GLB file? That will help a lot. Quote Link to comment Share on other sites More sharing options...
keero Posted November 14, 2017 Author Share Posted November 14, 2017 Hi @bghgary, @Deltakosh and @RaananW, Thank you for the quick response. Please find a link to the files below I used for testing. https://drive.google.com/drive/folders/1tXFnDkArMIQbONywCqPgMEtmA9HQvIA5 Inside are the following files: 1. The original Sketchup File 2. The converted files from Khronos plugin for sketchup, which has one gltf, one glb, and one "paint glb" version. 3. Loader_babylon is the one I used to test the loading for babylon. 4. Screenshot is one from threejs, with the loader3js used. Hope these are fine. If I used the babylon loader wrongly do let me know too. Thank you! Quote Link to comment Share on other sites More sharing options...
keero Posted November 20, 2017 Author Share Posted November 20, 2017 Hi all, I have further test it on firefox, and it too is not working. I test it with the duck gltf, and its working in firefox and chrome. This is confusing to me. Is it the size of the gltf/glb, or how is it rendered? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 20, 2017 Share Posted November 20, 2017 Hello, do you mind creating an issue on the repo? I would like to have more in depth look into your problem (do not forget to add a link to your gltf file and a description of the project) 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.