CLI: sixng vehicle, a whole vehicle with the parts of a configuration as one GLB #142
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!142
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/142/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 12:27 UTC · original
holdmysocks:claude/vehicle-export→master· +503 −2 · 5 files · 3 commits · merged 2026-11-24 12:54 UTCWhat
sixng vehicle <name> -o <file.glb>writes a whole vehicle as one GLB: its model with the parts of one of its configurations fitted, in that configuration's part colours and paint colour, with rims and tyres on the wheel bones. Until now only the viewer could put a vehicle together; the CLI gave the bare model and its parts as separate files.--config Npicks the configuration (default 0).--listprints the vehicle's configurations (colour, part count, parts key).--no-wheelsleaves the wheels out.--data <vehicles.json>uses an existingsixng vehiclesfile; without it the file is built first, into the output folder.vehexportwith the same rules as the viewer: an element's model by asset id or name hash; a part at the bind pose of its bone and skinned to it; a body behind the cab first, with the bones it brings; stock triangles on replaced bones dropped; the switches of the fitted parts choose the stock alternatives; every piece takes the vehicle's part colours for the configuration.Checked
Six vehicles exported, first configuration each, no warnings:
cargo test -p sixng-core vehexportpasses (switch choice, mirrored placement).--data; building vehicles.json first adds about 80 s.Not decoded / not done
rim_ratio. Brake discs, drums and calipers are left out (reported underleft_out).