glb_inspect: show normal, metallic-roughness, occlusion and emissive maps #1747
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1747
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/glb-inspect-material-maps"
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?
Pull request successfully merged and closed
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
#1747 | head bd605a6fb3778601f0d49167b3d6cadf29d260bc (merged cleanly with main 4a54aedcb) |
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.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 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)