Vehicle export with its livery: stickers as decal meshes in the GLB (SIX-248) #450
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!450
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-450"
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-27 04:04 UTC · original
holdmysocks:claude/livery-export→master· +561 −8 · 8 files · 2 commits · merged 2026-11-27 05:11 UTCWhat
A vehicle can now be exported with its livery (SIX-248). Until now stickers, hand-placed ones and the game's own brands, were only drawn in the viewer; a vehicle from
sixng vehiclehad none.sixng vehicle <name> --livery [FILE]: reads a livery file as the viewer's Liveries panel saves it. Without a file name it takes the one the viewer keeps for the vehicle (<work>/liveries/<vehicle>.json).<name>.livery.json. Scripted:--livery-export FILE.glb.How a sticker is written (new module
vehlivery): glTF has no sticker layer, so each sticker becomes a mesh of its own.livery_<file>_<n>.pngbeside the GLB) with alpha blending and a clamped sampler; opacity and a picture's tint go to the base colour factor. A colour mask is written as a picture in its three colours, by the rule of the viewer's shader.game_uv), else the ones the viewer drew a hand-placed sticker with when the file was saved (shader_uv). All four UV sets are available.389206d1) take no stickers, as in the viewer.The GLB writer gets a second, clamped sampler for materials marked
extras.clamp.Checked
bensonwith its box), three hand-placed stickers saved for PR 186, by the CLI: 600, 422 and 431 triangles on the box (two stickers) and the cab door. Imported in Blender 5.3 and rendered with Eevee: all three are where the viewer shows them, the second lies on top of the first where they overlap, no flicker against the wall.BENSON_BRAND_BAUMHARDERDAIRY), put on and exported from the viewer by script: six stickers, all on the third UV set and all colour masks. In Blender the banner is on the box side and the logo on the cab door, in the brand's colours.vehlivery: a sticker is cut out of the faces under it (area, place of its corner, lift, skin, zones, the skip rule); stickers go to the model they name and later ones lie higher; a mask takes its colours.cargo test -p sixng-core -p sixng-gui: 367 and 53 pass.cargo build --release -p sixng-cli -p sixng-guiwithout warnings.Not decoded / not done
shader_uvis reported as left out.