[PR #1753] glb_skinning: accept extra inverse bind matrices #1766

Open
opened 2026-11-26 21:18:53 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1753
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/glb-skinning-surplus-bind-matrices


📝 Commits (1)

  • cdf5bce glb_skinning: accept extra inverse bind matrices

📊 Changes

3 files changed (+26 additions, -8 deletions)

View changed files

📝 docs/character_skeleton.md (+3 -3)
📝 tests/test_glb_skinning.py (+20 -2)
📝 tools/glb_skinning.py (+3 -3)

📄 Description

Claimed in the coordination issue as: GLB-SKINNING-SURPLUS-BIND-MATRICES

What and why

The validator rejected every difference between the joint count and the accessor count. glTF permits an accessor to contain more matrices than a skin uses. The validator now rejects an undersized accessor, reports the actual count and retains its affine checks for the matrices used by joints. The synthetic case shares one accessor between two skins. glTF 2.0 skin specification

Tested

With one three-matrix accessor shared by skins of two joints and one joint, the baseline CLI exited 1 with two count errors. The branch exits 0 and its JSON retains both joint counts and the accessor count. The short-accessor and non-affine joint regressions also pass.

  • python -I tests/test_glb_skinning.py passed all 27 tests on this branch (Windows, Python 3.14.7).
  • git diff --check and the repository game-data scan of all changed paths passed.
  • The five independent changes were also merged locally. Both affected test files passed together (50 tests) and the three character-model consumer suites passed (28 tests). The shared base at bcaa13da passed 6,287 semantic tests across 488 files.

GPUs tested: N/A (CPU-only asset tooling).
AI-assisted: Yes.

Checklist

  • Based on current upstream main.
  • One topic.
  • Only synthetic test fixtures. No game data, keys or decryption.
  • Translator contract table: N/A.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1753 **Author:** [@kirigayakazima](https://github.com/kirigayakazima) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/glb-skinning-surplus-bind-matrices` --- ### 📝 Commits (1) - [`cdf5bce`](https://github.com/ubiquitarianism/leonida/commit/cdf5bce4ea1cff0477a6352ad6b8b79d31e3db38) glb_skinning: accept extra inverse bind matrices ### 📊 Changes **3 files changed** (+26 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/character_skeleton.md` (+3 -3) 📝 `tests/test_glb_skinning.py` (+20 -2) 📝 `tools/glb_skinning.py` (+3 -3) </details> ### 📄 Description Claimed in the coordination issue as: [GLB-SKINNING-SURPLUS-BIND-MATRICES](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160621714) ### What and why The validator rejected every difference between the joint count and the accessor count. glTF permits an accessor to contain more matrices than a skin uses. The validator now rejects an undersized accessor, reports the actual count and retains its affine checks for the matrices used by joints. The synthetic case shares one accessor between two skins. [glTF 2.0 skin specification](https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/Specification.adoc#skins) ### Tested With one three-matrix accessor shared by skins of two joints and one joint, the baseline CLI exited 1 with two count errors. The branch exits 0 and its JSON retains both joint counts and the accessor count. The short-accessor and non-affine joint regressions also pass. - `python -I tests/test_glb_skinning.py` passed all 27 tests on this branch (Windows, Python 3.14.7). - `git diff --check` and the repository game-data scan of all changed paths passed. - The five independent changes were also merged locally. Both affected test files passed together (50 tests) and the three character-model consumer suites passed (28 tests). The shared base at `bcaa13da` passed 6,287 semantic tests across 488 files. GPUs tested: N/A (CPU-only asset tooling). AI-assisted: Yes. ### Checklist - [x] Based on current upstream main. - [x] One topic. - [x] Only synthetic test fixtures. No game data, keys or decryption. - Translator contract table: N/A. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1766
No description provided.