Stormfog
by Howard Dortch · in Torque Game Engine · 12/30/2005 (7:03 am) · 8 replies
There was some info on this in the forums in the past and now it's gone.
I want to set fog on within the game and I think the command was:
sky.stormfog(1,5) nothing happens. I assume the fogVolume values need set for this to work so if I set the fogVolume1 parameter in the mission editor and leave fogStorm1 UN checked, I get fog. I use the console and enter sky.stormfog(0,1) I still have fog.
How can I get the layer fog to come and go from within script?
I want to set fog on within the game and I think the command was:
sky.stormfog(1,5) nothing happens. I assume the fogVolume values need set for this to work so if I set the fogVolume1 parameter in the mission editor and leave fogStorm1 UN checked, I get fog. I use the console and enter sky.stormfog(0,1) I still have fog.
How can I get the layer fog to come and go from within script?
#2
I fill in the values for fogVolume1 and there is fog without having to use the command sky.stormfog(1,5)
now I have fog and the command sky.stormfog(0,1) will not remove the fog
Experiment HOW? Is this NOT the proper command?
12/31/2005 (5:09 pm)
Sky.stormfog(1,5) nothing happens I fill in the values for fogVolume1 and there is fog without having to use the command sky.stormfog(1,5)
now I have fog and the command sky.stormfog(0,1) will not remove the fog
Experiment HOW? Is this NOT the proper command?
#3
I looked a the 1.3 version and the fogVolume1 is set to 100 0 200. If you move the evevation of that up some the fog is on all the time, sky.stormfog(XX) does nothing. Is the stormfog broke?
01/05/2006 (1:54 pm)
Going to bump this.I looked a the 1.3 version and the fogVolume1 is set to 100 0 200. If you move the evevation of that up some the fog is on all the time, sky.stormfog(XX) does nothing. Is the stormfog broke?
#4
Those fogStorm1, fogStorm2, and fogStorm3 checkboxes in the Sky properties are pretty meaningful.
Playing around with the working example in the demo will get you pretty far along as Ben mentioned.
01/05/2006 (2:30 pm)
I'll give you a hint:Those fogStorm1, fogStorm2, and fogStorm3 checkboxes in the Sky properties are pretty meaningful.
Playing around with the working example in the demo will get you pretty far along as Ben mentioned.
#5
If you dont use the fogstorm1,2,3 checkboxes the dynamic fog is not working with the console commands.
For example if you wish having fog coming in and out.
@Howard
mark fogstorm 1
set fog volume 1 to ex. 125 0 215 for the stronghold mission .
type in console sky.stormfog(1,50)
To get what you want you need to tweak the first and third value with the stormfog percent value.
If you need layered fog you add the other fog volumes .
Its lots of testing to get most out of this , but its a wonderful effect when you get all volumes work together.
Obs.
If you use 1 fogvolume dont type in any values in the other volumes let them be 0 0 0 , if you do that without marking the fogstorms checkboxes then the stormfog function dont work.
01/05/2006 (4:05 pm)
@Matt If you dont use the fogstorm1,2,3 checkboxes the dynamic fog is not working with the console commands.
For example if you wish having fog coming in and out.
@Howard
mark fogstorm 1
set fog volume 1 to ex. 125 0 215 for the stronghold mission .
type in console sky.stormfog(1,50)
To get what you want you need to tweak the first and third value with the stormfog percent value.
If you need layered fog you add the other fog volumes .
Its lots of testing to get most out of this , but its a wonderful effect when you get all volumes work together.
Obs.
If you use 1 fogvolume dont type in any values in the other volumes let them be 0 0 0 , if you do that without marking the fogstorms checkboxes then the stormfog function dont work.
#6
01/05/2006 (5:39 pm)
Yes Billy...I know =P
#7
Seems to me what should happen when in edit mode is when the box is checked and hit apply there is NO fog until you make the call sky.stormFog(XX)
01/06/2006 (5:28 am)
Finally got it working. What you guys didn't mention is when you check fogStorm1 box and hit "APPLY" it doesn't really apply until you quit the mission then start it again. Thats not confusing.....Seems to me what should happen when in edit mode is when the box is checked and hit apply there is NO fog until you make the call sky.stormFog(XX)
#8
Sorry i forgot to mention that.
But im happy you got it working !
01/06/2006 (7:25 am)
Ye right Howard i always start with sky.stormfog(1,x) and change the fog volumes until i get the result i want,and after that testing to get max result.Sorry i forgot to mention that.
But im happy you got it working !
Associate Kyle Carter
Have you looked at the feature demo? It uses the storm fog, IIRC.