Welcome Back! Please login below. If you are not yet a member, why not register? Enjoy!

Join the forum, it's quick and easy

Welcome Back! Please login below. If you are not yet a member, why not register? Enjoy!

Would you like to react to this message? Create an account in a few clicks or log in to continue.
How to use fog! 31We have now opened a new Build server! IP: 188.165.193.102:27016How to use fog! 31

2 posters

    How to use fog!

    Chip
    Chip
    Map Designer
    Map Designer


    Number of posts : 88
    Age : 30
    Location : Wisconsin
    In-Game Name : Chip Jones

    Credits Credits :
    How to use fog! Left_bar_bleue0 / 1000 / 100How to use fog! Right_bar_bleue

    Warnings! Warnings! :
    How to use fog! Left_bar_bleue0 / 100 / 10How to use fog! Right_bar_bleue

    Registration date : 2008-10-11
    Points : 51
    Reputation : 3

    How to use fog! Empty How to use fog!

    Post by Chip Thu Oct 16, 2008 2:06 am

    Information from http://developer.valvesoftware.com/wiki/Fog_tutorial

    Want a creepy look to your map? Want to increase performance by letting the engine not have to render the things far enough away that the fog blocks them?

    Fog.

    Except, a major problem (And one with the map I recorded that video of) is that the fog only appears "on" props and geometry, so the sky looks non-fogged. If you don't understand, try just putting an env_fog_controller in your normal map and see. It looks ugly. To solve this, you either need to make your own skybox without "$nofog" 1 in the VMT (I will get to this in a later tutorial) or you can use a normal skybox which matches your fog color. sky_day02_10 looks perfect.

    Look at this screenshot from the VDC:
    Here

    That is the skybox with settings used in Half-Life 2.





    So, place an env_fogcontroller and open up the properties.

    You can name it if you want, if you want to Input it with a command to turn it off or on.

    Set Fog Enable to Yes
    Set Fog Blend to Yes
    Set Primary Fog color to 176 192 202
    Set Secondary Fog color to 206 216 222
    Set Fog Start to where you want the fog to start, in units from the player
    Set Fog End to how far away until the fog is completely opaque
    *OPTIONAL*
    Set Far Z clip plane to how far away until stuff isn't rendered. Make it farther than the Fog End, so that the player sees no difference.
    *OPTIONAL*


    These are just one bit of settings, which go with that particular skybox. If you can make your own, you have much more control and could make a greyish, nighttime, evil fog. What a Face



    There you go.



    -Chip
    chargers5583
    chargers5583
    Elite Member
    Elite Member


    Number of posts : 473
    Age : 27
    Location : San Diego
    In-Game Name : [NBUټ] (*BS*) Red Baron

    Credits Credits :
    How to use fog! Left_bar_bleue0 / 1000 / 100How to use fog! Right_bar_bleue

    Warnings! Warnings! :
    How to use fog! Left_bar_bleue2 / 102 / 10How to use fog! Right_bar_bleue

    Registration date : 2009-06-30
    Points : 577
    Reputation : 6

    How to use fog! Empty Re: How to use fog!

    Post by chargers5583 Tue Jun 30, 2009 7:13 am

    Thank you very much!

      Current date/time is Thu Mar 28, 2024 5:34 pm