I tried to comment every line to make it understandable
The camera controls have been left the same to keep things simple, zoom out to see whats happening.
The day takes only 24 seconds (i think).
I know this is far from useful, just wanted to be helpful…
this is quite a nice start Anon - it got some quirks and is perfectible as everything but it is something worth to work with because it is easy to understand for the beginner as well.
Got to fix that dome overlapping the ground though before to be really useful.
I did that on purpose so people could see whats going on.
Well actually I have some problems with that code:
EDIT: was a wrong setting in Blender, fixed.
Uh, I think you misunderstood. The updated code I posted above had to do what you said, it works for the other 2 domes, but the one with clouds doesnt work. Probably because it has transparency…
I did a quick try to fix and failed Anon
I recall I dug skyboxes before and rummaging my stuff I found this - try to see if you find something useful there to help you out.
Well I do, I always knew my pc was special
It does get weird when the sun goes below the ground though.
I also tried to fade the light to nothing, add a light at the moon position and when the time comes fade it to nothing and fade the sunlight back. Currently there is no transition at all when a new day starts. I tried to use a color interval and change the light transparency for this effect but it didnt work. There must be another way.
I wouldn’t post this in the snippets section if I did.
I myself think this is very unrealistic. I have tried to search some articles about how to do this but couldn’t find anything. Pleade tell me if you know of any.
Also I would like to change the sunlight colour depending on the time of the day with another interval, but I need info
I’m getting similar issues Anon:
and I know for sure light shadowcasting is working in other projects here - aint the time to dig though but you may try to find hypnos zombieshooter somewhere in the forums and easily see by yourself if you want.
For the record, I am using 1.7.0 on Windows and see no shadows. I will look up the suggested threads in the weekend but if you found the fix let us know…