Game Development Community

Scattersky

by Kira · in Torque 3D Professional · 06/01/2009 (3:09 pm) · 4 replies

Hi
does anybody know where the code to change the color of the scattersky is ,I have spent a full day looking and come up empty.
I was looking to find RGB values for a gradient.

Thanks

#1
06/01/2009 (4:11 pm)
The ScatterSky derives its color procedurally, via atmospheric scattering calculations. You can adjust some of the overall color with the rayleighCoefficient variable but if you need a very particular color, it may not be the right object for you. Alternatively you could set it up so that it could blend in a color, but I don't know how well that would work.
#2
06/01/2009 (4:43 pm)
Ah ok
Thanks I want to get a nice daylight with a lighter blue/slightly yellow horizon.
I might wait until the control options that was mentioned is added later down the track.
Thanks again
#3
06/01/2009 (4:47 pm)
Also is that rayleighCoefficient variable animatable?
#4
06/03/2009 (1:33 pm)
Play around with the two scattering coefficents and the atmosphere/viewHeight (forget which it is). When messing with the height keep in mind that very very small changes of the value can have a very large effect.

It cannot currently be animated, but that it something we want to add.