Viewer: rim and tyre colours from the vehicle's part colours #72

Manually merged
github merged 1 commit from gh-pr/72/head into gh-pr/72/base 2026-11-26 20:07:39 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 19:18 UTC · original
holdmysocks:claude/wheel-colours → master · +58 −8 · 3 files · 1 commits · merged 2026-11-23 19:26 UTC

Rims and tyres fitted in the viewer take their colours from the vehicle's data instead of a plain alloy stand-in.

Finding

  • A rim's and a tyre's vertices carry part ids in their vertex colour alpha, like the body (239 to 244 and 31 on rim_uni_10_sports_003).
  • The wheel shaders bind the same material palette as the body.
  • The ids index the part set of the vehicle the wheel is fitted to. Its configurations bind wheel groups to channels with a colour record like any other part.

Change

  • Fitted rims and tyres are coloured from the vehicle's current part colours (the chosen configuration's look).
  • They keep their stand-in metal and roughness. A rim part bound to the body paint follows the Car paint colour.
  • Without part colours the rim colour control works as before; with them it multiplies the result.

Checked

comet7 (two configurations), buffalo6 and bison4 in the viewer: rims show a grey alloy with darker centre parts, tyres dark rubber.

Not done

  • A wheel model opened on its own keeps the stand-in.
  • Brake discs and calipers are not coloured this way.
  • Metalness is still the stand-in's.
**@⁠holdmysocks** on GitHub · 2026-11-23 19:18 UTC · [original](https://github.com/holdmysocks/SixNG/pull/72) `holdmysocks:claude/wheel-colours` → `master` · +58 −8 · 3 files · 1 commits · merged 2026-11-23 19:26 UTC Rims and tyres fitted in the viewer take their colours from the vehicle's data instead of a plain alloy stand-in. ## Finding - A rim's and a tyre's vertices carry part ids in their vertex colour alpha, like the body (239 to 244 and 31 on `rim_uni_10_sports_003`). - The wheel shaders bind the same material palette as the body. - The ids index the part set of the vehicle the wheel is fitted to. Its configurations bind wheel groups to channels with a colour record like any other part. ## Change - Fitted rims and tyres are coloured from the vehicle's current part colours (the chosen configuration's look). - They keep their stand-in metal and roughness. A rim part bound to the body paint follows the Car paint colour. - Without part colours the rim colour control works as before; with them it multiplies the result. ## Checked comet7 (two configurations), buffalo6 and bison4 in the viewer: rims show a grey alloy with darker centre parts, tyres dark rubber. ## Not done - A wheel model opened on its own keeps the stand-in. - Brake discs and calipers are not coloured this way. - Metalness is still the stand-in's.
A rim's and a tyre's vertices carry part ids too (vertex colour alpha:
239 to 244 and 31 on rim_uni_10_sports_003), and the wheel shaders bind
the same material palette as the body. The ids index the part set of
the vehicle the wheel is fitted to: its configurations bind wheel
groups to channels with a colour record like any other part.

- The fitted rims and tyres are coloured from the vehicle's current
  part colours (the chosen configuration's look), instead of the plain
  alloy stand-in. They keep their stand-in metal and roughness; a rim
  part bound to the body paint follows the Car paint colour.
- Without part colours (a model with no part set) the rim colour
  control works as before; with them it multiplies the result.

Checked in the viewer on comet7 (two configurations), buffalo6 and
bison4: rims show a grey alloy with darker centre parts, tyres dark
rubber.

Not done: a wheel model opened on its own keeps the stand-in (it has no
vehicle); brake discs and calipers are not coloured this way; metalness
is still the stand-in's.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:07:36 +00:00
github manually merged commit 8fac0bae77 into gh-pr/72/base 2026-11-26 20:07:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.