Open jailln opened 5 years ago
While it is not checked by iTowns, it should be checked in the browser cache. In your debugging tool, is the Disable cache
option unchecked ?
Here is what I got
Yes you're right, my question was not well expressed.
While it is cached, it seems to be unloaded from iTowns' memory and hence requested again (from cache) and then parsed again ? If this is correct; is there an option to avoid unloading these tiles and to just not render them ?
I don't really know the 3dtiles part of iTowns, so I have no clue here. Maybe @jailln can help here ?
Haha that's actually me asking the question ;)
How does it work for other types of data ?
Damn sorry I got confused with another thread !
For most data in iTowns, apart from 3dtiles and pointclouds, it is set in the Cache
in the DataSourceProvider
. For 3dtiles, I think tweaking things here could be a solution.
Ok, thanks. I guess we should use the Cache object as well in 3D Tiles then.
A solution might also be to turn the loaded tiles contents visible or not using Threejs' Object3D.visible instead of unloading them after a fixed delay that is defined here.
A solution might also be to turn the loaded tiles contents visible or not using Threejs' Object3D.visible instead of unloading them after a fixed delay that is defined here.
yes, and unloading children when theirs parent aren't visible.
The complete 3d-tiles support is planned in the short term road map. We are currently studying possibilities in terms of libraries to enhance support (as mentioned in https://github.com/iTowns/itowns/discussions/1917).
Cache does not seem enabled by default for 3D Tiles.
For instance, if you zoom in/out in this example (warning: temporary link) you can see from the network debugging tool that the tiles are re-requested.
Is there a way to enable cache for 3D Tiles ?