CesiumGS / CesiumGS/cesium

Terrain produces unexpected results in rotatable 2D

Open
#7,010 2 comments 1 reaction 0 assignees View on GitHub
category - 2d / columbus view category - terrain and imagery priority - high type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

![rotatable2dterrainbug](https://user-images.githubusercontent.com/5395255/45164007-8b601580-b1bf-11e8-92ea-f0eadbe969fb.jpg)

```
var viewer = new Cesium.Viewer('cesiumContainer', {
terrainProvider: Cesium.createWorldTerrain(),
sceneMode : Cesium.SceneMode.SCENE2D,
mapMode2D : Cesium.MapMode2D.ROTATE
});
```
[On current Sandcastle](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=ZY9dT4MwFED/SsPLICEl7tEx4sJ4c84I0Ze+dO2dNpaW3BaWafzvdkOcH327p+c0twNHMig4AJIlMXAgJTjVt/TxzOKZOI+lNZ4rAzhLyTszJBwPiAHdox2UBLyeQoHAPTxZ1LIZlThJx8QJMLCxEsi3XU+I1mV1V83XX2rLuxOdry/qZkL0YdusmoqZj2QRpVHu/FFDMXY3qu0setKjjinNPLSdDuu4bNeLV/BUOJcsmMmzKcqlGoiSSxb9+SmLiNDcuXCz77Wu1RuwqMiz4P/KtOVSmeftAKj58aS8XBW3I6SU5lkY/1feWr3j+OPFTw)

This is reproducible at least as far back as 1.39 using STK World terrain.

Contributor guide

Open the contributing guide

Research direction

Reproduce the report in the linked Sandcastle using Cesium.Viewer with createWorldTerrain, SCENE2D, and MapMode2D.ROTATE, and compare the result with the attached terrain image. Trace the rotatable 2D terrain rendering path; done means terrain behaves correctly in this configuration and the regression is covered by a suitable test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.