Files
MapLibreParticleLab/include/mbgl/util
Aleksandar Stojiljkovic 73d9f26d03 [core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.
Patch partly fixes #15163 in a way that it doesn't allow loading tens of thousands of tiles and attempt to show area above horizon:

Limit pitch based on edge insets. It is not too bad - current limit of 60 degrees stays active until center of perspective is moved towards the bottom, to 84% of screen height. The plan is to split removal of 60 degrees limit to follow up patch.

Fix max Z calculation in getProjMatrix. TransformState::getProjMatrix calculation of farZ was complex with possibility to lead to negative z values. Replacing it with simpler, precise calculation:
furthestDistance = cameraToCenterDistance / (1 - tanFovAboveCenter * std::tan(getPitch()));

TransformState::getProjMatrix calculation of farZ was an aproximation. Replacing it with simpler, but precise calculation.

Related to: #15163
2019-08-01 09:28:36 +03:00
..
2017-11-08 12:34:02 -05:00
2018-11-13 17:28:26 +02:00
2018-11-13 17:28:26 +02:00
2019-01-15 22:29:08 +02:00
2017-11-08 12:34:02 -05:00
2017-05-12 18:07:36 +03:00
2019-02-28 17:45:21 +02:00
2017-05-12 18:07:36 +03:00
2017-07-12 14:14:09 -07:00
2017-03-02 11:40:42 -08:00
2016-06-02 14:51:39 -07:00
2017-06-26 16:32:21 +03:00