Page 1 of 2

Killing Fog Indoors

Posted: Mon Mar 03, 2003 2:59 pm
by MPowell1944
Don't know if this should be in the Mapping or Scripting section.

I am currently making a SH map and have added a light layer of fog to the map. I am about to build 2 farmhouses, but I want the fog to not show inside the houses. Now, I know how to eliminate fog via a trigger, but whenever I look out a window of the house I can't see the fog until I step outside, which makes it unrealistic. How would I go about killing the fog indoors, yet still see it outdoors? Sounds confusing, but if you have any clue I would appreciate the help. Thanks.

Posted: Mon Mar 03, 2003 4:18 pm
by panTera
I'm afraid the effect you're after can only be done with volumetric fog like in Q3A's death pits. I've fooled around with all kinds of farplane parameters and local triggers and such. It didn't work. :cry:
The farplane command in the script just clouds the player's view and with a trigger it is turned on or off completely. In fact farplane fog is not in the map itself but just in the player's view. However I'm not sure if it would be impossible to use volumetric fog in Mohaa. I still haven't got a clue as to why there's a common/fog texture available. It would be cool to have this feature available in Mohaa maps for sure. Maybe there's a former Q3 mapper somewhere who has experience in using local fog? Hmm I think I'm gonna read up the Q3shader and FAKK2 manuals again.

Posted: Mon Mar 03, 2003 4:33 pm
by jv_map
I think they removed volumetric fog so that it wouldn't interfere with farplane fog. Never tried very hard though.

Posted: Tue Mar 04, 2003 6:25 pm
by MPowell1944
I used a trigger to activate a farplane ramp that would turn the fog on or off depending on which trigger you walked thru, but as said, I would look outside and see no fog. Oh well, thanks anyways.

Posted: Tue Mar 04, 2003 6:31 pm
by Surgeon
on a diff note (its allowed I'm an admin :P ) : Nice to see you back mapping, and i'm glad you havn't let the majority of idiots over @ aa.com get to you

Posted: Tue Mar 04, 2003 6:34 pm
by MPowell1944
Well, thankyou sir.

I admit, it has been a rough ride, but I have found that aa.com is nothing but a flame-station. Since I have hopped back into mapping, I have found TMT and .map to be my best resources for giving and recieving help. I appreciate what you guys are doing and look forward to helping others out when I can.

:)

Posted: Tue Mar 04, 2003 6:40 pm
by Surgeon
Well JV and me do attempt the odd rescue attempt from AA.com but its not always successful.......oh well so long as .map and TMT keep going :lol:

Posted: Tue Mar 04, 2003 9:56 pm
by Angex
MPowell1944 wrote:I used a trigger to activate a farplane ramp that would turn the fog on or off depending on which trigger you walked thru, but as said, I would look outside and see no fog. Oh well, thanks anyways.
Rather than truning it on/off could you adjust the farplane distance; make it furthur away when indoors.

Posted: Wed Mar 05, 2003 4:12 am
by small_sumo
So while we are talking, how do you do the trigger thingy powelly? I need exact step by step cos my mumma beat my head with a rock when I was little......... everyday, er sorry mum.

Lol

Thanks

Posted: Wed Mar 05, 2003 12:20 pm
by _Snake_
Just an idea powell, make a texture with fog and put it 1 unit behind the window (so it seems outside) and put a no draw texture on the other side of it ... and if you have to , hide it via a trigger when nessacery :D

Posted: Wed Mar 05, 2003 2:28 pm
by MPowell1944
Some good ideas here. Adjusting the farplane farther out was something I didnt think of (odd). I will try that and attempt the fog texture.

Sumo, I do not remember off hand, but when I get home I'll grab the script and post it in this thread for you to grab.

Posted: Wed Mar 05, 2003 3:26 pm
by Angex
I remember someone saying that the fog texture is redundant, but you could try it. I haven't checked this myself so it could be wrong, or I could of imagined it. I do that now and again ! :D

Posted: Wed Mar 05, 2003 4:17 pm
by small_sumo
Is there a tut on how this is done? Triggering fog on and off?

Thanks

Posted: Mon Jun 09, 2003 7:47 am
by small_sumo
I tried Mpowells tut on killing indoor fog and it didnt work for me, true thats no suprise but does anyone have a dl test map of it for me?

Thanks

Posted: Mon Jun 09, 2003 7:53 am
by small_sumo
I get this log error.

^~^~^ Script Error: binary '>' applied to incompatible types 'NIL' and 'int'

else if (level.fogplane < local.rampto) (maps/obj/abtf_bots.scr, 766)
else if (level.fogplane ^