CesiumGS / CesiumGS/cesium

Material difference in 2D scene

Open
#9,853 3 comments 3 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

I'm facing a problem about polygon material and appearance in 2D mode.
One thing is that if I do not set the hight attribute, the material (color) of the polygon might look strange.
The other thing is that if I set the hight attribute as zero, the material shows correctly, but the polygon seems to have an appearance issue when I zoom in, zoom out or drag the map.

Here is the discussion we had in the forum:
https://community.cesium.com/t/material-difference-in-2d-scene/15070
https://community.cesium.com/t/material-difference-in-2d-scene/15070/14

The sandcastle demo in my latest response is as below
Sandcastle example: https://sandcastle.cesium.com/index.html#c=bVJNj5swEP0rIy4BCRlW7aHNQvqRVuoh6h5StVqVHrx4AKvGjuyBFV3lv6/5SLpNYyRm/Jj3GL9xzy30Eh/RQg4aH2GLTnYt+z5hYRGU035rNHGp0RZBdFto/1BBM4+hJkkSHeNChE+FhvPSvMU1rL6aLyjrhlbxzAM4GDXURq/haUYKaiRabstmWJ862HJLPuP6FausaT9hbRHdB2v5EP480QBu0jSGlKXxBfT2X+j1m6vQS+Kv6Jy2nNBKrv42Y5Sx7P7zbnf343yK45IdZ0v2XIuSO1I4OvHN1LXCjx2R0d7GPRI0kwtFEEPFlUMfOl2SNBrCssHyN4oIJv8uje256nyopPJthSdWKAnbaDFcVhDCCLDRdMjzfHWPbvEdFt15TVXLBNjck5/90gG8gxTW0GmBlZ+3uJ15xzFM5/SvIA4yR4PCzUn0vWwPxhJ0VoWMJf4HB+UtdMlD50WJlc5Fi1KWvKRmQvYgRX7lnkGpuHP+S9UptZd/sAg2WeLr/6Mqw4XU9V2PVvFhLGtuNrsZZIxlid9eZ5Ix6oHbC+Vn

Browser: Chrome

Contributor guide

Open the contributing guide

Research direction

Start by running the linked Sandcastle example and compare the polygon in 2D mode with height omitted and with height set to zero. Review the linked forum discussion for the reported behavior and reproduction details. Done means the material remains correct and the polygon does not show appearance issues while zooming, zooming out, or dragging the map.

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.