Jump to content

glTF loader error on buffer length and chunk length


keero
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...