Vehicles: the second layer of part surfaces (wear), with a wear control in the viewer #138
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!138
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/138/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 12:08 UTC · original
holdmysocks:claude/wear-layer→master· +103 −11 · 6 files · 3 commits · merged 2026-11-24 12:16 UTCBuilt on #137 (per-pixel palette): this branch contains its commit. Merge #137 first; the diff here then shrinks to the wear layer.
What
Every vehicle surface record (
9e4de959) names a second layer: a colour record (5cffe5e0) and a material record (174770cc, a307f162clike the first layer's). Until now only the first layer was read. The second layer is what shows where the first is worn: rust brown under paint, grey under bare metal, dark under plastics, mostly rough and not metallic.vehicle_parts.json, format 18): each part id getswear_row,wear_roughandwear_metal.model.jsonpart_colours.wear(per look, 256 x 8 hex digits: palette row, roughness, metalness). Part colours version 20. The GLB is unchanged.--wear. A part material blends towards its second layer where the blue channel of its layer detail texture is high. The rows of the second layer go in the lower half of the part ramp image from #137.Numbers
Checked
cargo test -p sixng-core vehcolourpasses.Not decoded / not done
038e1179,6c3ddabc, structcf980e6f, about 20 floats) that probably shape the blend; they are not read.