mapbox / mapbox/mapbox-gl-js

Rendering bridges correctly for 3D terrain

Open
#13,276 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Motivation

When enabling a 3D terrain effect using map.setTerrain(), things look beautifully realistic until you check out some road bridges, where the terrain dips and the road follows the terrain instead of rendering as a straight bridge.

Design

It would be super neat to see sections of roadways, railways, and pedways that are marked as bridge sections to have an elevated, straight way that connects to the terrain surface at the ends of the bridge.

Mock-Up

Apple Maps detailed city experiences "DCEs" do something to this effect, and it really completes the 3D experience, especially when combined with custom 3D models for significant bridge structures:

Apple maps DCE bridge
Implementation

I don't know enough of your codebase to know if this is feasible within the current architecture, but if so I think it would be an excellent addition to the ultra-realism and detail that Mapbox provides!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin at the map.setTerrain() entry point and trace how terrain affects road, railway, and pedestrian-way rendering. Define how bridge-marked sections would stay elevated and straight while joining the terrain surface at each end, then validate the result against the supplied bridge examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.