Johannes Hofmann
f70407d4ce
Move MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL to map_view
пре 7 година
Johannes Hofmann
41c480b1d1
Fix code that assumes that tiles touch the poles
Web-mercator tiles don't touch the poles.
пре 7 година
Johannes Hofmann
f95d4268c8
Add OrthograficView::zoom_at
which only includes a dummy implementation.
пре 7 година
Johannes Hofmann
f0dcd3a80c
Fix OrthograficView::covers_viewport
пре 7 година
Johannes Hofmann
87739486fd
OrthograficView::radius_physical_pixels -> diameter_*
пре 7 година
Johannes Hofmann
15c9e053e9
{mercator,orthografic}_view: Convert ScreenCoords
Add functions to convert screen coordinates to MapCoord/LatLonRad.
пре 7 година
Johannes Hofmann
03c33086ba
Spherical tile visibility, part IV
Partial solution. Check AABB of tile vertices.
пре 7 година
Johannes Hofmann
2651bfe138
Fix clippy warnings
пре 7 година
Johannes Hofmann
b3e327b59c
Add overly dramatic atmosphere layer
Toggle with Ctrl+h
пре 7 година
Johannes Hofmann
69a245c187
Fix accuracy issue at high zoom levels in ortho view
This now uses an f64 transformation matrix (instead of f32) to transform
points on the sphere to screen coordinates. Conversion to f32 vertex
positions happens as a last step before uploading to a GPU buffer.
пре 7 година
Johannes Hofmann
7d5997991a
Improve tile rendering in orthografic view
* Reach feature parity with mercator view:
* Resize tile atlas to reduce draw calls
* Fill in tiles from other zoom layers
пре 7 година
Johannes Hofmann
cf5a195488
Spherical tile visibility, part III
Still a partial solution. Uses region growing starting from the central
tile and checks if at least one of the vertices is visible.
пре 7 година
Johannes Hofmann
eefea571ea
Add orthografic_view::tile_neighbors and tests
пре 7 година
Johannes Hofmann
cf7f21acc3
Restructure modules
* Split up map_view module into
* map_view
* mercator_view
* orthografic_view
пре 7 година