1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  4. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  5. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

All about fog

Discussion in 'General Mapping Tutorials' started by Volvox, Aug 12, 2008.

  1. Volvox

    Volvox

    Joined:
    Jan 16, 2008
    Messages:
    1,219
    Resources:
    17
    Icons:
    15
    Maps:
    1
    Tutorials:
    1
    Resources:
    17
    All about fog

    You are having troubles getting that fog to blend in with your terrain? No matter what you do, the colors just don't fit in? Your fog looks unnatural? This brief tutorial may help.

    1. Fog options

    In order to use the fog, you need to enable it first. Fog options are accesed by pressing scenario -> Map options.
    This is the map options window:
    Fog options.JPG
    As you see, the fog has been disabled in this case. In order to enable it, just thick the 'Use terrain fog'. Once enabled, you will gain access to the fog options.

    First option is the fog style. The three styles available are Linear, exponential 1 and exponential 2. Exponential fog styles are very agressive and tend to give unwanted results so i would advise using the linear style.

    As second comes the Z start. It is a real value determining how far from the ground the fog will start. The lesser this value is, the more fog you will get in the end.

    Next is the Z end. Just like Z start, it is a real number determining how far from the ground the fog ends. The amount of fog is inversely proportional with this number.

    The relation between the two numbers above is very important as the difference between them directly affects fog density in the overal outcome. The fog density is inversely proportional with the difference(as difference increases, density lowers). If Z end is lower then Z start, the result is a firm wall of fog. This wall can be useful for hiding the real sky.
    Sky hidden by a dark teal wall of fog:
    Fog wall.JPG

    The same result can be acchieved by making the Z difference positive but very small, however, in that case, the wall will be softer.

    Density number, as stated by it's name, affects density. As useful as it may seem, i find it way easier to adapt the fog density via the Z difference(this value has greater effect on the exponential styles).

    2. Coloring

    This is probably the most awkward thing to set as it has the greatest visual effect. Let's take a look at an example and try to correct it:

    Bad:
    Wrong fog.JPG

    The blending problem is obvious; Red background conflicts with the teal-fogged hill. The first step we can take is to set the fog color to approximately match the background. In this case, we need dark red. The dark red color is in the presets so we will not have to adjust it additionally.
    Let's see the results:
    Ok fog.JPG

    Now that's better. The hill color now does well but the density seems problematic. Now that we have chosen a more intensive fog color, we get to see that the fog starts suddenly and gets intensive right away. That points us to the fact that our Z difference is too small. Let us try to spread the fog a bit. In this particular case, i will reduce the Z start from 1000 to 0(this increases the amount of fog a little) and the Z end from 3000 to 4000(this decreases the amount of fog). Now i have brought the fog closer to the camera but i have also increased the Z difference, reducing the fog density. The result is a softer field of fog for better blending:
    Nice fog.JPG

    Dough these simple steps can make your fog look better, each terrain is specific and it's fog options may require different approaches. As with everything, the key is excercise and experimenting. Good luck with your fog!
     
  2. Uchiha Sasuke.

    Uchiha Sasuke.

    Joined:
    Jun 11, 2014
    Messages:
    11
    Resources:
    0
    Resources:
    0
    +Rep. Thanks for the tutorial. It helped me create a decent fog in my dungeon map.
     
  3. edo494

    edo494

    Joined:
    Apr 16, 2012
    Messages:
    3,855
    Resources:
    5
    Spells:
    1
    JASS:
    4
    Resources:
    5
    you are master necromancer my friend, posting to 6 years old thread, wow
     
  4. Uchiha Sasuke.

    Uchiha Sasuke.

    Joined:
    Jun 11, 2014
    Messages:
    11
    Resources:
    0
    Resources:
    0
    Hey, I just felt like appreciating the person who made this tutorial; because I'm not very good at terraining so I was scratching my head on how to create a fog. And I was able to make one thanks to this tutorial.
     
  5. edo494

    edo494

    Joined:
    Apr 16, 2012
    Messages:
    3,855
    Resources:
    5
    Spells:
    1
    JASS:
    4
    Resources:
    5
    I dont think author cares, considering he was last online on July 2012 :D