Liveries: a sticker projected from a side is dragged as seen from that side #537

Manually merged
github merged 1 commit from github-bot/gh-537 into gh-pr/537/base 2026-11-28 05:25:05 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 05:09 UTC · original
holdmysocks:claude/livery-side-car → master · +25 −5 · 2 files · 1 commits · merged 2026-11-28 05:19 UTC

What

Dragging a sticker that is projected from a side of the vehicle (PR 529) now puts its middle exactly under the pointer.

The Move tool turned the place under the pointer into the sticker's centre as seen along the panels' own direction. For a sticker projected from a side that is a slightly different place wherever the surface leans away from that side or stands off the panels' mean plane, so the picture's middle sat a little off the pointer (PR 529 listed this as not done). The place is now taken as seen from the side the sticker is projected from. From a side the panels are seen edge-on from, it stays as before.

Also: the scripted drag (--livery-drag) prints the zone and the model point it hit, so a scripted check can compare numbers.

Checked

Two things PR 529 left open were looked at first, on a car (Buffalo, a sticker 3.6 m by 0.9 m on the left front wing, both doors, the sill and the rear quarter, projected from the left). Neither needed a change:

  • It draws in one piece along the whole side, upright, on the leaning panels too. With the panels' own direction the picture is the same but tilted with the body's lean (its direction is 13 degrees above level).
  • The exported GLB has one decal mesh for it on the left side only, 3408 triangles, 3.60 m long and 0.90 m high, which is the size it was given.

The change:

  • A 1.0 m by 0.5 m sticker dragged by script to a point on the rear quarter (zone 71, the panel that leans most). Printed model point: height 0.331, along the car 1.314. From the saved file's numbers the picture's middle is at height 0.3306, along 1.3135 when projected from the left, and on the same point with the panels' own direction.
  • New test lines: for each side, a model point taken as the centre has the picture's middle over it; from a side the wall is edge-on to, the centre is the one the panels' direction gives.
  • cargo test -p sixng-gui: 68 pass, 2 ignored (run before the print line was added). cargo build --release -p sixng-gui without warnings.

Not decoded / not done

  • Not tried by hand with a mouse.
  • The scripted drag is not steady: in 2 of 9 runs of the same command it landed about 0.15 m further back along the car (the saved centre differed; the picture was then not under the marked point). The seven runs that printed or saved the expected point agree to the last digit. It looks like the drag sometimes runs before the view has come to rest; not found, not fixed. A real drag takes the pointer's place every frame and is not affected.
  • The old behaviour was not measured (no build of it was run against the same point); from the geometry the offset was the lean times the surface's distance from the mean plane, a few centimetres on this car.
  • Still no direction other than the five sides, and no depth limit.
  • Screenshots are not attached (they show game assets).
**@⁠holdmysocks** on GitHub · 2026-11-28 05:09 UTC · [original](https://github.com/holdmysocks/SixNG/pull/537) `holdmysocks:claude/livery-side-car` → `master` · +25 −5 · 2 files · 1 commits · merged 2026-11-28 05:19 UTC ## What Dragging a sticker that is projected from a side of the vehicle (PR 529) now puts its middle exactly under the pointer. The Move tool turned the place under the pointer into the sticker's centre as seen along the panels' own direction. For a sticker projected from a side that is a slightly different place wherever the surface leans away from that side or stands off the panels' mean plane, so the picture's middle sat a little off the pointer (PR 529 listed this as not done). The place is now taken as seen from the side the sticker is projected from. From a side the panels are seen edge-on from, it stays as before. Also: the scripted drag (`--livery-drag`) prints the zone and the model point it hit, so a scripted check can compare numbers. ## Checked Two things PR 529 left open were looked at first, on a car (Buffalo, a sticker 3.6 m by 0.9 m on the left front wing, both doors, the sill and the rear quarter, projected from the left). Neither needed a change: - It draws in one piece along the whole side, upright, on the leaning panels too. With the panels' own direction the picture is the same but tilted with the body's lean (its direction is 13 degrees above level). - The exported GLB has one decal mesh for it on the left side only, 3408 triangles, 3.60 m long and 0.90 m high, which is the size it was given. The change: - A 1.0 m by 0.5 m sticker dragged by script to a point on the rear quarter (zone 71, the panel that leans most). Printed model point: height 0.331, along the car 1.314. From the saved file's numbers the picture's middle is at height 0.3306, along 1.3135 when projected from the left, and on the same point with the panels' own direction. - New test lines: for each side, a model point taken as the centre has the picture's middle over it; from a side the wall is edge-on to, the centre is the one the panels' direction gives. - `cargo test -p sixng-gui`: 68 pass, 2 ignored (run before the print line was added). `cargo build --release -p sixng-gui` without warnings. ## Not decoded / not done - Not tried by hand with a mouse. - The scripted drag is not steady: in 2 of 9 runs of the same command it landed about 0.15 m further back along the car (the saved centre differed; the picture was then not under the marked point). The seven runs that printed or saved the expected point agree to the last digit. It looks like the drag sometimes runs before the view has come to rest; not found, not fixed. A real drag takes the pointer's place every frame and is not affected. - The old behaviour was not measured (no build of it was run against the same point); from the geometry the offset was the lean times the surface's distance from the mean plane, a few centimetres on this car. - Still no direction other than the five sides, and no depth limit. - Screenshots are not attached (they show game assets).
Its middle comes to lie exactly under the pointer, also where the surface leans away from that side. The scripted drag prints the zone and model point it hit.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 05:13:29 +00:00
github-bot changed target branch from master to gh-pr/537/base 2026-11-28 05:25:01 +00:00
github manually merged commit ac3946f658 into gh-pr/537/base 2026-11-28 05:25:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.