Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon lighting is significantly darker in 2D/CV #5730

Open
hpinkos opened this issue Aug 7, 2017 · 9 comments
Open

Polygon lighting is significantly darker in 2D/CV #5730

hpinkos opened this issue Aug 7, 2017 · 9 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Aug 7, 2017

For the GeoJSON custom styling sandcastle demo, the polygons are bright and happy in 3D:

image

But are much darker in 2D and CV:

image

I wouldn't expect there to be such a big difference

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 8, 2017

Related to or duplicate with #1825 (comment)

@ggetz
Copy link
Contributor

ggetz commented Dec 19, 2017

Brought up on the forum here: https://groups.google.com/forum/#!topic/cesium-dev/CCzuJQRrX50

@hpinkos
Copy link
Contributor Author

hpinkos commented May 25, 2018

Also reported by @AndreasSvendby in #6630

@huochaimindy
Copy link

@hpinkos Hi! hpinkos, Now i have the same problem like this. Could you tell me what is the final solution about this issues, thanks!
#Polygon lighting is significantly darker in 2D/CV

@likangning93
Copy link
Contributor

Heads up, seems like this can partially be worked around by adjusting the scene time so the sun is in a better location to light up the darkened elements.

@sofasama
Copy link

sofasama commented Aug 5, 2020

Heads up, seems like this can partially be worked around by adjusting the scene time so the sun is in a better location to light up the darkened elements.

@OmarShehata

It doesn't seem to solve this problem, the darker color doesn't change. Is there another solution?
lighterror

@srothst1
Copy link
Contributor

A community member made an interesting observation on polygon color accuracy in 2D. It seems like the color of a polygon is only altered in the 2D viewing mode if a height value is set.

The following sandcastle demo showcases this behavior.

@ashley-mort
Copy link

ashley-mort commented Sep 7, 2021

We see the same problem (using Cesium 1.60). We were using 2D and trying to set height:0 to avoid the problem where .pick doesn't work well when the map is zoomed out far (#8052) but then all our shapes displayed darker as shown by the previous post.

@ggetz ggetz mentioned this issue Oct 31, 2023
@ggetz
Copy link
Contributor

ggetz commented Oct 31, 2023

Also reported in #11597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants