UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Import error for Box.glb from official Khronos glTF examples

Open dff180 opened this issue 8 years ago • 2 comments

This official Khronos sample file for an untextured box

https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/Box/glTF-Binary/Box.glb

causes an import error for me when imported into Unity Editor (2017.2.1f1) via drag&drop (GLTFImporter):

  • GLTFHeaderInvalidException: File length does not match chunk header.

Observations:

  • File works when loaded at runtime via GLTF Component script
  • ParseJson() changes stream.Position when importing in Editor (>0)
  • ParseJson() does not change stream.Position when loading at runtime (=0)
  • The following Unity importer works fine with Box.gbl: https://github.com/thinksquirrel/chipmunk-unity
    • ParseJson() does not change here stream.Position when importing in Editor
  • Textured version BoxTextured.glb imports fine, untextured version Box.gbl has import problem

dff180 avatar Apr 12 '18 14:04 dff180

I have noticed I get this error too from models that were exported from Substance Painter.

NDrexlAxonom avatar Apr 23 '18 18:04 NDrexlAxonom

Fixed in latest release

robertdorn83 avatar Feb 09 '24 08:02 robertdorn83