http://blog.openclonk.org/wp-content/uploads/2012/11/ElevatorWithLorry.jpg
Why is the night sky dark blue and not black?
Why is the night sky dark blue and not black?

PS: Btw, in that screenshot I set the time to around 20 or 21 o'clock I think

Formula:
lightness = 100 - Abs(100 * phase / this.ActMap.Be.Length - 50); // the phase of the moon
nightcolour = [ 6 * lightness / 100, 8 + 25 * lightness / 100, 15 + 60 * lightness / 100 ];
The lightness varies between 100 (full moon) and 0 (new moon). The darkest possible night sky color thus is RGB(0,8,15), the lightest RGB(6,33,75)
>Cause the moon illuminates it a bit.
Sorry if I missunderstand the problem but what's with a transparent moon (using more alpha compositing in the png instead of blackness)?

I'm not sure if it's possible to hide stars that are behind the moon, because of the parallaxity. It would probablynrequire some calculation of the position of the camera and stuff to find out wich stars are currently behind the moon.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill