sixng vehicle: rim size, brakes, and picking single parts #174

Manually merged
github merged 5 commits from gh-pr/174/head into gh-pr/174/base 2026-11-26 20:15:22 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 16:05 UTC · original
holdmysocks:claude/vehicle-export-2 → master · +126 −7 · 2 files · 5 commits · merged 2026-11-24 16:42 UTC

Built on #169 (wheel fitment records in the export): this branch contains its commits until it merges.

What

Three additions to sixng vehicle (one GLB of a whole vehicle):

  • Rim size. The configuration's rim_ratio (rim radius / tyre radius) is applied the way the viewer does it: rim and tyre bead are scaled about the axle, the tread (tread_profile bones) keeps the tyre's radius. Before, rim and tyre were scaled alike and the rim had the models' own share.
  • Brakes. One brake disc (or a drum where the configuration names no disc) and one caliper per wheel, the first of each the configuration names by model, scaled to the wheel's stored brake disc and moved with the wheel. Before, brakes were left out.
  • Single parts. --list-parts prints the vehicle's parts that have models (part name, slot, models, how many configurations name it). --with <part,part> fits parts on top of the configuration's (a part replaces the configuration's part in the same slot) and --without <part,part> leaves parts off.

Checked

Exports opened in the viewer (image in the session):

export pieces rim factor brakes
elegy body, 3 parts, 8 wheel pieces, 8 brake pieces 0.954 brakedisc_sport_002, caliper_4pot_002 on 4 wheels
elegy --with dd804ee6 (wide-arch kit) 11 parts, wheels 0.13 m out, rear tyres 0.06 m wider 0.954 same
towtruck 7 parts, 20 wheel pieces (10 wheels) 1.297 brakedisc_std_001, caliper_4pot_001 on 6 of 10 wheels
  • The wide-arch kit is fitted and the wheels sit under it; disc and caliper are visible behind the spokes.
  • --list-parts for the elegy lists 116 parts.
  • cargo build -p sixng-cli passes; cargo test -p sixng-core vehexport passes.

Not decoded / not done

  • Which wheels a brake model belongs to is not known. A configuration can name two calipers (two-pot and four-pot) and a drum besides a disc; only the first disc and the first caliper are fitted, on every wheel that has a stored brake disc. Brake models that come through a part are reported under left_out.
  • The caliper is placed as modelled; whether the game turns it to a set position is not known.
  • --with takes part names (hex), not model names; use --list-parts to find them.
  • With --with or --without the part colours stay those of the configuration.
**@⁠holdmysocks** on GitHub · 2026-11-24 16:05 UTC · [original](https://github.com/holdmysocks/SixNG/pull/174) `holdmysocks:claude/vehicle-export-2` → `master` · +126 −7 · 2 files · 5 commits · merged 2026-11-24 16:42 UTC Built on #169 (wheel fitment records in the export): this branch contains its commits until it merges. ## What Three additions to `sixng vehicle` (one GLB of a whole vehicle): - **Rim size.** The configuration's `rim_ratio` (rim radius / tyre radius) is applied the way the viewer does it: rim and tyre bead are scaled about the axle, the tread (`tread_profile` bones) keeps the tyre's radius. Before, rim and tyre were scaled alike and the rim had the models' own share. - **Brakes.** One brake disc (or a drum where the configuration names no disc) and one caliper per wheel, the first of each the configuration names by model, scaled to the wheel's stored brake disc and moved with the wheel. Before, brakes were left out. - **Single parts.** `--list-parts` prints the vehicle's parts that have models (part name, slot, models, how many configurations name it). `--with <part,part>` fits parts on top of the configuration's (a part replaces the configuration's part in the same slot) and `--without <part,part>` leaves parts off. ## Checked Exports opened in the viewer (image in the session): | export | pieces | rim factor | brakes | |---|---|---|---| | `elegy` | body, 3 parts, 8 wheel pieces, 8 brake pieces | 0.954 | `brakedisc_sport_002`, `caliper_4pot_002` on 4 wheels | | `elegy --with dd804ee6` (wide-arch kit) | 11 parts, wheels 0.13 m out, rear tyres 0.06 m wider | 0.954 | same | | `towtruck` | 7 parts, 20 wheel pieces (10 wheels) | 1.297 | `brakedisc_std_001`, `caliper_4pot_001` on 6 of 10 wheels | - The wide-arch kit is fitted and the wheels sit under it; disc and caliper are visible behind the spokes. - `--list-parts` for the elegy lists 116 parts. - `cargo build -p sixng-cli` passes; `cargo test -p sixng-core vehexport` passes. ## Not decoded / not done - Which wheels a brake model belongs to is not known. A configuration can name two calipers (two-pot and four-pot) and a drum besides a disc; only the first disc and the first caliper are fitted, on every wheel that has a stored brake disc. Brake models that come through a part are reported under `left_out`. - The caliper is placed as modelled; whether the game turns it to a set position is not known. - `--with` takes part names (hex), not model names; use `--list-parts` to find them. - With `--with` or `--without` the part colours stay those of the configuration.
A configuration's fitment parts without a model (spacers, tyre widths) now move and widen the wheels in the viewer, and sixng vehicle applies the records of the configuration's parts. The record's axle value is read as front (0), rear (2) and both (3) instead of a bit mask.
The configuration's rim_ratio is applied (rim and bead scaled about the axle, the tread keeps the tyre's radius). One brake disc or drum and one caliper per wheel, scaled to the stored brake disc. --list-parts, --with and --without choose single parts on top of a configuration.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:15:22 +00:00
github manually merged commit 8054a34b34 into gh-pr/174/base 2026-11-26 20:15:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.