Liveries: a sticker laid on flat can be projected from a side of the vehicle #529

Manually merged
github merged 1 commit from github-bot/gh-529 into gh-pr/529/base 2026-11-28 04:19:55 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 04:01 UTC · original
holdmysocks:claude/livery-flat-door → master · +107 −10 · 3 files · 1 commits · merged 2026-11-28 04:12 UTC

What

A sticker laid on flat can be projected from a side of the vehicle instead of along its own panels.

Until now a flat sticker was always projected along the mean normal of the panels it lies on (PR 509 listed "the projection's direction cannot be set by hand" as not done). On panels that curve or lean, that direction is not what one wants for a picture along the whole side of a body.

  • Liveries panel, under "lay it on flat": projected from — its panels (as before), the left, the right, the top, the front, the back.
  • From a side, the picture stands upright as seen from that side (on the top: its upper edge towards the front), and only faces that look towards that side take it. Its middle stays where the sticker's centre is on its panels, so moving, sizing and rotating work as before.
  • The livery file gets from (left, right, top, front, back; left out for the panels' own direction). Files without it read as before. projection carries the numbers as before, so the GLB export needs no change.
  • --livery-from SIDE with --livery-flat for scripted checks.
  • A new sticker added while one is selected takes over its side along with its zones.

Checked

  • Box truck, the flat sticker of PR 509 (box wall onto the cab door) with from: left: the same picture in the same place as with the panels' own direction (that wall looks exactly to the left). With from: front: nothing on the wall or the door; only a small face on the door's edge that looks forward takes it.
  • --livery-flat --livery-from top on that livery, saved: the file has from: top and the numbers of a projection from above (N = up, the picture's right along the vehicle's right, its down towards the back).
  • Also looked at, since PR 509 left it open: a flat sticker on a door that is opened stays on the door (doors fully open in a scripted view, sticker across the box wall and the cab door: the part on the door swings with it). No change was needed.
  • New test lines: for each side the direction is that side's, the picture's axes lie square to it and to each other, its middle is where the centre is on the panel, up the vehicle is up the picture, and the names read back.
  • cargo test -p sixng-gui: 68 pass, 2 ignored. cargo build --release -p sixng-gui without warnings.

Not decoded / not done

  • Not tried by hand with a mouse; the choice was set through the file and the scripted flag only.
  • Not looked at on a body with curved sides (a car): the truck's wall and door are flat, so the case this is for was not seen.
  • On a panel that leans away from the chosen side, dragging puts the sticker's middle where the pointer is on the panel, seen along the panel's own direction, which can be slightly off the pointer.
  • No direction other than the five sides; no depth limit (every chosen zone that faces the side takes the picture).
  • The exported GLB of a sticker with a side was not opened (the export reads the same projection numbers as before).
  • Screenshots are not attached (they show game assets); they were handed to the user directly.
**@⁠holdmysocks** on GitHub · 2026-11-28 04:01 UTC · [original](https://github.com/holdmysocks/SixNG/pull/529) `holdmysocks:claude/livery-flat-door` → `master` · +107 −10 · 3 files · 1 commits · merged 2026-11-28 04:12 UTC ## What A sticker laid on flat can be projected from a side of the vehicle instead of along its own panels. Until now a flat sticker was always projected along the mean normal of the panels it lies on (PR 509 listed "the projection's direction cannot be set by hand" as not done). On panels that curve or lean, that direction is not what one wants for a picture along the whole side of a body. - Liveries panel, under "lay it on flat": **projected from** — its panels (as before), the left, the right, the top, the front, the back. - From a side, the picture stands upright as seen from that side (on the top: its upper edge towards the front), and only faces that look towards that side take it. Its middle stays where the sticker's centre is on its panels, so moving, sizing and rotating work as before. - The livery file gets `from` (`left`, `right`, `top`, `front`, `back`; left out for the panels' own direction). Files without it read as before. `projection` carries the numbers as before, so the GLB export needs no change. - `--livery-from SIDE` with `--livery-flat` for scripted checks. - A new sticker added while one is selected takes over its side along with its zones. ## Checked - Box truck, the flat sticker of PR 509 (box wall onto the cab door) with `from: left`: the same picture in the same place as with the panels' own direction (that wall looks exactly to the left). With `from: front`: nothing on the wall or the door; only a small face on the door's edge that looks forward takes it. - `--livery-flat --livery-from top` on that livery, saved: the file has `from: top` and the numbers of a projection from above (N = up, the picture's right along the vehicle's right, its down towards the back). - Also looked at, since PR 509 left it open: a flat sticker on a door that is opened stays on the door (doors fully open in a scripted view, sticker across the box wall and the cab door: the part on the door swings with it). No change was needed. - New test lines: for each side the direction is that side's, the picture's axes lie square to it and to each other, its middle is where the centre is on the panel, up the vehicle is up the picture, and the names read back. - `cargo test -p sixng-gui`: 68 pass, 2 ignored. `cargo build --release -p sixng-gui` without warnings. ## Not decoded / not done - Not tried by hand with a mouse; the choice was set through the file and the scripted flag only. - Not looked at on a body with curved sides (a car): the truck's wall and door are flat, so the case this is for was not seen. - On a panel that leans away from the chosen side, dragging puts the sticker's middle where the pointer is on the panel, seen along the panel's own direction, which can be slightly off the pointer. - No direction other than the five sides; no depth limit (every chosen zone that faces the side takes the picture). - The exported GLB of a sticker with a side was not opened (the export reads the same `projection` numbers as before). - Screenshots are not attached (they show game assets); they were handed to the user directly.
Left, right, top, front or back instead of along its own panels: for a picture along a body whose panels curve or lean. In the panel, in the livery file (from) and as --livery-from.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:01:59 +00:00
github-bot changed target branch from master to gh-pr/529/base 2026-11-28 04:19:54 +00:00
github manually merged commit 1f3684b92c into gh-pr/529/base 2026-11-28 04:19:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.