Export: readable materials.json beside each model #140

Manually merged
github merged 1 commit from gh-pr/140/head into gh-pr/140/base 2026-11-26 20:12:52 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 12:12 UTC · original
holdmysocks:claude/people-material-file → master · +92 −1 · 2 files · 1 commits · merged 2026-11-24 12:25 UTC

Second half of #133: model exports now write a readable material file.

What changes

  • Every exported model gets materials.json next to model.glb and model.json.
  • Per material it lists the shader, the textures by slot (file, size, format, guessed role, status) and the parameter values.
  • Shader, slot and parameter keys are names where the name is known, else the 8-digit hash.
  • Parameters whose values lie outside the material's constant block are listed under parameters_not_read.
  • model.json is unchanged and still holds the full technical record.

Checked

  • Workspace tests pass, with a new unit test for the file's layout.
  • Exported one garment model and read the file: one material, three texture slots, five parameter values.

Not covered

  • What each parameter does is not decoded; values are written as stored.
  • A model exported before this change keeps its cached folder, so it gets the file only when exported again to a fresh folder.
  • The first half of #133 (extra head maps) is separate work.
**@⁠holdmysocks** on GitHub · 2026-11-24 12:12 UTC · [original](https://github.com/holdmysocks/SixNG/pull/140) `holdmysocks:claude/people-material-file` → `master` · +92 −1 · 2 files · 1 commits · merged 2026-11-24 12:25 UTC Second half of #133: model exports now write a readable material file. ## What changes - Every exported model gets `materials.json` next to `model.glb` and `model.json`. - Per material it lists the shader, the textures by slot (file, size, format, guessed role, status) and the parameter values. - Shader, slot and parameter keys are names where the name is known, else the 8-digit hash. - Parameters whose values lie outside the material's constant block are listed under `parameters_not_read`. - `model.json` is unchanged and still holds the full technical record. ## Checked - Workspace tests pass, with a new unit test for the file's layout. - Exported one garment model and read the file: one material, three texture slots, five parameter values. ## Not covered - What each parameter does is not decoded; values are written as stored. - A model exported before this change keeps its cached folder, so it gets the file only when exported again to a fresh folder. - The first half of #133 (extra head maps) is separate work.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:12:51 +00:00
github manually merged commit c3c4d9ffa2 into gh-pr/140/base 2026-11-26 20:12:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.