CesiumGS / cesium-native

Apache License 2.0
438 stars 215 forks source link

Support LOD transition periods for offline tile selection #549

Open nithinp7 opened 2 years ago

nithinp7 commented 2 years ago

When #543 is merged, we will support a transition period where tiles from the original and target LOD are both kept alive. A parameter representing the fade percentage is swept throughout the period so that clients know how faded to render each tile. To achieve this evolving fade percentage, a new deltaTime parameter was added to Tileset::updateView to decide how much to change the fade percentage based on how much time had elapsed since the last frame.

However, the way updateViewOffline works is it repeatedly calls updateView until there are no tiles that are still loading. This seems awkward with the new deltaTime argument, since an individual call to updateView doesn't have a sensible delta time that could be associated with it. We should find a way to support lod transition periods for offline tile selection as well (e.g., a client might use it to smooth transitions in a high-res offline render). This might require one of the following approaches:

csciguy8 commented 6 months ago

Cesium-unreal forum post that would probably benefit from this fix...

https://community.cesium.com/t/fix-lod-upscaling-in-render-form-ue5/29541