Files
umamo/module/format
litruv da0d13e101
Verification / build (pull_request) Failing after 9m17s
CI / verify (pull_request) Failing after 9m17s
glTF reader: the rules a real file corrected
Two rules the fixtures asserted in the wrong direction, found by reading CesiumMan.glb:

- MAT4 is an accessor type, and count is the number of elements rather than the number of floats.
  A skin's inverse bind matrices are one MAT4 Float32 accessor whose count is the number of joints,
  and the format allows the count to exceed the joints. The reader required SCALAR and refused the file.
- The BIN chunk type is spelled BIN in the spec and NUL in the files another tool writes, so both
  spellings are accepted, and the chunk codes are built from their characters rather than from a hex
  literal that had the bytes transposed.

The corpus gate now reads the inverse bind matrices, because that is the accessor a skin names and the
one the fixtures could not exercise.

node.matrix is column-major while Mat4 is row-major, and a skin's joints have to be resolved by node
index: in CesiumMan.glb the scene root holds only the mesh node and the nineteen joints hang off a
skeleton node the scene does not reach. Both are recorded on the shapes the reader returns.
2026-11-03 21:05:43 +11:00
..