-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Day/Night lighting broken in 2D #4122
Comments
Also reported here: https://groups.google.com/d/msg/cesium-dev/vD3SiO5V6U8/-mMOU-bgCgAJ |
+1, I'm seeing this with the November release. Found this while searching before logging a duplicate. I noticed if I pan up and down it seems to happen as well as side to side, but I haven't spotted a consistent factor to narrow down the cause. |
Still seeing this issue in 1.34. Any ETA on a fix? |
@ggetz could you please try to triage Cesium releases to see if this previously worked and find the commit that broke this? |
I've found this issue to be introduced post version 1.21.0. Is there any ETA on a fix for this? |
Thanks for tracking that down @sspeaks! This is marked high priority so we hope to have time to look at it soon, but our team is spread pretty thin right now. If anyone has time to look into it, we are always happy to review a pull request with a fix! |
I ran These commits were merged to the old (For my own reference, what follows below is the Sandcastle snippet that was bisected)
|
I must admit I am kind of ignorant of frustums and 3d graphics, so take this with a grain of salt.
This bit of code seems to be the culprit in the more recent version of Scene.js. If you use the code in the if (!is2D) block for all cases(including 2d), it seems to eliminate the problem. Similarly, increasing nearToFarDistance2D from 1.76e6 to 1.76e7 also fixes the issue.
I'm sure either of those fixes breaks countless other things though. I would be happy to try and fix this with a PR, but I fear my lack of knowledge on the subject would waste your time with reviews. |
Thanks @sspeaks610 ! @bagnell what do you think? |
Also reported by @craigp1231 in #6303 |
Reported on the forum: https://groups.google.com/forum/#!topic/cesium-dev/-eSNYd_9xQk |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/d/msg/cesium-dev/vD3SiO5V6U8/-mMOU-bgCgAJ If this issue affects any of these threads, please post a comment like the following:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
@sspeaks610 @cfairchi @jeffwhitty This was just fixed and will be included in the Cesium 1.49 release available September 3rd. Thanks! |
It only
orks sometimes depending on where the camera is
The text was updated successfully, but these errors were encountered: