A way of finding related textures #18

Closed
opened 2026-11-26 20:03:24 +00:00 by github-bot · 3 comments
Owner

@⁠moosedonkeycow14 on GitHub · 2026-11-22 22:05 UTC · original

I'm looking through the textures and I found a base color but can't find the the other textures like rma and normal maps etc and just wondering if you could add a feature to find help find related textures maybe through materials

**@⁠moosedonkeycow14** on GitHub · 2026-11-22 22:05 UTC · [original](https://github.com/holdmysocks/SixNG/issues/18) I'm looking through the textures and I found a base color but can't find the the other textures like rma and normal maps etc and just wondering if you could add a feature to find help find related textures maybe through materials
github-bot 2026-11-26 20:03:24 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:03:25 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-23 00:52 UTC · original

Each exported model's model.json → materials[] lists every texture slot of the material (base colour, normal, the packed roughness/metal map …) with its texture hash, so the related maps are there today via the model. I'll add a "used by" view to the Textures tab that shows a texture's materials and their other slots.

**@⁠holdmysocks** on GitHub · 2026-11-23 00:52 UTC · [original](https://github.com/holdmysocks/SixNG/issues/18#issuecomment-7088702666) Each exported model's `model.json` → `materials[]` lists every texture slot of the material (base colour, normal, the packed roughness/metal map …) with its texture hash, so the related maps are there today via the model. I'll add a "used by" view to the Textures tab that shows a texture's materials and their other slots.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-23 02:12 UTC · original

The "Used by" view is on master now (ee8481c). It will be in the next release.

  • In the Textures tab, pick a texture. The Used by panel on the right lists the materials that use it, most-used first.
  • Each material shows its shader and all its texture slots: base colour, normal map, the packed roughness/metal map and so on. Click a slot's hash to open that texture.
  • A few of the models that use the material are listed too. Click one to open it in the Model viewer.
  • The panel reads an index. The Build index button in the panel, or sixng texture-users, builds it once from the indexed archives. That takes about 10 minutes for the whole game: 349 K models, 1.09 M distinct materials, 391 K textures.
  • From the command line, sixng texture-users --texture <hash> prints the same list as JSON.
**@⁠holdmysocks** on GitHub · 2026-11-23 02:12 UTC · [original](https://github.com/holdmysocks/SixNG/issues/18#issuecomment-7089749450) The "Used by" view is on `master` now (ee8481c). It will be in the next release. - In the Textures tab, pick a texture. The **Used by** panel on the right lists the materials that use it, most-used first. - Each material shows its shader and all its texture slots: base colour, normal map, the packed roughness/metal map and so on. Click a slot's hash to open that texture. - A few of the models that use the material are listed too. Click one to open it in the Model viewer. - The panel reads an index. The **Build index** button in the panel, or `sixng texture-users`, builds it once from the indexed archives. That takes about 10 minutes for the whole game: 349 K models, 1.09 M distinct materials, 391 K textures. - From the command line, `sixng texture-users --texture <hash>` prints the same list as JSON.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-23 04:37 UTC · original

Released in v0.7.0. Pick a texture in the Textures tab and the Used by panel lists its materials, with their other maps and some of the models that use them. Build the index once with Build index or sixng texture-users. Closing; reopen if something's missing.

**@⁠holdmysocks** on GitHub · 2026-11-23 04:37 UTC · [original](https://github.com/holdmysocks/SixNG/issues/18#issuecomment-7091737014) Released in [v0.7.0](https://github.com/holdmysocks/SixNG/releases/tag/v0.7.0). Pick a texture in the Textures tab and the **Used by** panel lists its materials, with their other maps and some of the models that use them. Build the index once with **Build index** or `sixng texture-users`. Closing; reopen if something's missing.
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/holdmysocks--SixNG#18
No description provided.