glb_inspect: show normal, metallic-roughness, occlusion and emissive maps #1747
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1747"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-25T11:04:08Z.
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.pyon 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.pyandgit diff --checkpassed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only metadata inspection).
AI-assisted: Yes.
Checklist
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-25T11:19:52Z.
Review: COMMENTED
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.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T11:38:16Z.
#1747 | head
bd605a6fb3(merged cleanly with main4a54aedcb) |python -I tests/test_glb_inspect.py| red on main:FAILED (errors=1, skipped=6)(KeyError: 'additional_textures') | green on PR+main:37 tests OK (skipped=6)| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_material_report,_texture_name, andformat_reportintools/glb_inspect.py(resolving declaredmetallicRoughnessTexture,normalTexture,occlusionTexture, andemissiveTexturebindings, includingEXT_texture_webpsources and invalid/missing texture indices without fabricating entries when omitted). Also verified clean merge (0conflicts) and combined execution with #1746 (40 tests OK (skipped=6)), plustests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:28:10Z.
Red/green: tests/test_glb_inspect.py fails on main (KeyError: 'additional_textures') and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)