People: hair grown full, checked against the head, stored hair colour #80

Manually merged
github merged 1 commit from gh-pr/80/head into gh-pr/80/base 2026-11-26 20:08:18 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 21:11 UTC · original
holdmysocks:claude/people-hair-full → master · +118 −7 · 5 files · 1 commits · merged 2026-11-23 21:26 UTC

Follow-up to #78, which was merged before this commit was pushed.

What this does

  • A character's hair is grown to its stored strand count and drawn 6 mm wide (--hair-width MM), so it reads as hair instead of guide strands. The strand count is capped per piece: long hair exceeded the 256 MiB vertex buffer limit and crashed the viewer.
  • Pieces whose strand roots do not lie on the character's head are left out (neutral body shape only).
  • HairLinks::uncontested: a piece two neighbouring assets claim goes to the stronger claim.
  • Placements of 20 % or more are shown at the start when every piece is rooted on the head; the panel shows the percentage.
  • Hair items that name ped_tint_hair give the hair colour (row tint 0). Most hair items leave the colour to the game; those start dark, with the colour picker.
  • Strand materials are matte.

Verified

  • Twelve characters rendered on the integrated GPU: eleven show hair (dreadlocks, afros, fades, long hair, a beard); the one that crashed renders now.
  • cargo test --workspace: 144 core and 12 viewer tests pass.

Not verified / known limits

  • How many of the 114 characters with a 20 to 50 % placement are now shown was not recounted.
  • player_story000_00 has no grooms placed for its ponytail and stays bald.
  • One long-haired character keeps a stray swept piece that is one of its own five pieces.
  • Hats do not flatten hair. The palette hash fcef23e3 that some hair items name is not in the tint dictionary.

Files

crates/sixng-gui/src/model_view.rs, main.rs, crates/sixng-core/src/hairlink.rs, README.md, one research example.

**@⁠holdmysocks** on GitHub · 2026-11-23 21:11 UTC · [original](https://github.com/holdmysocks/SixNG/pull/80) `holdmysocks:claude/people-hair-full` → `master` · +118 −7 · 5 files · 1 commits · merged 2026-11-23 21:26 UTC Follow-up to #78, which was merged before this commit was pushed. ## What this does - A character's hair is grown to its stored strand count and drawn 6 mm wide (`--hair-width MM`), so it reads as hair instead of guide strands. The strand count is capped per piece: long hair exceeded the 256 MiB vertex buffer limit and crashed the viewer. - Pieces whose strand roots do not lie on the character's head are left out (neutral body shape only). - `HairLinks::uncontested`: a piece two neighbouring assets claim goes to the stronger claim. - Placements of 20 % or more are shown at the start when every piece is rooted on the head; the panel shows the percentage. - Hair items that name `ped_tint_hair` give the hair colour (row tint 0). Most hair items leave the colour to the game; those start dark, with the colour picker. - Strand materials are matte. ## Verified - Twelve characters rendered on the integrated GPU: eleven show hair (dreadlocks, afros, fades, long hair, a beard); the one that crashed renders now. - `cargo test --workspace`: 144 core and 12 viewer tests pass. ## Not verified / known limits - How many of the 114 characters with a 20 to 50 % placement are now shown was not recounted. - `player_story000_00` has no grooms placed for its ponytail and stays bald. - One long-haired character keeps a stray swept piece that is one of its own five pieces. - Hats do not flatten hair. The palette hash `fcef23e3` that some hair items name is not in the tint dictionary. ## Files `crates/sixng-gui/src/model_view.rs`, `main.rs`, `crates/sixng-core/src/hairlink.rs`, `README.md`, one research example.
A character's hair is grown to its stored strand count (capped per piece:
long hair exceeded the 256 MiB vertex buffer limit) and drawn 6 mm wide.
Pieces whose strand roots do not lie on the character's head are left out,
and a piece two neighbouring assets claim goes to the stronger claim.
Placements of 20 % or more are shown when every piece is rooted on the head.
Hair items that name ped_tint_hair give the hair colour (row tint 0).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:08:16 +00:00
github manually merged commit 0548777408 into gh-pr/80/base 2026-11-26 20:08:18 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.