Game Development Community

Day and night cycle

by Jonas · in Torque 3D Professional · 07/06/2010 (1:38 pm) · 4 replies

Hey Community!

I have been building a level now for quite some time and today was finally the day i switched to night from day to see the final result, However there is a problem with the cycle.

When the sun is below the main terrain block light still gets thrown at objects...

What do i do to correct this?

Regards
/Jonas

About the author

Freelance 3D artist at day scripter/coder on Enduring Life at night. Lover of all things TorqueScript.


#1
07/06/2010 (7:45 pm)
If you are using the scattersky object then check your night time colour and settings. I use the TimeofDay object and also the scattersky and can end up with some very nice dark nights.

#2
07/06/2010 (8:47 pm)
Check you haven't got scattersky and sunObject in the same level.

No, really ... I've done that before ...
#3
07/07/2010 (2:25 am)
Hey again!

Ye there we got it, was using "the sun" object changed it to scatter sky now and it works great thanks!

Regards
/Jonas
#4
12/23/2011 (10:25 pm)
Okay I'm putting this here because, even though it deviates from Jonas' original post, it's covered by the subject header.

I'm playing with a TimeOfDay object in my scene and noticed the lack of movement with the moon in the sky. This looks weird as the sun orbits beautifully. In any case I was hoping someone would know of a resource for adjusting the moon to have the same 'path' as tjhe sun? I'm thinking a dynamic azimuth would do it, but I'm not sure this would be the best approach... if it can be done at all? Anyway.....