Liveries: a sticker laid on flat runs across panels and onto other models #509

Manually merged
github merged 1 commit from github-bot/gh-509 into gh-pr/509/base 2026-11-27 21:39:48 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 21:24 UTC · original
holdmysocks:claude/livery-across-models → master · +356 −40 · 5 files · 1 commits · merged 2026-11-27 21:35 UTC

What

A sticker can now run from one model of a vehicle onto another (from a truck's cab onto its fitted box), and across the pieces a panel is unwrapped in.

A sticker was always placed through the UV layout of one model's zones, as the game's own stickers are. Each model has its own layout, so a sticker stopped at the model's edge. The Liveries panel gets a second way to lay a sticker on: flat.

  • "lay it on flat (across panels and models)" in the sticker's controls. The picture is then projected straight onto the vehicle along the normal of the sticker's panels, in the vehicle's own space, on the faces of its zones that look that way (not the far side, not a panel's edges).
  • With it on, clicking a panel of another model adds that panel to the sticker instead of moving the sticker there. The panel lists them ("also on …").
  • Place, size, rotation, mirror and the sliders work as before: the placement is still kept as a centre in the first model's UV set, and on a flat panel a flat sticker lies exactly where the same placement lies without it. Dragging works on every model the sticker lies on.
  • The sticker is projected in the model as stored, so it stays on a door that is opened.
  • The livery file gets flat, also (model and zones) and, for reference, projection (the eleven numbers it was drawn with). Files without them read as before.
  • The GLB export writes a flat sticker as decal meshes on every model it lies on, from the same numbers.
  • --livery-flat for scripted checks.

The game has no such layer; this is the viewer's own, and the panel's hint says so.

Checked

  • Box truck, a sticker 3.2 m × 0.8 m on the six panels of the box's left wall and four zones of the cab, dragged to the wall's front end by a scripted drag: it runs from the wall over the cab door in one piece, and nothing shows on the right side of the vehicle.
  • The export of that livery: decal meshes on the cab (1592 triangles) and on the box (212). Their extents are what the projection gives: 3.2 m along the vehicle and 0.8 m high on both.
  • An ordinary livery (three stickers on the box wall) draws as before.
  • New tests: on a flat panel the flat numbers and the UV numbers give the same place in the picture, also for a point off the panel's plane, and a model point gives its UV point back; one shader record per model; in the export a flat sticker over two models is cut to 2 m × 1 m on each with the picture running on, and a face that looks away takes nothing.
  • cargo test -p sixng-gui: 61 pass. cargo test -p sixng-core vehlivery: 4 pass. cargo build --release -p sixng-gui -p sixng-cli without warnings.

Not decoded / not done

  • Not tried by hand with a mouse: the checkbox, clicking a second model's panels and dragging were run by scripted steps only.
  • A door opened with a flat sticker on it was not looked at closely (the scripted view did not show the door open).
  • On a curved panel the picture is stretched where the surface turns away from the projection, and it stops where the surface turns more than about 75° away. There is no depth limit: every chosen zone that faces the sticker takes it, however far behind.
  • The projection's direction is the normal of the first model's zones; it cannot be set by hand.
  • The Metal renderer still draws no stickers.
  • Screenshots are not attached (they show game assets); they were handed to the user directly.
**@⁠holdmysocks** on GitHub · 2026-11-27 21:24 UTC · [original](https://github.com/holdmysocks/SixNG/pull/509) `holdmysocks:claude/livery-across-models` → `master` · +356 −40 · 5 files · 1 commits · merged 2026-11-27 21:35 UTC ## What A sticker can now run from one model of a vehicle onto another (from a truck's cab onto its fitted box), and across the pieces a panel is unwrapped in. A sticker was always placed through the UV layout of one model's zones, as the game's own stickers are. Each model has its own layout, so a sticker stopped at the model's edge. The Liveries panel gets a second way to lay a sticker on: **flat**. - "lay it on flat (across panels and models)" in the sticker's controls. The picture is then projected straight onto the vehicle along the normal of the sticker's panels, in the vehicle's own space, on the faces of its zones that look that way (not the far side, not a panel's edges). - With it on, clicking a panel of another model adds that panel to the sticker instead of moving the sticker there. The panel lists them ("also on …"). - Place, size, rotation, mirror and the sliders work as before: the placement is still kept as a centre in the first model's UV set, and on a flat panel a flat sticker lies exactly where the same placement lies without it. Dragging works on every model the sticker lies on. - The sticker is projected in the model as stored, so it stays on a door that is opened. - The livery file gets `flat`, `also` (model and zones) and, for reference, `projection` (the eleven numbers it was drawn with). Files without them read as before. - The GLB export writes a flat sticker as decal meshes on every model it lies on, from the same numbers. - `--livery-flat` for scripted checks. The game has no such layer; this is the viewer's own, and the panel's hint says so. ## Checked - Box truck, a sticker 3.2 m × 0.8 m on the six panels of the box's left wall and four zones of the cab, dragged to the wall's front end by a scripted drag: it runs from the wall over the cab door in one piece, and nothing shows on the right side of the vehicle. - The export of that livery: decal meshes on the cab (1592 triangles) and on the box (212). Their extents are what the projection gives: 3.2 m along the vehicle and 0.8 m high on both. - An ordinary livery (three stickers on the box wall) draws as before. - New tests: on a flat panel the flat numbers and the UV numbers give the same place in the picture, also for a point off the panel's plane, and a model point gives its UV point back; one shader record per model; in the export a flat sticker over two models is cut to 2 m × 1 m on each with the picture running on, and a face that looks away takes nothing. - `cargo test -p sixng-gui`: 61 pass. `cargo test -p sixng-core vehlivery`: 4 pass. `cargo build --release -p sixng-gui -p sixng-cli` without warnings. ## Not decoded / not done - Not tried by hand with a mouse: the checkbox, clicking a second model's panels and dragging were run by scripted steps only. - A door opened with a flat sticker on it was not looked at closely (the scripted view did not show the door open). - On a curved panel the picture is stretched where the surface turns away from the projection, and it stops where the surface turns more than about 75° away. There is no depth limit: every chosen zone that faces the sticker takes it, however far behind. - The projection's direction is the normal of the first model's zones; it cannot be set by hand. - The Metal renderer still draws no stickers. - 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 21:27:01 +00:00
github-bot changed target branch from master to gh-pr/509/base 2026-11-27 21:39:45 +00:00
github manually merged commit c06de74a69 into gh-pr/509/base 2026-11-27 21:39:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.