Tyres stay black: leave the tyre colour slot unapplied #198

Manually merged
github merged 3 commits from gh-pr/198/head into gh-pr/198/base 2026-11-26 20:17:25 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 19:56 UTC · original
holdmysocks:claude/tyre-lod-shader → master · +47 −15 · 5 files · 3 commits · merged 2026-11-24 20:20 UTC

What

The delivery van (boxville_hi) showed red tyres in the viewer. Asked about by the user, who chose to keep tyres black until the slot is understood.

  • Cause: the game's own colour data. A parts slot (f3bd038d) holds ten parts, each binding the tyre's group (part id 35, the one part id of all 52 shared tyre_*_hi models) to channel 976fe07e and assigning it one of ten colours (palette rows 111-121: two greys, purple, magenta, two greens, blue, yellow, orange, red) on the rubber surface. 15 of 4,063 configurations on 5 of 373 vehicles fit one: boxville 0, 1, 3; stanier 1-4; burrito 1-3; rentalbus 1-3; journey 1-2. Ten are red, five light grey; the other eight colours are never fitted.
  • Change: binds on channel 976fe07e are skipped when a configuration's colours are applied, so the tyre keeps the rubber of its part set. model.json says so in part_colours.tyre_colour_note.
  • Also: shader b994d670 (standard_vehicle_2lyr_tyre_inst_lod, the one material of the low-detail tyre_truck_001) is now treated as a tyre shader like 99ad6fc9 (material::is_tyre_shader): its placeholder tint palette (entry 0 pure red) is no longer multiplied in. This was my first guess at the red and is not what the viewer showed (it fits the _hi tyre), but it is correct for exports of that model.

vehicle_parts.json FORMAT 19 -> 20 and EXPORT_VERSION 23 -> 24, so the index and cached vehicles are rebuilt.

Checked

  • Viewer, boxville_hi default configuration, same command before and after: tyres red -> black. Configuration 3 (was light grey) and minivan_hi rendered too; only the boxville default before/after was looked at closely.
  • cargo test --workspace: 185 + 20 passed, 0 failed, 3 ignored.

Not decoded / not done

  • What the game does with the slot. Findings so far: it is one of 23 colour-choice slots that share a group record (the others colour rims with the same ten rows); the tyre colour follows the wheel paint part fitted in the same configuration (red wheel paint with red, white with grey), not the body colour; nothing in the bind or assign limits it to one of the tyre shader's two layers (tread, sidewall). Whether the game paints the whole tyre, only part of it, or these 15 are leftover presets is unknown.
  • The other four vehicles were not rendered.
  • Slot names recovered on the way (joaat): tyres 85be39be, tyres_front a5fd0d42, tyres_rear cdad26d9, rims 5fbd8e4d, rims_front bb36e0ee, rims_rear cd3c05e8. Not used in code yet.
  • Struct c328e66e (5,437 records) looks like a colour-only channel assignment that vehcolour does not read; not acted on here.
  • The Metal renderer was not built or run.
**@⁠holdmysocks** on GitHub · 2026-11-24 19:56 UTC · [original](https://github.com/holdmysocks/SixNG/pull/198) `holdmysocks:claude/tyre-lod-shader` → `master` · +47 −15 · 5 files · 3 commits · merged 2026-11-24 20:20 UTC ## What The delivery van (`boxville_hi`) showed red tyres in the viewer. Asked about by the user, who chose to keep tyres black until the slot is understood. - **Cause: the game's own colour data.** A parts slot (`f3bd038d`) holds ten parts, each binding the tyre's group (part id 35, the one part id of all 52 shared `tyre_*_hi` models) to channel `976fe07e` and assigning it one of ten colours (palette rows 111-121: two greys, purple, magenta, two greens, blue, yellow, orange, red) on the rubber surface. 15 of 4,063 configurations on 5 of 373 vehicles fit one: boxville 0, 1, 3; stanier 1-4; burrito 1-3; rentalbus 1-3; journey 1-2. Ten are red, five light grey; the other eight colours are never fitted. - **Change:** binds on channel `976fe07e` are skipped when a configuration's colours are applied, so the tyre keeps the rubber of its part set. `model.json` says so in `part_colours.tyre_colour_note`. - **Also:** shader `b994d670` (`standard_vehicle_2lyr_tyre_inst_lod`, the one material of the low-detail `tyre_truck_001`) is now treated as a tyre shader like `99ad6fc9` (`material::is_tyre_shader`): its placeholder tint palette (entry 0 pure red) is no longer multiplied in. This was my first guess at the red and is not what the viewer showed (it fits the `_hi` tyre), but it is correct for exports of that model. `vehicle_parts.json` FORMAT 19 -> 20 and `EXPORT_VERSION` 23 -> 24, so the index and cached vehicles are rebuilt. ## Checked - Viewer, `boxville_hi` default configuration, same command before and after: tyres red -> black. Configuration 3 (was light grey) and `minivan_hi` rendered too; only the boxville default before/after was looked at closely. - `cargo test --workspace`: 185 + 20 passed, 0 failed, 3 ignored. ## Not decoded / not done - What the game does with the slot. Findings so far: it is one of 23 colour-choice slots that share a group record (the others colour rims with the same ten rows); the tyre colour follows the wheel paint part fitted in the same configuration (red wheel paint with red, white with grey), not the body colour; nothing in the bind or assign limits it to one of the tyre shader's two layers (tread, sidewall). Whether the game paints the whole tyre, only part of it, or these 15 are leftover presets is unknown. - The other four vehicles were not rendered. - Slot names recovered on the way (joaat): `tyres` 85be39be, `tyres_front` a5fd0d42, `tyres_rear` cdad26d9, `rims` 5fbd8e4d, `rims_front` bb36e0ee, `rims_rear` cd3c05e8. Not used in code yet. - Struct `c328e66e` (5,437 records) looks like a colour-only channel assignment that `vehcolour` does not read; not acted on here. - The Metal renderer was not built or run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:17:23 +00:00
github manually merged commit 8aebab3561 into gh-pr/198/base 2026-11-26 20:17:25 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.