question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Day/Night lighting broken in 2D

See original GitHub issue

It only orks sometimes depending on where the camera is day-night-2d

viewer.scene.globe.enableLighting = true;

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
emackeycommented, Sep 20, 2017

I ran git bisect on this. It was introduced in either f924c16d220e or its parent commit 041ee30b2a6d (these are both work-in-progress commits). The parent of those commits b59067709 did not display the problem.

These commits were merged to the old models-2D branch as part of #3933, and that branch was later merged to master.

(For my own reference, what follows below is the Sandcastle snippet that was bisected)

var img = Cesium.createDefaultImageryProviderViewModels();
var len = img.length;

var viewer = new Cesium.Viewer('cesiumContainer', {
    imageryProviderViewModels: img,
    selectedImageryProviderViewModel: img[len - 1]
});
viewer.scene.globe.enableLighting = true;
viewer.scene.morphTo2D(0);
0reactions
hpinkoscommented, Aug 8, 2018

@sspeaks610 @cfairchi @jeffwhitty This was just fixed and will be included in the Cesium 1.49 release available September 3rd. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Day/Night lighting broken in 2D · Issue #4122 - GitHub
I noticed if I pan up and down it seems to happen as well as side to side, but I haven't spotted a...
Read more >
Resolved - Implementing Day/Night Lighting in 2D - Unity Forum
Hi all, I've been looking into implementing Day/Night lighting in a game I'm working on. I have a basic proof of concept but...
Read more >
xna - 2-d lighting day/night cycle
You should take a look into ambient lightning. This means you set a light color which is applied to all elements.
Read more >
Problem with Lighting System 2D by Jobo : r/gamemaker
I'm taking about the Lighting System 2D by Jobo. It seems that making many obj_light objects in the game room will create a...
Read more >
How to change 2D lights - PlayMaker
So my game is a 2D isometric game and I'm currently trying to set up the lighting for a day night cycle. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found