You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the camera/player teleported/rotated/moved, the frustum should be filled with tiles. Missing tiles need to be loaded in the GPU (from the a cash or downloaded from the web)
A random order may be funny but not a good user experience. Let's do it as done in previous implementation (OSM2World):
map.update only gets the camera and handles the loading:
The camera has a position and a focus in the GPU scene. The tile at focus is important but also the tiles neat the "eye". So we use the spot between camera and focus. The height is irrelevant in this case.
All tiles in view range around the camera have to be checket for "importance":
Tiles outside the frustum angle don't count.
Small angles to the focus direction get more priority
Less distance to the spot get more priority
The not loaded/visible tile with the best priority get loaded next.
As the camera may always move, the next tile is only calculated if no load is running. This may not apply for the first start of the app or a far distance teleport. In this case, a bunch of hight priorities may be calculated and loaded in parallel, while a Loading-Screen hides the "unordered" loading view.
After the camera/player teleported/rotated/moved, the frustum should be filled with tiles. Missing tiles need to be loaded in the GPU (from the a cash or downloaded from the web)
A random order may be funny but not a good user experience. Let's do it as done in previous implementation (OSM2World):
map.update only gets the camera and handles the loading:
The camera has a position and a focus in the GPU scene. The tile at focus is important but also the tiles neat the "eye". So we use the spot between camera and focus. The height is irrelevant in this case.
All tiles in view range around the camera have to be checket for "importance":
The not loaded/visible tile with the best priority get loaded next.
As the camera may always move, the next tile is only calculated if no load is running. This may not apply for the first start of the app or a far distance teleport. In this case, a bunch of hight priorities may be calculated and loaded in parallel, while a Loading-Screen hides the "unordered" loading view.
This is an old code version, but only partly applying: (see findHighscore)
https://github.com/DerKarlos/OSMeta/blob/70e754bbd19425904374b21dae814fe124b8cb43/src/cam_map/osmscene.rs
The text was updated successfully, but these errors were encountered: