People: clean fabric shading, hair colour swatches, other hair styles #100

Manually merged
github merged 4 commits from gh-pr/100/head into gh-pr/100/base 2026-11-26 20:09:51 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 02:20 UTC · original
holdmysocks:claude/people-cloth → master · +98 −9 · 4 files · 4 commits · merged 2026-11-24 02:27 UTC

Follow-up to #78 to #90.

What this does

  • Fabric shade. Ped clothing was shaded with the green channel of speculartex2, so every garment came out mottled. The shade is now the green channel of the garment's own packed map (speculartex), mid grey on plain cloth with seams and folds; speculartex2 stays the fallback when a garment has no packed map. The viewer re-exports cached garments once.
  • Hair colour. The Character panel lists the colours of the game's hair palette (ped_tint_hair, each row at mid shade) as swatches; --hair-colour r,g,b for screenshots.
  • Other hair styles. The panel lists the character's own hair placeholders that have grooms placed, to tick; --hair-style TEXT for screenshots.
  • README: what the clothing shader does with the two packed maps.

Verified

  • Rendered on the integrated GPU: six characters with the new shade (tank tops, T-shirts, a jacket, trousers all clean); --hair-colour; player_story000_00 with four of her other styles.
  • After rebasing on #98, one character renders pixel-identical to before the rebase.
  • cargo test --workspace: 144 core and 12 viewer tests pass.
  • The shader reading comes from the shader research session (ped_standard_muv, pass PS_DeferredPedTexturedNC_28d6614a): speculartex G is overlaid on the base colour and B added as linear light, both neutral at 0.5; R masks a second colour set; speculartex2 never enters the colour (G modulates gloss, R is the amount of a wear overlay).

Not verified / known limits

  • The viewer applies speculartex G only, as a multiply about mid grey. The shader's pivots, powers and strengths are per-material numbers in a run-time parameter block that was not found; B is left out.
  • In the game the base colour is a three-stop gradient over a tiling fabric texture named only in that block, with up to eight sub-materials; the viewer shows one flat colour per garment and no weave. Second and third tints stay unapplied.
  • The palette swatches were not seen drawn (they sit below the visible part of the panel in the capture); --hair-colour was.
  • player_story000_00's default ponytails have no groom files in the install: packs, both story packs and the other packs were scanned (the only other grooms are 13 pieces rooted at the pelvis in core_restofworld). Her other styles are placed at 15 to 20 %, and which of her styles a piece belongs to is visibly not settled.
  • Only the muv shader variant was read; the cutout variant and the _secmo effect were not.
  • macOS Metal renderer not run.

Files

crates/sixng-core/src/export.rs (the ped tint bake only), crates/sixng-gui/src/model_view.rs (character code), main.rs (flags), README.md.

**@⁠holdmysocks** on GitHub · 2026-11-24 02:20 UTC · [original](https://github.com/holdmysocks/SixNG/pull/100) `holdmysocks:claude/people-cloth` → `master` · +98 −9 · 4 files · 4 commits · merged 2026-11-24 02:27 UTC Follow-up to #78 to #90. ## What this does - **Fabric shade.** Ped clothing was shaded with the green channel of `speculartex2`, so every garment came out mottled. The shade is now the green channel of the garment's own packed map (`speculartex`), mid grey on plain cloth with seams and folds; `speculartex2` stays the fallback when a garment has no packed map. The viewer re-exports cached garments once. - **Hair colour.** The Character panel lists the colours of the game's hair palette (`ped_tint_hair`, each row at mid shade) as swatches; `--hair-colour r,g,b` for screenshots. - **Other hair styles.** The panel lists the character's own hair placeholders that have grooms placed, to tick; `--hair-style TEXT` for screenshots. - README: what the clothing shader does with the two packed maps. ## Verified - Rendered on the integrated GPU: six characters with the new shade (tank tops, T-shirts, a jacket, trousers all clean); `--hair-colour`; `player_story000_00` with four of her other styles. - After rebasing on #98, one character renders pixel-identical to before the rebase. - `cargo test --workspace`: 144 core and 12 viewer tests pass. - The shader reading comes from the shader research session (`ped_standard_muv`, pass `PS_DeferredPedTexturedNC_28d6614a`): `speculartex` G is overlaid on the base colour and B added as linear light, both neutral at 0.5; R masks a second colour set; `speculartex2` never enters the colour (G modulates gloss, R is the amount of a wear overlay). ## Not verified / known limits - The viewer applies `speculartex` G only, as a multiply about mid grey. The shader's pivots, powers and strengths are per-material numbers in a run-time parameter block that was not found; B is left out. - In the game the base colour is a three-stop gradient over a tiling fabric texture named only in that block, with up to eight sub-materials; the viewer shows one flat colour per garment and no weave. Second and third tints stay unapplied. - The palette swatches were not seen drawn (they sit below the visible part of the panel in the capture); `--hair-colour` was. - `player_story000_00`'s default ponytails have no groom files in the install: packs, both story packs and the other packs were scanned (the only other grooms are 13 pieces rooted at the pelvis in core_restofworld). Her other styles are placed at 15 to 20 %, and which of her styles a piece belongs to is visibly not settled. - Only the muv shader variant was read; the cutout variant and the `_secmo` effect were not. - macOS Metal renderer not run. ## Files `crates/sixng-core/src/export.rs` (the ped tint bake only), `crates/sixng-gui/src/model_view.rs` (character code), `main.rs` (flags), `README.md`.
Ped clothing was shaded with the green channel of speculartex2, which is a
grime pattern in the garment's layout: every garment came out mottled. The
shade is now the green channel of the garment's own packed map
(speculartex), mid grey on plain cloth with seams and folds; speculartex2
stays the fallback when a garment has no packed map. The viewer re-exports
cached garments once.
The Character panel lists the colours of the game's hair palette
(ped_tint_hair, each row at mid shade) as swatches to pick from, since most
hair items store no colour. --hair-colour r,g,b sets it for screenshots.
The Character panel lists the character's own hair placeholders that have
grooms placed, to tick instead of (or when there is no) default hair;
--hair-style shows one for screenshots. player_story000_00's default
ponytails have no groom files in the install.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:09:49 +00:00
github manually merged commit 9b3b2cb599 into gh-pr/100/base 2026-11-26 20:09:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.