Viewer: Liveries panel to place stickers on a vehicle by hand #186
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!186
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/186/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 17:38 UTC · original
holdmysocks:claude/livery-editor→master· +1249 −33 · 5 files · 15 commits · merged 2026-11-24 18:55 UTCWhat
Third step of the custom livery editor (SIX-122): a Liveries panel in the model viewer to place stickers on the loaded vehicle by hand. It builds on PR 172 (sticker textures and zones) and PR 176 (drawing), both merged; master is merged into this branch.
With a vehicle loaded, "Liveries" in the side panel opens a floating window:
<work>/liveries/<vehicle>.json, which is read again whenever that vehicle opens. "File" saves a copy elsewhere or opens another livery file.a b c d ou ov, as the game's sticker records hold them) and the panels' metres per UV unit, for comparing with the game's layout numbers (SIX-109).Also in this PR:
389206d1) carry the second colour stream too, but its fourth byte is not a sticker zone there. The loader clears their zone data, so they take no stickers and a click passes through them to the wall behind.--livery-panel,--livery-picker,--livery-select N,--livery-add ID[:mask],--livery-click "x,y;x,y"(clicks at fractions of the view),--livery-drag "x,y",--livery-tool zones|move,--livery-save. A scripted screenshot waits for them and for the picker's thumbnails.Checked
All by scripted runs of the release build (clicks and the drag go through the same picking and placing code as the mouse):
benson_hiwithtruckbeds_box_01_hi): run 1 adds a 4:1 game picture and clicks the six panels of the left box wall; the sticker ends on zones 169 to 174 of the box, fitted to the wall (3.63 m x 0.91 m), and is saved. Run 2 adds a colour mask on the same wall and drags it to the rear of the wall; saved. Run 3 adds a third and clicks the cab door; it moves to the vehicle itself, zone 24; saved. Run 4 opens the truck with no livery options: all three are back, as the saved file says. So: three stickers on different panels, two of them on the same side wall, each placed, saved and shown again after a reload.phoenix_hi): a picture across the front wing and the door (zones 83 and 25; it runs over the seam without a break), a mask on the rear quarter (zone 71), a mask on the fitted bonnet (its own model, zone 1). Saved, reopened, shown again.cargo test -p sixng-gui livery) pass: upright and metric placement whatever the UV direction, fit, ray picking with and without boxes, metres to UV and back, file round trip.cargo build --release -p sixng-cli -p sixng-guipasses without warnings.Not decoded / not done
metal4-poc) does not draw stickers and was not built here. Read instead: it copies the viewer's vertices field by field into its own layout (vertex4), so the vertex's new zone field (PR 172) needs no change there.