Convertibles: the roof animation in the export and the viewer #55
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!55
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/55/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 15:48 UTC · original
holdmysocks:claude/roof-animation→master· +229 −9 · 5 files · 3 commits · merged 2026-11-23 16:48 UTCThe roof-folding animation of convertibles, found and wired into the export and the viewer.
animConvRoofDictName= joaat(va_<model>),animConvRoofName= joaat(roof). The dictionaries are inlevels.rpfas unnamed entries (170 clip dictionaries there, 11 of themva_*).model.glbgets the clip as a glTF animationva_<model>/roof;model.jsongetsroof_animationwith the source, duration and bone coverage.The viewer re-exports cached vehicles that predate this.
Checked
Not done
va_jubileeholds a sunroof clip (sunroof_r_anim) that is not wired in. The exported GLB was checked for the animation but not opened in another tool.Stacked on #54
This branch sits on #54 (dual wheels, skeleton fix, the roof switch), which it needs, and targets that branch so the diff shows only the animation work. Merge #54 first.
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.