Liveries panel: fit a new sticker to the largest UV island of its zones (SIX-247) #447

Manually merged
github merged 2 commits from github-bot/gh-447 into gh-pr/447/base 2026-11-27 05:11:46 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 03:36 UTC · original
holdmysocks:claude/livery-fit-island → master · +181 −20 · 2 files · 2 commits · merged 2026-11-27 05:10 UTC

What

Follow-up to the Liveries panel (PR 186): a new sticker is now laid out on the largest UV island of its zones.

A sticker zone can be unwrapped in several pieces that lie apart in the texture (on a car's rear quarter: the outer skin, the sill strip, the arch lip). The first fit took the mean of all of them, which is a place between the pieces, so a new sticker showed only in part and had to be moved by hand (listed under "Not done" in PR 186).

  • The zone survey now finds UV islands: faces of one model and UV set that share a UV point are on one island. Faces on the border between two zones count, so neighbouring zones on one continuous unwrap (a wing and a door) share an island.
  • For the chosen zones, the fit box, the middle that "across / down" are measured from, and the metres per UV unit come from the largest island, not from all mapped faces.
  • When a notable part of the zones lies on other islands (the largest holds under 97 % of the mapped area), the panel says in how many pieces the zones are unwrapped and what share the largest has.
  • --livery-info lists each zone's islands (area and UV box) per UV set.

Checked

  • Car (phoenix_hi), scripted: add a colour mask and click the left rear quarter (zone 71, second UV set: 3 islands of 1.027, 0.039 and 0.001 m²). The sticker now lies whole on the outer panel. Before, it showed only in part.
  • Box truck (benson_hi with its box), scripted: a 4:1 picture on the six panels of the left wall (zones 169 to 174) is fitted at 3.62 m x 0.90 m, as before this change (3.63 m x 0.91 m). The wall's zones lie on 93 islands, 99 % of the area on one; the rest are small details.
  • The livery saved for PR 186 (three stickers on the truck) opens and draws as before.
  • Two new unit tests: a zone with a small piece unwrapped elsewhere is fitted on its large piece at that piece's scale; two zones on one continuous unwrap are fitted together. cargo test -p sixng-gui: 55 pass.

Not decoded / not done

  • A saved sticker on zones with more than one island can shift slightly: its size in metres is now turned into UV units with the largest island's scale, not the mean over all pieces. On the truck the difference is not visible; other vehicles were not compared.
  • A sticker still cannot run from one island onto another.
  • Only the first two UV sets are surveyed; game-placed stickers on the third and fourth set use the game's own numbers and are not affected.
  • Not tried by hand with a mouse.
  • Screenshots are not attached (they show game assets); they were handed to the user directly.
**@⁠holdmysocks** on GitHub · 2026-11-27 03:36 UTC · [original](https://github.com/holdmysocks/SixNG/pull/447) `holdmysocks:claude/livery-fit-island` → `master` · +181 −20 · 2 files · 2 commits · merged 2026-11-27 05:10 UTC ## What Follow-up to the Liveries panel (PR 186): a new sticker is now laid out on the largest UV island of its zones. A sticker zone can be unwrapped in several pieces that lie apart in the texture (on a car's rear quarter: the outer skin, the sill strip, the arch lip). The first fit took the mean of all of them, which is a place between the pieces, so a new sticker showed only in part and had to be moved by hand (listed under "Not done" in PR 186). - The zone survey now finds UV islands: faces of one model and UV set that share a UV point are on one island. Faces on the border between two zones count, so neighbouring zones on one continuous unwrap (a wing and a door) share an island. - For the chosen zones, the fit box, the middle that "across / down" are measured from, and the metres per UV unit come from the largest island, not from all mapped faces. - When a notable part of the zones lies on other islands (the largest holds under 97 % of the mapped area), the panel says in how many pieces the zones are unwrapped and what share the largest has. - `--livery-info` lists each zone's islands (area and UV box) per UV set. ## Checked - Car (`phoenix_hi`), scripted: add a colour mask and click the left rear quarter (zone 71, second UV set: 3 islands of 1.027, 0.039 and 0.001 m²). The sticker now lies whole on the outer panel. Before, it showed only in part. - Box truck (`benson_hi` with its box), scripted: a 4:1 picture on the six panels of the left wall (zones 169 to 174) is fitted at 3.62 m x 0.90 m, as before this change (3.63 m x 0.91 m). The wall's zones lie on 93 islands, 99 % of the area on one; the rest are small details. - The livery saved for PR 186 (three stickers on the truck) opens and draws as before. - Two new unit tests: a zone with a small piece unwrapped elsewhere is fitted on its large piece at that piece's scale; two zones on one continuous unwrap are fitted together. `cargo test -p sixng-gui`: 55 pass. ## Not decoded / not done - A saved sticker on zones with more than one island can shift slightly: its size in metres is now turned into UV units with the largest island's scale, not the mean over all pieces. On the truck the difference is not visible; other vehicles were not compared. - A sticker still cannot run from one island onto another. - Only the first two UV sets are surveyed; game-placed stickers on the third and fourth set use the game's own numbers and are not affected. - Not tried by hand with a mouse. - Screenshots are not attached (they show game assets); they were handed to the user directly.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:42:01 +00:00
github-bot changed target branch from master to gh-pr/447/base 2026-11-27 05:11:45 +00:00
github manually merged commit 05617f5311 into gh-pr/447/base 2026-11-27 05:11:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.