Vehicles: mod parts from the vehicle data, with a Parts panel in the viewer #57
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!57
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/57/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-23 16:30 UTC · original
holdmysocks:claude/vehicle-mod-parts→master· +284 −6 · 3 files · 5 commits · merged 2026-11-23 17:04 UTCVehicle mod parts (bonnets, bumpers, spoilers, splitters, diffusers, exhausts), mounted from the vehicle data.
0caef606: name, slot, elements) and one per part model (77f2b89e: the bone the model is authored around, and the stock bones it replaces). A kit is named after its left and right models without the side word.mods;format3. 323 of 373 models have parts, 7,915 records with elements.Checked
Not done
The command-line export does not write a vehicle with chosen parts. Slots outside a list of 24 names show as hashes. Choosing parts keeps one LOD level.
Stacked on #56
This branch sits on #56, which sits on #55 and #54, and targets #56's branch so the diff shows only this work. Merge them in order.
A convertible's model info names its roof animation as in GTA V: animConvRoofDictName = joaat("va_<model>") and animConvRoofName = joaat("roof"). The dictionaries are in levels.rpf as entries without a recovered name (170 clip dictionaries there, 11 of them va_*); the existing clip decoder reads them. - anim: level_dictionaries (names cached in <work>/index/levels.clipdicts.json) and vehicle_roof. - Export: a vehicle with a va_<model>/roof clip gets it in model.glb as a glTF animation of the joint nodes, and model.json gets roof_animation (source, duration, bone coverage). Time 0 is the roof up, the end the roof stowed. - Viewer: a "roof fold" slider plays the clip (--roof 0..1 in automation). The "roof down" switch stays for a car with roof bones and no clip. - Viewer: joint nodes written as translation / rotation / scale are read. Only matrices were, and a GLB with an animation writes its joints as TRS, so its joints loaded at the origin. All ten convertibles among the 284 surveyed vehicles have the clip (carbonizzare, comet7, dominator9, dominatorclassic, lasso, schutzen, sentinelclassic2, vigero3, windsor2, zion2; 3.8 to 11.1 s, 12 to 74 channels) and every animated bone is on the car's skeleton. Watched in the viewer on sentinelclassic2, comet7 and windsor2. Not wired: va_jubilee holds a 1.7 s clip sunroof_r_anim (2 bones). The exported GLB was checked for the animation but not opened in another tool.