osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

With the 3D views bridges and tunnels are rendered on the hight of the terrain, instead of the objects #20987

Open DDzwiedziu opened 3 weeks ago

DDzwiedziu commented 3 weeks ago

Description

In the 3D view roads on bridges and tunnels are rendered following the terrain shape, not their actual shape.

This is the Ponc Viaduc https://wikiless.northboot.xyz/wiki/Passerelle_(Luxembourg) and below is the view in OsmAnd

Steps to reproduce

Look at any bridge or tunnel.

Actual result

The object is drawn along the terrain curve.

Expected result

The object is shown at it's actual height.

Your Environment (required)

OsmAnd Version: 4.8.5
Android/iOS version: Android 14
Device model: Asus Zenphone 11/AI2401 H
Crash-Logs: not a crash
scaidermern commented 3 weeks ago

The height above or below ground isn't known, so the only option would be to guess/estimate it.

pebogufi commented 3 weeks ago

A good estimation would be the average of the values before and after the tunnel.

DDzwiedziu commented 3 weeks ago

A good estimation would be the average of the values before and after the tunnel.

Or draw a line in 3D space between the entrance and exit and use that for approximation.

yuriiurshuliak commented 3 weeks ago

The issue has been successfully reproduced. To replicate it, go to coordinates 49.60561394289059, 6.133672699373974, load the Terrain map (3D), and tilt the map downward using two fingers.

As a result, in the 3D view, the bridge is incorrectly displayed at the terrain level instead of at the height of the bridge structure.

OsmAnd~ 4.9.0#3365m, released: 2024-10-07