Game Development Community

Has anyone worked out how to add moon to "time of day" and "scattersky"?

by Kira · in Torque 3D Professional · 05/22/2009 (5:03 pm) · 11 replies

The new day night cycles look as good as anything I've seen , such as Quest 3d and Cryengine except it lacks a moon.
Moonlight is reasonable if you make night color a very dark blue but , it kinda gives it away with no moon
So how can we add a moon or for that matter moons?
Unfortunatly I am an artist and my wife is the programmer but she is not here to ask at the moment

any ideas anyone?

#1
05/22/2009 (5:07 pm)
Its on our TODO list for beta 3.... stay tuned. ;)
#2
05/22/2009 (6:25 pm)
you mean something like this?
took 10 minutes to set up, so its a bit rough,
but easy to do.

#3
05/22/2009 (6:32 pm)
Showoff......... hehe
So how did you do it ??
#4
05/22/2009 (6:39 pm)
create a fxSunLight,
use a moon texture,
use the same texture for both the LocalFlareBitmap and the RemoteFlareBitmap,
do NOT lock to real sun,
check the AnimElevation box of the fxSunlight,
play with the sunAzimuth and SunElevation of the fxSunlight till the moon follows on the same heading as the sun,
pause the time of day animation till the moon is about 180 degrees from the sun,
unpause the sun,
save the level,
done.
oh,
dont forget to set the sun and the moon to have the same time scale. for the vid, I set them both to 60 seconds, didnt want to record a 24 hour cycle (can you imagine how long that would take to upload to youtube?) 8oO
#5
05/22/2009 (6:46 pm)
Sometimes the moon is out during the day, but the sun is never out at night :D
#6
05/22/2009 (6:49 pm)
yes, the sun is a "goody two shoes", stays home at night.
#7
05/22/2009 (6:58 pm)
@deepscatch
Yeah I tried something similar with the sun but it seemed to lock the time of day sun once it got to a set hight , but I was only messing around for like 3 minutes , so will give it a go
Tom is apparantly still working on it , so not going to give it too much attention yet , but Stars would be really cool.:-)
We have been working on a game for 2 yrs now full time and have 2 interns doing art work for us as well and it's awesome to see our levels in an actual time of day environment.
Thanks
#8
05/23/2009 (5:45 pm)
@ Tom
Is there a plan to implement Gui such as the one from Cryengine 2 to control Sky shader? it has a series of gradients just like photoshop set over a timeline of 24 hrs


#9
05/23/2009 (6:53 pm)
@Richard
Yes there is still work to be done on the scattersky, in particular improving the day-night transition and exposing things in an easier to tweak way, and this will likely take the form of some custom controls and/or an editor.
#10
05/23/2009 (7:20 pm)
Awesome that would be great to see
This engine is shaping up really well
#11
06/06/2009 (1:53 pm)
And how about stars?