Fog Blending

Tutorial collection, comprehensive listings on main site.

Fog Blending

Postby Tutorial on Sat Jan 21, 2006 3:49 pm

category
General Half-Life 2/Effects

description
Getting fog to look just right is always a challenge, learn how to adjust it in game to get an idea of how it will look.

keywords
fog, blending, env_fog_controller, blend.

This tutorial assumes you have an existing basic knowledge of how to set up fog in source.

This was pointed out to me by one of the artists here at work as a painless way to get effective in-game fogging set up, both in the map itself and in the 3D skybox, with a seamless transition between the two.

Add a fog_controller to your map
Add a skycamera to your 3D skybox (you should have one already)

Run your compiled map in the engine, and in console turn on;

developer 1
sv_cheats 1
fog_overide 1
fog_enable 1
fog_skyboxenable 1 (if you want to edit the skybox fog, you don’t have to)

Now you can use these commands to setup and change the fog.

fog_color (R G B) (the colour of the fog in-map)
fog_colorskybox (R G B) (the colour of the fog in the skybox)

fog_end (where the fog in level ends)
fog_start (where the fog starts)
fog_endskybox (where the skybox fog ends)
fog_startskybox (where the skybox fog starts)

Play with all these values and you can observe the effects in real time, 'on the fly' in the engine. Sort out the values that give you the most effective fogging and blend between the map and skybox, then note them all down on a pad.

Once you have these values noted down quit back to hammer and plug the values into you fog_controller and sky_camera respectively.

Tada - Kickass fog blending with little or no grief.

JamesL
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby Sauce on Mon Jan 23, 2006 12:40 pm

Holy Fuck! That's awesome! So simple and I can now finally do the fog in my map without waiting 30 mins every time for compile :D !
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby -[Getty]- on Thu Jan 26, 2006 8:41 pm

Sweet. That is very helpful. Much thanks.
source-maps wrote:a Quad Core CPU , arent that like 4 cpus?


-=-=-=-=-=-=-=-=-
Club No Release
-=-=-=-=-=-=-=-=-
User avatar
-[Getty]-
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Sun Nov 27, 2005 5:54 pm
Location: Pennsylvania

Postby srosjunk on Wed Mar 08, 2006 6:22 pm

Wow - great tutorial. You must have read my mind several months ago.
Been working on this problem for several days now - what an easy way to get just the right effect you are looking for. Nice one - thanks.
User avatar
srosjunk
Regular
Regular
 
Joined: Mon May 16, 2005 6:59 pm
Location: Chicago, IL

Postby SM Sith Lord on Tue Jan 02, 2007 7:34 pm

Freakin amazing man ty. It takes me over 5 hours to compile my map without HDR, and it was *very* annoying compiling just to test new fog values. Thank you!
SM Sith Lord
Been Here A While
Been Here A While
 
Joined: Sat Nov 25, 2006 4:25 pm
Location: Los Angles, CA

Postby Hydra on Sun Jan 07, 2007 10:25 am

OMG!!!!!! I'm saved! Then again, I think I commented on this somewhere else too but I forgot about it and found this again. Ha, so forgetful. You've saved me hours of compile time. :D
Image
Image
User avatar
Hydra
Regular
Regular
 
Joined: Fri Aug 18, 2006 9:35 am

Re: Fog Blending

Postby dark_veil on Thu Jun 04, 2009 11:21 am

the vaule in the console simply says "fog_end -1" i change the -1 to a different value and nothing changes.
dunno what im doing wrong

edit:
ignore me.. just being an idiot. although my env_fog doesnt look great at all, just the textures look lighter, nto actually effecting the free space
User avatar
dark_veil
Pheropod
Pheropod
 
Joined: Mon Nov 19, 2007 6:10 pm
Location: England

Return to Tutorials

Who is online

Users browsing this forum: No registered users