Game Development Community

Scatter sky settings

by Alex Huck · in Torque 3D Professional · 09/05/2009 (8:16 pm) · 3 replies

Hi, I want to create a cave that is nearly pitch dark inside unless the player has a torch or something... So far I achieved the effect I wanted,

i11.photobucket.com/albums/a194/Alex_Huck/DarkCave.png
The trouble is, the way I got that effect, I set Scatter sky's skyBrightness member to 1.0, this results in the sky it's self being pitch black even at noon time...

i11.photobucket.com/albums/a194/Alex_Huck/DarkSky.png
Are there attributes I can change that will let me have a blue sky despite the low brightness... or perhaps have a high brightness with a dark cave? Maybe the Mie/Rayleigh scattering attributes I was thinking, but have no idea how to use them effectively.

#1
09/05/2009 (8:40 pm)
I had a scatter sky question as well it goes along with what Alex is asking (which by the way I can't answer :P ). I set my sky brightness to 1 which gives me a black sky which I want.

I then changed my ambient color to a dark red. My question is, is there a way to change the color of the sun in the scatter sky. Everything looks good--- a pitch black sky, a murky red atmosphere and then a nice bright yellow glowing sun which does not match the rest of the area.
#2
09/07/2009 (1:28 am)
@Alex
You should be able to leave the scattersky's brightness higher than that and then set the ambientScale down to something low, like 0.1 0.1 0.1.

@Chris
I don't believe that you can directly change the color of the "visible" sun separately from the sky/light as a whole. You can try adjusting the mie scattering coefficient though.
#3
09/07/2009 (8:45 pm)
Thanks James, I'll give that a try.