Not logged inOpenClonk Forum
Up Topic General / Help and Questions / The night
- - By Armin [de] Date 2012-11-18 23:29
Parent - - By Zapper [de] Date 2012-11-18 23:46
Not sure, I guess for cosmetic reasons (i.e. not having such a high contrast)? Newton? :)

PS: Btw, in that screenshot I set the time to around 20 or 21 o'clock I think
Parent - By Armin [de] Date 2012-11-19 00:18
Ok my problem was that I waited in Goldrush until it's dark and I felt like in these unbelievable unnatural big citys where the sky never gets his real black. (The end stage seems to be the same as in the picture).
Parent - - By Newton [de] Date 2012-11-18 23:49 Edited 2012-11-18 23:52
Cause the moon illuminates it a bit.

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)
Parent - - By Armin [de] Date 2012-11-19 00:23 Edited 2012-11-19 00:37

>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)?
Parent - By Pyrit Date 2012-11-19 11:02
The stars would shine through the transparent parts of the moon. While this would probably look better, it would be illogical to have stars in front of the moon.
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.
Parent - By Newton [de] Date 2012-11-19 14:04
Where do you see a connection between a transparent moon and the night sky lightness?
Parent - By AlteredARMOR [ua] Date 2012-11-20 07:20
Obviously because it looks much better that way... ;)
Reply
Up Topic General / Help and Questions / The night

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill