Checks run: :format:jvmTest green (60 glTF tests, 59 without a corpus), :format:compileKotlinIosArm64 compiles the common code, and verify/verify.py in the design repo passes 30 checks that prove the same numbers the tests pin.
Work tracked in https://git.ruv.wtf/litruv/umamo/issues/1. The decision comment is https://git.ruv.wtf/litruv/umamo/issues/1#issuecomment-1002.
Scope is the `:format` module only: GLB container rules, buffer views, accessors, scene graph, skins. No rendering, no UI, no export.
Design lives in https://git.ruv.wtf/litruv/umamo-reference-layer (`docs/spec.md`, `docs/seams.md`, `docs/pr-stack.md`).
Checks run: `:format:jvmTest` green (60 glTF tests, 59 without a corpus), `:format:compileKotlinIosArm64` compiles the common code, and `verify/verify.py` in the design repo passes 30 checks that prove the same numbers the tests pin.
Container rules: JSON chunk first, BIN second, chunk length multiple of 4,
declared total length must equal actual, unknown chunk types skipped, duplicate
known types refused.
Accessor rules: byteOffset must be a multiple of the component size, reads must
stay inside byteLength, sparse refused, normalized not applied, component type
5124 (INT) added.
FileRole.Reference and FileKind.Gltf added; codec registered in FormatRegistry.
Tests: 60 glTF tests (59 run without a corpus), `:format:jvmTest` green.
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.
Some required checks failed
Verification / build (pull_request) Failing after 9m17s
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Work tracked in #1. The decision comment is #1 (comment).
Scope is the
:formatmodule only: GLB container rules, buffer views, accessors, scene graph, skins. No rendering, no UI, no export.Design lives in https://git.ruv.wtf/litruv/umamo-reference-layer (
docs/spec.md,docs/seams.md,docs/pr-stack.md).Checks run:
:format:jvmTestgreen (60 glTF tests, 59 without a corpus),:format:compileKotlinIosArm64compiles the common code, andverify/verify.pyin the design repo passes 30 checks that prove the same numbers the tests pin.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.