Day night star cycle?

Blitz3D Forums/Blitz3D Programming/Day night star cycle?

Guy Fawkes(Posted 2009) [#1]
can someone please post a zip file of the day to night / star cycle demo thats affected by real time of day or night. or A day to night / star cycle demo thats affected by real time of day or night?

i can't seem to find the old one anywhere online and i need it for the dynamic grass demo which im going to be adding to my project. so yea


Guy Fawkes(Posted 2009) [#2]
ok guys. i have attempted to make my own day to night function. the problem is when it reaches 255 & the setnight variable is turned on, it doesnt let the numbers go back down to 0 like they should. and when it reaches 0 and the setday variable is turned on, it doesnt let them go back up like it should.

what am i doing wrong here & how can i fix this?

code:



sorry if my code formatting is a bit off. i am more of a tab person than a space person :P


Guy Fawkes(Posted 2009) [#3]
could someone show me also how to make a bright sun, and moon and rotate them?

thanks!


wmaass(Posted 2009) [#4]
You need this:

http://www.blitzbasic.com/Community/posts.php?topic=87026


Guy Fawkes(Posted 2009) [#5]
thanks wmaass!