Game Development Community

Sun light source

by Architecture@Uni Melbourne · in Torque Game Engine · 03/11/2009 (12:45 am) · 3 replies

I saw an example scene with a realistic looking sun and sky.
I want to make the sun and sky dependent on the time of day. So if it is midday then the sun will be high in the sky and the sky bright. But if it is 3am then the sun is gone and the sky is dark.

Does such a library exist to do that?

thanks

#1
03/11/2009 (2:51 am)
Does such a library exist to do that?
No, but...

The real problem is there is no way to actualy relight the scene for each increment of the sunlight. So you can 'fake' the effect useing an screen overlay that adjust visual contrast, and adjusting the color of the fog to grow darker, and distance from player to close in with dark fog around, as the sun go down. Relatively easy engine modifications needed to the 'sky' code. A good place to start for the sake of understanding what your doing is checking into stormFog/stormClouds ConsoleMethod and building from there.
#3
03/11/2009 (3:38 pm)
thanks deepscratch - that looks interesting