Imagery stops loading when changing terrain in request render mode
See original GitHub issue
Easiest way to reproduce
- Zoom in close to the ground and hit the
Disable terrainbutton until the imagery stops loading in (usually 2-5 clicks) - Hit the
Enable terrainbutton - Now the imagery never loads in, even after the camera moves
I wasn’t able to reproduce this when requestRenderMode: false, so it seems to be related to those changes.
It seems like it might be related to changing the terrain before all imagery tiles are loaded, but I’m not sure.
var viewer = new Cesium.Viewer('cesiumContainer', {
requestRenderMode : true,
animation: false,
timeline: false
});
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
Sandcastle.addToolbarButton('Enable terrain', function() {
viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
viewer.scene.requestRender();
});
Sandcastle.addToolbarButton('Disable terrain', function() {
viewer.terrainProvider = new Cesium.EllipsoidTerrainProvider();
viewer.scene.requestRender();
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Improving Performance with Explicit Rendering
Loading in terrain, imagery, 3D Tiles, or data sources, ... After the initial load, in request rendering mode, new frames are not rendered....
Read more >Terrain settings
Rendering.ShadowCastingMode controls how the Terrain shadow interacts with Scene objects. Off, The Terrain does not cast shadows. On, The Terrain ...
Read more >Fix Google Earth errors
Fix blurry or outdated imagery. You might see an error message if: The imagery has not streamed completely. We don't have high-resolution imagery...
Read more >terriajs-cesium/CHANGES.md
CLAMP_TO_GROUND` are now clamped to both terrain and 3D Tiles. ... Fixed a bug where imagery stops loading when changing terrain in request...
Read more >ImageryLayer | API Reference | ArcGIS Maps SDK for ...
Specifies the rule for how the requested image should be rendered. ... When blending layers, a top layer is a layer that has...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Well, I actually can’t reproduce this anymore. @mramato reopen this if you still see it
Probably not going to have a chance to look at this for the July release, but I’ll have a reproducible example ASAP so we can fix this for the August release