Rim lights: only the LEDs of the strip light up #236

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

@⁠holdmysocks on GitHub · 2026-11-25 02:48 UTC · original
holdmysocks:claude/rim-light-glow → master · +104 −5 · 3 files · 3 commits · merged 2026-11-25 03:27 UTC

Builds on PR 233 (the rim light rings are fitted); until that is merged this diff shows its commits too.

What

The LED strip of a rim light ring uses the shader standard_vehicle_2lyr_emissive_brakedisc_inst. The export marked it emissive with its colour map as the emissive map, so the whole strip lit up, the board between the LEDs included: a white band, not a row of lights.

The strip's colour map carries a mask in its alpha: 255 on the LED packages, 0 on the board. For this shader the export now writes a lit map (colour × alpha) next to the colour map, as <hash>_lit.png, and names it as the material's emissive map. The viewer already uses an export's own emissive map, so it needs no change.

Only sixng-core's export changes. No file format change.

Checked

  • The colour map (64 × 128): alpha is 255 on the two LED packages, 0 on the board, with a thin edge between.
  • Both ring models (the disc one and the drum one) exported on their own: the GLB's emissive map is the lit map.
  • Viewer, both rings: before the strip is a white band, after only the LEDs are lit.
  • Vehicle exports of two configurations with rim lights (one with a drum ring behind): the ring's material carries the lit map, nothing is left out.
  • Unit test for the lit map; workspace tests pass.

Not decoded / not done

  • That the alpha is the light mask is read from the picture, not from the shader.
  • The colour of the light in the game is not known. The lit map keeps the colour map's yellow (the LED's phosphor); the game may tint it.
  • Whether something switches the lights on is not known; they are always lit here.
  • No light is cast on the wheel or the ground.
  • With the board no longer lit, it draws dark in the viewer although its colour map is light grey there. Why was not looked into.
  • Lamps that bind the same LED picture through another shader (standard_vehicle_emissive_animated_bones, three materials on one of the two vehicles) still light up whole.
  • No render shows the ring on a car: it sits behind the rim.
  • Viewer caches made before this change keep the old look until the model is exported again.
**@⁠holdmysocks** on GitHub · 2026-11-25 02:48 UTC · [original](https://github.com/holdmysocks/SixNG/pull/236) `holdmysocks:claude/rim-light-glow` → `master` · +104 −5 · 3 files · 3 commits · merged 2026-11-25 03:27 UTC Builds on PR 233 (the rim light rings are fitted); until that is merged this diff shows its commits too. ## What The LED strip of a rim light ring uses the shader `standard_vehicle_2lyr_emissive_brakedisc_inst`. The export marked it emissive with its colour map as the emissive map, so the whole strip lit up, the board between the LEDs included: a white band, not a row of lights. The strip's colour map carries a mask in its alpha: 255 on the LED packages, 0 on the board. For this shader the export now writes a lit map (colour × alpha) next to the colour map, as `<hash>_lit.png`, and names it as the material's emissive map. The viewer already uses an export's own emissive map, so it needs no change. Only sixng-core's export changes. No file format change. ## Checked - The colour map (64 × 128): alpha is 255 on the two LED packages, 0 on the board, with a thin edge between. - Both ring models (the disc one and the drum one) exported on their own: the GLB's emissive map is the lit map. - Viewer, both rings: before the strip is a white band, after only the LEDs are lit. - Vehicle exports of two configurations with rim lights (one with a drum ring behind): the ring's material carries the lit map, nothing is left out. - Unit test for the lit map; workspace tests pass. ## Not decoded / not done - That the alpha is the light mask is read from the picture, not from the shader. - The colour of the light in the game is not known. The lit map keeps the colour map's yellow (the LED's phosphor); the game may tint it. - Whether something switches the lights on is not known; they are always lit here. - No light is cast on the wheel or the ground. - With the board no longer lit, it draws dark in the viewer although its colour map is light grey there. Why was not looked into. - Lamps that bind the same LED picture through another shader (`standard_vehicle_emissive_animated_bones`, three materials on one of the two vehicles) still light up whole. - No render shows the ring on a car: it sits behind the rim. - Viewer caches made before this change keep the old look until the model is exported again.
A part in one of the two rim light slots names caliper_rimlight or
drumbrake_rimlight: a ring of lights on the brake, modelled around the
same unit disc as the discs and calipers. It was left out with 'which
wheels it goes on is not known'. The export and the viewer now put it on
every wheel of its axle with the brake's placement; the rear axle takes
lights_rims_rear, else the front's ring.
The strip's colour map has the LED packages in its alpha. For its shader
the export writes a lit map (colour x alpha) and names it as the
emissive map, so the board between the LEDs no longer glows.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:20:23 +00:00
github manually merged commit a7a0578d94 into gh-pr/236/base 2026-11-26 20:20:25 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.