CesiumGS / CesiumGS/cesium

Artifact appears on polygon when viewed from a low angle

Open
#9,289 2 comments 0 reactions 0 assignees View on GitHub
category - graphics type - bug
Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

![image](https://user-images.githubusercontent.com/25416773/102322634-50fa9b00-3fba-11eb-93f7-318570b9f9b1.png)

![image](https://user-images.githubusercontent.com/25416773/102321763-193f2380-3fb9-11eb-85e9-1973c81df612.png)

angle of view is lower, the shadow will appear,i want the shadow disappear

this is code:
```js
var viewer = new Cesium.Viewer("cesiumContainer");
viewer.scene.globe.enableLighting = false;
viewer.shadows = false;
var redPolygon = viewer.entities.add({
name: "Red polygon on surface",
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArrayHeights([
116.31282326252641,
40.02362677720817,
-2.502101525,
116.31980360345781,
40.02362677720817,
-2.502101525,
116.31980360345781,
40.012985336043336,
-2.502101525,
116.31282326252641,
40.012985336043336,
-2.502101525,
116.31282326252641,
40.02362677720817,
-2.502101525
]),
height: 1000,
material: Cesium.Color.RED,
},
});

viewer.zoomTo(viewer.entities);
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the artifact with the provided Cesium Viewer and polygon entity snippet, especially at a low camera angle with globe lighting and viewer shadows disabled. Start by tracing polygon rendering and shadow handling, then verify that the low-angle artifact is gone without changing the intended polygon appearance.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.