You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UnityGLTF library interpreted this to mean int32, however from what I can tell from the JSON specification (http://ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) and this GitHub thread (jqlang/jq#143) JSON does not actually specify how large the number field can be for integers (though it is usually interpreted to be int53 based on JavaScript's interpretation of Number).
The questions is:
Is the UnityGLTF library non-conformant in that it should accept buffers larger than int32 (either uint32, int53, or uint64)? Which would mean that GLB serialization would fail if given a buffer larger than uint32?
The text was updated successfully, but these errors were encountered:
I am writing a GLB exporter for the UnityGLTF library: https://github.com/KhronosGroup/UnityGLTF
In doing this I have become confused as to what the max buffer size is. The GLB specification clearly states that it only deals in uint32's for all sizes of buffers and the glb itself: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#binary-gltf-layout
However, buffer size for referencing .bin's is less clear. The specification simply says "integer": https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-buffer
The UnityGLTF library interpreted this to mean int32, however from what I can tell from the JSON specification (http://ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) and this GitHub thread (jqlang/jq#143) JSON does not actually specify how large the number field can be for integers (though it is usually interpreted to be int53 based on JavaScript's interpretation of Number).
The questions is:
Is the UnityGLTF library non-conformant in that it should accept buffers larger than int32 (either uint32, int53, or uint64)? Which would mean that GLB serialization would fail if given a buffer larger than uint32?
The text was updated successfully, but these errors were encountered: