CesiumGS / CesiumGS/cesium

Polygon lighting issue

Open
#2,399 7 comments 0 reactions 0 assignees View on GitHub
category - polygons/geometry type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

![image](https://cloud.githubusercontent.com/assets/4126790/5742895/66c4d328-9be3-11e4-99b5-2051da43dfae.png)

`````` javascript
[
{
"id": "document",
"name": "TopicID=33",
"version": "1.0"
},
{
"id": "aPolygon",
"polygon": {
"positions": {
"cartographicDegrees": [
0.0, 0.0, 100000.0,
0.0, 10.0, 500000.0,
10.0, 10.0, 100000.0,
10.0, 0.0, 500000.0 ]
},
"perPositionHeight": true
}
},
{
"id": "LowerLeft",
"position": {
"cartographicDegrees": [ 0.0, 0.0, 100000.0 ]
},
"point": {
"color": {
"rgba": [ 30, 144, 255, 255 ]
},
"pixelSize": 10
}
},
{
"id": "UpperLeft",
"position": {
"cartographicDegrees": [ 0.0, 10.0, 500000.0 ]
},
"point": {
"color": {
"rgba": [ 30, 144, 255, 255 ]
},
"pixelSize": 10
}
},
{
"id": "UpperRight",
"position": {
"cartographicDegrees": [ 10.0, 10.0, 100000.0 ]
},
"point": {
"color": {
"rgba": [ 30, 144, 255, 255 ]
},
"pixelSize": 10
}
},
{
"id": "LowerRight",
"position": {
"cartographicDegrees": [ 10.0, 0.0, 500000.0 ]
},
"point": {
"color": {
"rgba": [ 30, 144, 255, 255 ]
},
"pixelSize": 10
}
}
]```
``````

Contributor guide

Open the contributing guide

Research direction

Start by loading the supplied CZML polygon example and reproducing the lighting shown in the attached image. Inspect the polygon rendering and lighting paths to determine why the varying-height polygon is shaded incorrectly; the issue does not state the expected result or name a test, so completion criteria need clarification.

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.