visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.14k stars 2.08k forks source link

flickering when loading 3dtiles in REPLACE mode #5832

Open atlasdatatech opened 3 years ago

atlasdatatech commented 3 years ago

Description

In 3dtiles loading case(deck.gl>examples>website>3d-tiles), when loading 3dtiles in REPLACE mode, flickering occurs。if 3dtiles in ADD mode will be no flickering。 I checked the refresh strategy in loaders.gl. It first removes the tiles that are not in the view(controls by geomtry errors), and then loads new tiles, which leads to a black hole.

Expected Behavior

The expected scenario is that, for example, when the map is zoomed in, the tiles that need to be removed should be zoomed in first, and the old tiles should be removed after the new tiles are loaded.

Repro Steps

This is my tileset for test(http://cim.cityfun.com.cn/3dts/x1/qxsy/t1/tileset.json) The gif below are black holes that appeared when I zoomin the map。 The animation shows the phenomenon of flicker

Environment

Pessimistress commented 3 years ago

@ibgreen This seems to be a bug on loaders side? The Tile3DLayer does request a visibility update upon each tile load event.

ibgreen commented 3 years ago

We are working on a similar bug in loaders.gl https://github.com/visgl/loaders.gl/issues/1384

@atlasdatatech Feel free to open another issue in loaders.gl

@belom88 @dryabinin-actionengine