Paint the marked crossings #136

Merged
sermuns merged 2 commits from crossings-paint into main 2026-10-23 15:02:45 +00:00
Owner

Bakes OSM's marked pedestrian crossings and paints them on the roads.

A crossing node lies on the road it crosses, so crossings_of reads the road's own direction and width from the way through the node and bakes a BakedCrossing (position, traffic yaw, carriageway width). The scene lays a zebra's stripes along the traffic, spanning the road, as a decal in the existing paint pass. Unmarked and informal crossings, and bare highway=crossing with no marking tag, get nothing.

Only marked crossings are painted (crossing=zebra|marked, crossing_ref=zebra, or crossing:markings=yes|zebra|ladder|lines). The signal-head half of the issue is already in from dafe0e3, and the kerb (#19) and level crossing (#35) stay separate.

assets/baked/valla.bin is rebaked: 9 marked crossings in the extract.

closes #17

Merged

Merged into main as part of the batch (order: #136, #142, #137, #138, #141, #139, #140, #143). The batch carries a single major bump, 1.1.2 → 2.0.0, so this branch's own bump commit was dropped when it was rebased; PROTOCOL_VERSION stays 2. assets/baked/valla.bin was rebaked once at the end of the batch.

This branch carried the batch's single version bump. The bake below was regenerated a final time after the other branches landed.

Bakes OSM's marked pedestrian crossings and paints them on the roads. A crossing node lies on the road it crosses, so `crossings_of` reads the road's own direction and width from the way through the node and bakes a `BakedCrossing` (position, traffic yaw, carriageway width). The scene lays a zebra's stripes along the traffic, spanning the road, as a decal in the existing paint pass. Unmarked and informal crossings, and bare `highway=crossing` with no marking tag, get nothing. Only marked crossings are painted (`crossing=zebra|marked`, `crossing_ref=zebra`, or `crossing:markings=yes|zebra|ladder|lines`). The signal-head half of the issue is already in from `dafe0e3`, and the kerb (`#19`) and level crossing (`#35`) stay separate. `assets/baked/valla.bin` is rebaked: 9 marked crossings in the extract. closes #17 ## Merged Merged into `main` as part of the batch (order: #136, #142, #137, #138, #141, #139, #140, #143). The batch carries a single major bump, `1.1.2` → `2.0.0`, so this branch's own bump commit was dropped when it was rebased; `PROTOCOL_VERSION` stays 2. `assets/baked/valla.bin` was rebaked once at the end of the batch. This branch carried the batch's single version bump. The bake below was regenerated a final time after the other branches landed.
The crossing nodes OSM maps are baked with the road's own direction and
width, and the scene lays a zebra's stripes along the traffic and inside
the carriageway. Unmarked and informal crossings stay bare.

closes #17
Sign in to join this conversation.
No description provided.