# F0002 - How to create fog using Fog Tool in eyeon Fusion? #
Instructor : Pradeep Mamgain
In this tutorial we will go thru the process of creating fog using fog tool of deep pixel category of eyeon Fusion tools. We will use luminance depth pass and channel boolean tool to achieve this effect. Footage is the part of the commercial project we did for a soft drink company.
#Final Output (FLV)
#Flow
We will use following two passes to generate the fog effect. One is color pass (FLV) and another one is luminance depth pass (FLV).[A]. Download the project files and have a look at the composition fog3d.comp. Now start a new composition.

[B]. Drop in two loaders in the flow and load the two footages you downloaded inside them.

[C]. Now drop a channel boolean tool in the flow.

Channel Boolean tool is used to apply mathematical and logical operations on an image. You can use this tool to modify any channel of the image using another image's channel.
[D]. Why we need Channel Boolean tool?
Fog tool is used to produce simulated fog effects in fusion and it only works with the images contains Z-Buffer info. Since second pass is luminance depth pass and it does not contain the Z-Buffer information but one thing it has is very rich luminance info. We can use that luminance info to remap the Z-Buffer Auxiliary channel using Channel Boolean tool.
[E]. Connect jungle.mov loader to the BG node of the channel boolean tool. Connect second loader to the green FG node of the Channel Boolean tool.

[F]. In Color Channels tab of the Channel Boolean tool, set operation to Copy and set RGBA channels to Do Nothing. Switch to Aux Channel Tab and put a check mark on Enable Extra Channels. From To Z Buffer drop down set option Luminance FG.



This will copy the Luminance FG info of the Luminance Depth Pass and remap it into the Z buffer channel info. Now we have got the Z-Buffer info embedded in our image now we are ready to plug the output of the channel boolean tool into the Fog tool.
[G]. Now drop a fog tool and connect Channel Boolean's output to Fog tool input.



Set the tool options as shown in above.
What are the options?
Z Near Plane and Z Far Plane are used to determine the extend or range of the fog within the scene. To set these sliders interactively drag the Pick button over the scene and drop it when you get satisfied by the result. This will only work when Z-Depth information is available inside image.
Z Scale slider is used to increase or decrease the Z-Depth information. In other words you can exaggerate the fog effect and vice-versa. Other options are used to set the color and Fog Opacity and are self explanatory.
[H]. There is one more green node. If you hover mouse over it, it would say Fog1.fog. This is used if you have other source of fog like a clip compiled in Particle Illusion. Connect that source to this node. I have connected a Fast Noise node, see settings below and animated its center over time.


This is how you can use Fog and Channel Boolean tool to simulate fog effect in eyeon Fusion.
+ Quick Video Overview +
#Download Project
Dear guest, Only registered members can download projects/footages and Video files.Kindly get registered to download the files. Once you get registered downlaod link will appear here.
#Other Info
# Discuss in Forums # Fusion KB # Other Fusion Tutorials # Fog Simulation AE