Vehicles: read the 4 x u16 joint stream; rim stand-in; spin only the wheels #44

Manually merged
github merged 1 commit from gh-pr/44/head into gh-pr/44/base 2026-11-26 20:05:24 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 12:53 UTC · original
holdmysocks:claude/vehicle-parts → master · +91 −12 · 4 files · 1 commits · merged 2026-11-23 13:00 UTC

Three vehicle problems seen in the model viewer.

  • Trim that did not open with the doors. Joint stream format 0x4A (four u16 bone indices per vertex, weights in stream 6) was not read, so those meshes were exported unskinned. Over the 284 _hi vehicles: 440 LOD 0 meshes on 159 models (body, trim, door cards). Mesh records in model.json now carry joint_format.
  • Red and rainbow rims, reddish tyres. The shared rim and tyre models embed one 129 x 1 tint palette of marker colours (red, yellow, green, blue, ...), a placeholder the game overwrites. It was multiplied in as a tint. It is no longer applied; rims get classification.stand_in = "rim" (a plain alloy), and the viewer has a rim colour picker.
  • Motorcycles thrown apart by the wheel spin. The spin turned every bone named wheel_*, including wheel_turn_lf (the fork) and wheel_parent_lr / wheel_lr_drive. Only wheel_[lr][fmr]N bones spin now.

The viewer re-exports cached models that predate this.

Checked

  • In the viewer: animus_hi and arcturus_hi with doors open, aphid_hi and avarus_hi with wheels spun, alvinov1_hi.
  • Stream 8 formats over the 284 _hi vehicles (LOD 0 meshes): 0x00 4,644, none 2,551, 0x4A 440, 0x25 382, 0x8C 157.
  • 116 core tests pass.

Not decoded

The rim colour: each vehicle configuration stores one body colour and no decoded table holds a wheel colour. The 2,551 meshes without a joint stream stay rigid; whether any should follow a bone is not checked.

**@⁠holdmysocks** on GitHub · 2026-11-23 12:53 UTC · [original](https://github.com/holdmysocks/SixNG/pull/44) `holdmysocks:claude/vehicle-parts` → `master` · +91 −12 · 4 files · 1 commits · merged 2026-11-23 13:00 UTC Three vehicle problems seen in the model viewer. - **Trim that did not open with the doors.** Joint stream format `0x4A` (four u16 bone indices per vertex, weights in stream 6) was not read, so those meshes were exported unskinned. Over the 284 `_hi` vehicles: 440 LOD 0 meshes on 159 models (body, trim, door cards). Mesh records in `model.json` now carry `joint_format`. - **Red and rainbow rims, reddish tyres.** The shared rim and tyre models embed one 129 x 1 tint palette of marker colours (red, yellow, green, blue, ...), a placeholder the game overwrites. It was multiplied in as a tint. It is no longer applied; rims get `classification.stand_in = "rim"` (a plain alloy), and the viewer has a rim colour picker. - **Motorcycles thrown apart by the wheel spin.** The spin turned every bone named `wheel_*`, including `wheel_turn_lf` (the fork) and `wheel_parent_lr` / `wheel_lr_drive`. Only `wheel_[lr][fmr]N` bones spin now. The viewer re-exports cached models that predate this. ## Checked - In the viewer: animus_hi and arcturus_hi with doors open, aphid_hi and avarus_hi with wheels spun, alvinov1_hi. - Stream 8 formats over the 284 `_hi` vehicles (LOD 0 meshes): `0x00` 4,644, none 2,551, `0x4A` 440, `0x25` 382, `0x8C` 157. - 116 core tests pass. ## Not decoded The rim colour: each vehicle configuration stores one body colour and no decoded table holds a wheel colour. The 2,551 meshes without a joint stream stay rigid; whether any should follow a bone is not checked.
- Joint stream (stream 8) format 0x4A holds four u16 bone indices per
  vertex, with the weights in stream 6 (format 0x26). It was not read, so
  those meshes were exported unskinned and followed no bone: with a door
  open, its card, frame and trim stayed on the body. Over the 284 _hi
  vehicles that is 440 LOD 0 meshes on 159 models (10.4 M vertices: body,
  trim, door cards). Mesh records in model.json now carry joint_format.
- Rims and tyres (standard_vehicle_2lyr_wheel_inst c5cdbdd2,
  standard_vehicle_2lyr_tyre_inst 99ad6fc9) embed one 129 x 1 tint
  palette whose entries 0-7 are pure red, yellow, green, blue, magenta,
  grey, orange and cyan, then shades of them: a placeholder the game
  overwrites. It was multiplied into the surface, which made rims red and
  rainbow-coloured and tyres reddish. It is no longer applied; rims get
  classification.stand_in = "rim" (a plain alloy).
- Viewer: a rim colour picker next to the rim field (starts as alloy).
  The wheel spin turns only wheel_[lr][fmr]N bones; it also turned
  wheel_turn_lf (a motorcycle's fork) and wheel_parent_lr /
  wheel_lr_drive (swingarm, drive), which threw those parts around.
  Cached exports from before these changes are exported again.

Checked in the viewer on animus_hi and arcturus_hi (doors open),
aphid_hi and avarus_hi (wheels spun), alvinov1_hi.

Not decoded: the rim colour. Each vehicle configuration stores one body
colour and no decoded table holds a wheel colour, so the alloy is a
stand-in. 2,551 LOD 0 vehicle meshes have no joint stream and stay rigid;
whether any of them should follow a bone is not checked.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:05:22 +00:00
github manually merged commit 507aae22bb into gh-pr/44/base 2026-11-26 20:05:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.