Hair export: strand widths from the game's parameter ramps #482

Manually merged
github merged 1 commit from github-bot/gh-482 into gh-pr/482/base 2026-11-27 18:18:44 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 18:02 UTC · original
holdmysocks:people/mandy-export → master · +65 −10 · 3 files · 1 commits · merged 2026-11-27 18:13 UTC

The character hair export (outfit --hair) wrote every strand at the groom's flat width: 0.3 mm with no taper. Lashes and brows came out as thick black brushes, and long hair looked wiry.

Each piece now takes the strand parameter set its hair asset names, or the slot's default when it names none, the same way the viewer picks it. Each point's _WIDTH is the strand variant's ramp width times its thickness curve. Each piece names the set it used in its extras (param_set).

For one character (look 0), the widths now come out as:

Piece Before After
Hair flat 0.22–0.30 mm 0.04–0.24 mm, tapering to the tip
Brows flat 0.30 mm 0.02–0.14 mm
Lashes flat 0.30 mm 0.01–0.19 mm

In Blender renders made with scripts/blender_hair_curves.py, the lashes and brows now look natural and the hair is finer.

  • hairexport: adds slot_param_set, ramp_width and piece_with. piece keeps its old behaviour.
  • DEFAULT_PARAMSETS moves from the viewer to hairexport, so the viewer and the export share it.
  • Adds a unit test for a tapered variant and a flat one.
**@⁠holdmysocks** on GitHub · 2026-11-27 18:02 UTC · [original](https://github.com/holdmysocks/SixNG/pull/482) `holdmysocks:people/mandy-export` → `master` · +65 −10 · 3 files · 1 commits · merged 2026-11-27 18:13 UTC The character hair export (`outfit --hair`) wrote every strand at the groom's flat width: 0.3 mm with no taper. Lashes and brows came out as thick black brushes, and long hair looked wiry. Each piece now takes the strand parameter set its hair asset names, or the slot's default when it names none, the same way the viewer picks it. Each point's `_WIDTH` is the strand variant's ramp width times its thickness curve. Each piece names the set it used in its extras (`param_set`). For one character (look 0), the widths now come out as: | Piece | Before | After | |---|---|---| | Hair | flat 0.22–0.30 mm | 0.04–0.24 mm, tapering to the tip | | Brows | flat 0.30 mm | 0.02–0.14 mm | | Lashes | flat 0.30 mm | 0.01–0.19 mm | In Blender renders made with `scripts/blender_hair_curves.py`, the lashes and brows now look natural and the hair is finer. - `hairexport`: adds `slot_param_set`, `ramp_width` and `piece_with`. `piece` keeps its old behaviour. - `DEFAULT_PARAMSETS` moves from the viewer to `hairexport`, so the viewer and the export share it. - Adds a unit test for a tapered variant and a flat one.
The character hair export wrote every strand at the groom's flat width
(0.3 mm, no taper), so lashes and brows came out as thick black brushes
and long hair looked wiry. Each piece now takes the strand parameter set
its hair asset names (else the slot's default, as the viewer does), and
each point's _WIDTH is the variant's ramp width times its thickness
curve. Pieces name the set in their extras (param_set).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:07:53 +00:00
github-bot changed target branch from master to gh-pr/482/base 2026-11-27 18:18:42 +00:00
github manually merged commit adb05f1b70 into gh-pr/482/base 2026-11-27 18:18:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.