kaitai-io / kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
http://formats.kaitai.io
711 stars 204 forks source link

glTF #209

Open KOLANICH opened 5 years ago

KOLANICH commented 5 years ago
meta:
  id: gltf
  title: GL Transmission Format, binary container
  file-extension: glb
  xref:
    wikidata: Q28135989

doc: |
  glTF is a format for distribution of 3D models optimized for being used in software

doc-ref:
  - https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#glb-file-format-specification
generalmimon commented 3 years ago

Oh, we've kind of forgot about this issue after merging https://github.com/kaitai-io/kaitai_struct_formats/pull/445. However, perhaps this issue should not be closed yet, because the current 3d/gltf_binary.ksy is to my taste unfinished and not very useful at this point - it merely parses one character string with JSON data and one byte array with binary data, without any attempt to provide a way of parsing the actual binary structures that are present in that byte block.

My proof of concept in https://github.com/kaitai-io/kaitai_struct_formats/pull/445#discussion_r598117321 can be used as a basis for creating a more in-depth KSY spec, which could then be considered more complete and usable out-of-the-box.