CesiumGS / CesiumGS/cesium

Re-render when adding/removing primitives in requestRenderMode

Open
#6,734 9 comments 0 reactions 0 assignees View on GitHub
type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

In the `development/Polylines On Terrain` sandcastle example, if you initialize the viewer with...
```
var viewer = new Cesium.Viewer('cesiumContainer', {
terrainProvider: worldTerrain,
requestRenderMode: true,
});
```
The "Toggle instance show" button stops working after initial render.

In an app this prevents these polylines from initially appearing even if you `requestRender()` when adding the geometry.

Contributor guide

Open the contributing guide

Research direction

Start with the development/Polylines On Terrain Sandcastle example and reproduce the failure after enabling requestRenderMode. Trace how adding or removing primitives and the "Toggle instance show" button interact with requestRender(). Done means the button works after initial render and newly added polylines appear when rendering is explicitly requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.