Skip to content

Crossing editor: show neighbour lanes and joints across large junctions - #121

Open
benchan0527 wants to merge 1 commit into
openOMSI-org:mainfrom
benchan0527:fix/crossing-large-junctions
Open

benchan0527 wants to merge 1 commit into
openOMSI-org:mainfrom
benchan0527:fix/crossing-large-junctions

Conversation

@benchan0527

Copy link
Copy Markdown
Contributor

Summary

In large crossing objects spanning multiple tiles (e.g. 1000m-2200m across on world coordinate maps), external connecting road lanes and connection joints were invisible or could not be snapped to when zoomed into the perimeter of the junction.

Changes

  • Center queries around camera target: Replaced hardcoded object origin search center with \cam.target\ in 3D neighbour lane rendering and 3D snapping joints query (\crossing_neighbour_joints), allowing road splines at any edge of a large junction to load and render.
  • Extended reach limits: Raised reach clamping from 260-700m to 3500m across
    eighbour_reach, \sync_crossing_nearby, and \link_crossing.
  • Footprint-aware nearby gathering: \gather_nearby\ now takes the crossing footprint bounding box and existing path extents into account.
  • Keep neighbour lanes visible for empty crossings: Don't skip rendering surrounding lanes when \crossing_draft\ has 0 paths yet, allowing users to align new paths to external roads.
  • Visual clarity: Lifted lane ribbons to 0.25m and boosted contrast/width to avoid z-fighting with terrain and road meshes.

- Center neighbour lane queries and 3D snapping around the camera target instead of the object origin so external roads at the perimeter of large junctions (1-2 km across) are drawn and selectable
- Expand reach limits for neighbour lanes, nearby points, and auto-linking up to 3500-4000 m
- Account for crossing footprint and existing path extents when gathering nearby ends
- Keep neighbour lanes visible when editing an empty or new crossing draft
- Lift neighbour lane ribbons to 0.25 m and adjust line width/contrast to prevent z-fighting with road meshes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant