-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terrain loading error #4894
Comments
Are you able to reproduce this with STK World Terrain, too, or only with your custom terrain tileset? Is your tileset quantized-mesh or heightmap? |
It is a custom quantized-mesh terrain tileset. The link in the sandcastle has to be changed to this terrain. |
Hi, i could also reproduce the problem with the STK World Terrain. Also I noticed that the number of terrain request for the same view are more or less random. |
I can reproduce it using your code as well. Thanks! I'll take a look soon.
Sure, that's to be expected. It's certainly non-deterministic, depending on how long it takes for tile requests to come back and in what order. To fix this, and make Cesium load exactly the tiles needed for a particular view, we would need to make per-tile min/max heights available without downloading tiles. |
I run into this all of the time when I have a camera flight go close to the ground at the start of an application: var viewer = new Cesium.Viewer('cesiumContainer');
viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
var center = new Cesium.Cartesian3(960309.3317601935, -4954000.560677782, 3888228.4347712533);
var bs = new Cesium.BoundingSphere(center, 164.94449695026205);
viewer.scene.camera.flyToBoundingSphere(bs, {offset: new Cesium.HeadingPitchRange(0.0, -0.5, bs.radius * 2.0)}); In this case, the tiles decided never to load in: |
It looks like #4969 fixes the problems I'm seeing, although I still see that flickering for a few seconds before the tiles finally start to load in |
@jbo023 this issue has been fixed and will be included in the upcoming 1.42 release, available on Feb 1st. Thanks@ |
Ho,
we just found a weird bug in the terrain loading code. Sometimes in the front of the screen the terrain is not loaded (see screenshot). Unfortunately this Bug does not occur all the time. If you disable the webbrowser file cache it occurs more often.
I narrowed it down to the following Pull Request #4616. Before the merge I could not reproduce the problem.
It is also interesting that for the same startview, a refresh of the page does not always request the same amount of terrain tiles. As an example for another application I counted between 130 and 200 terrain requests.
The text was updated successfully, but these errors were encountered: