My visualization system creates a lot of BoxGeometry and updates their matricies every day. But I also use CZML that animates on a sub-day level, so I run my animations with multiplier 14400, that is four steps per day.
In Cesium 1.31, I used to get uniform and unchanging lighting on my BoxGeometry, which is exactly what I wanted. But now with Cesium 1.57 the sun is zooming overhead changing the lighting radically, and since I run time accelerated, it effectively makes everything flash like hell.
Here's a sample of that things looked like with Cesium 1.31:
And here's what it looks like in Cesium 1.57:
One change I made helped. For example, I did:
_viewer.scene.globe.enableLighting = false;
So at least I don't have the globe texture flashing like made.
But setting my BoxGeometry material to flat made them, of course, flat, so they lost their 3D cues.
I guess what I want is a point light source, like a geostationary satellite with a gigantic flashlight on it. I would calculate the normal for my data's bounding rectangle and put that light source at some high altitude on that normal, and be happy. But I'd also want to turn off the sun.
I totally get that Cesium is being accurate about lighting using the sun. I definitely appreciate that. But for my application, and I suspect many geospatial other data visualizations, it is not ideal and a more cartoonish, less astronomically-accurate lighting model would be better.
Is there something I'm missing? Is there a way to solve this in Cesium 1.57? Otherwise I will sadly have to stay with 1.31, or whatever version of Cesium before this sun-lighting stuff got added.
Thanks,
Bryan Ressler
Institute for Disease Modeling