question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Imagery stops loading when changing terrain in request render mode

See original GitHub issue

image

Easiest way to reproduce

  • Zoom in close to the ground and hit the Disable terrain button until the imagery stops loading in (usually 2-5 clicks)
  • Hit the Enable terrain button
  • 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:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
hpinkoscommented, Jul 3, 2018

Well, I actually can’t reproduce this anymore. @mramato reopen this if you still see it

1reaction
hpinkoscommented, Jun 25, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found