glb_inspect: show normal, metallic-roughness, occlusion and emissive maps #1747

Open
github-bot wants to merge 1 commit from github-bot/gh-1747 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-25 11:04 UTC · original
kirigayakazima:codex/glb-inspect-material-maps → main · +33 −2 · 2 files · 1 commits · open

Claimed in the coordination issue as: GLB-INSPECT-MATERIAL-MAPS

What and why

The character exporter writes normal and metallic-roughness textures, but the inspector only listed base color. The inspector now shows all other core material texture roles that were actually declared. Both reports use the existing image resolution rules, including extension images. A material without those roles retains its existing report shape.

Tested

The synthetic test covers all four roles, two roles sharing an extension image, an invalid boolean index and an unresolved declared index. An existing exact JSON comparison covers materials without additional maps.

  • python -I tests/test_glb_inspect.py on Windows with Python 3.14.7 ran 37 tests on this branch with one platform skip. The new tests also failed against the original inspector.
  • python -I scripts/check_no_game_data.py tools/glb_inspect.py tests/test_glb_inspect.py and git diff --check passed.
  • The shared base at bcaa13da passed 6,287 semantic tests across 488 files.

GPUs tested: N/A (CPU-only metadata inspection).
AI-assisted: Yes.

Checklist

  • Based on current upstream main.
  • One topic.
  • All test inputs are synthetic. No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-25 11:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1747) `kirigayakazima:codex/glb-inspect-material-maps` → `main` · +33 −2 · 2 files · 1 commits · open Claimed in the coordination issue as: [GLB-INSPECT-MATERIAL-MAPS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why The character exporter writes normal and metallic-roughness textures, but the inspector only listed base color. The inspector now shows all other core material texture roles that were actually declared. Both reports use the existing image resolution rules, including extension images. A material without those roles retains its existing report shape. ### Tested The synthetic test covers all four roles, two roles sharing an extension image, an invalid boolean index and an unresolved declared index. An existing exact JSON comparison covers materials without additional maps. - `python -I tests/test_glb_inspect.py` on Windows with Python 3.14.7 ran 37 tests on this branch with one platform skip. The new tests also failed against the original inspector. - `python -I scripts/check_no_game_data.py tools/glb_inspect.py tests/test_glb_inspect.py` and `git diff --check` passed. - The shared base at `bcaa13da` passed 6,287 semantic tests across 488 files. GPUs tested: N/A (CPU-only metadata inspection). AI-assisted: Yes. ### Checklist - [x] Based on current upstream main. - [x] One topic. - [x] All test inputs are synthetic. No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:03:34 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-25 11:19 UTC · original · reviewed

Independent check at "bd605a6f". Windows: 36 tests reported, 1 platform skip. An extra CLI check resolved normalTexture through a KHR_texture_basisu image URI and emissiveTexture through a named core image. The JSON reported both roles and used the name in preference to the second image URI.

AI-assisted review and CPU-only testing with synthetic inputs.

**@⁠lixonik** on GitHub · 2026-11-25 11:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1747#pullrequestreview-6056671213) · **reviewed** Independent check at "bd605a6f". Windows: 36 tests reported, 1 platform skip. An extra CLI check resolved normalTexture through a KHR_texture_basisu image URI and emissiveTexture through a named core image. The JSON reported both roles and used the name in preference to the second image URI. AI-assisted review and CPU-only testing with synthetic inputs.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1747/head:github-bot/gh-1747'
git switch 'github-bot/gh-1747'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1747'
git switch 'github-bot/gh-1747'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1747'
git switch 'github-bot/gh-1747'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1747'
git switch 'main'
git merge --squash 'github-bot/gh-1747'
git switch 'main'
git merge --ff-only 'github-bot/gh-1747'
git switch 'main'
git merge 'github-bot/gh-1747'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.