how to make fog?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
sKsMudvayne
Lance Corporal
Posts: 20
Joined: Wed Aug 18, 2004 7:49 pm
Location: Canada, Ont.
Contact:

how to make fog?

Post by sKsMudvayne »

hey i was wondering any of you could tell me how to make fog in my map.....i tried checking in the tut but couldnt find it unless i missed it ....well anyways i was wondering how to make fog in my map.....and not to much fog just a little :)
Thy shall pay in blood
.:Ne0:.
First Lieutenant
Posts: 176
Joined: Wed Dec 11, 2002 2:22 pm

Post by .:Ne0:. »

I believe that the best way to make fog is to script it.
For example:

Code: Select all

main:
   setcvar "g_scoreboardpic" "none"

   level waitTill prespawn

   exec global/DMprecache.scr

   level.script = maps/dm/yourmap.scr

   level.farplane = 3000.000000
   $world farplane level.farplane
   $world farplane_color (.7 .7 .7)

level waittill spawn

end
This is the actual piece that generates the fog:

Code: Select all

   level.farplane = 3000.000000
   $world farplane level.farplane
   $world farplane_color (.7 .7 .7)
The density of the fog:

Code: Select all

   level.farplane = 3000.000000
600 is very heavy fog while 8000 is allmost nothing

The color of the fog

Code: Select all

   $world farplane_color (.7 .7 .7)
for colors, in radiant, press "k"

I dont know much about scripting, but i think that this is the best way (and please, if my script is wrong then correct me! 8-) )

Ne0
Ne0[be]
better known as El Sarcasm0!
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

cant u set it in worldspawn in radiant?

farplane
blahblah
"We must become the change we want to see in the world" (Mahatma Gandhi)
FIVEBOY
Colour Sergeant
Posts: 94
Joined: Thu Feb 27, 2003 3:09 pm
Location: England
Contact:

Post by FIVEBOY »

The fog is called "farplane" and you set the distance and color in worldspawn.

1. Select one of your skybox brushes.
2. Hit key N.
3. In the "Key:" box type farplane.
4. In the "Value:" box type in the longest distance (in units) found on your map. Example: 8000.
5. Hit enter.
6. Now type farplane_color in the key box.
7. In the value box type three numbers for the color. Example: 0.33 0.33 0.33 .
8. Hit enter and key N again on the keyboard.
9. Save your map
sKsMudvayne
Lance Corporal
Posts: 20
Joined: Wed Aug 18, 2004 7:49 pm
Location: Canada, Ont.
Contact:

Post by sKsMudvayne »

thnx for helping me.....the scripting didnt work but the worldspawn thing did...... :D :) :P
Thy shall pay in blood
Post Reply