2 ms·
> One trick you can use is to prefix a file with some JSON or other readable value, then dump the binary afterwards. The GLB container (binary glTF) works almo
by omoikane 1y ago
> One trick you can use is to prefix a file with some JSON or other readable value, then dump the binary afterwards.
The GLB container (binary glTF) works almost exactly as you described, except there is a fixed size header before the JSON part.
https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#binary-gltf-layout https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#bi...