Fake Fog Volume [Unreal Engine 4]

Fake Fog Volume [Unreal Engine 4]

This easy to do tuto­r­i­al will let you cre­ate a fake fog to use in your Unre­al Engine project. But with the ease of cre­ation come a few cons: there are no sides to the fake vol­ume, and it does­n’t look that great if look­ing from inside the vol­ume.

Fake Fog Material

First of all, let’s cre­ate the mate­r­i­al and call it M_FakeFog. Don’t for­get to change the Blend Mode to Tran­scu­lent.

Let me explain some of the nodes:

  • Col­or and Emis­sive Col­or are both Vec­tor Para­me­ters
  • Emis­siveStrength, DepthOpac­i­ty and Depth­FadeDis­tance are all para­me­ters. You can see their default val­ues in brack­ets besides “Param” word.
  • 0 that goes into the “Alpha” input of the Lerp node is a con­stant.

That’s it. Save your new mate­r­i­al and cre­ate an instance of it, so you can tweak the para­me­ters on the fly.

Fake Fog Blueprint

Now cre­ate a blue­print Actor (I called mine BP_FakeFog, duh).

  • Add an Instanced­Sta­t­icMesh com­po­nent.
  • Choose a sta­t­ic mesh to use as a fog lay­er (you can go pret­ty wild here, but I used one of the default planes that comes with the engine). You will need to assign it in the cor­re­spond­ing field in the Instanced­Sta­t­icMesh com­po­nent. Assign the mate­r­i­al instance you cre­at­ed ear­li­er here as well.
  • Add two new vari­ables — Num­berOfIn­stances and SpawnDis­tance, both of them are ints. Set the default val­ues to 5, for exam­ple.

Now, in con­struc­tion script, do the fol­low­ing:

We’re basi­cal­ly adding sev­er­al planes on top of each oth­er pro­gres­sive­ly

Now put the bueprint some­where on the lev­el, play around with the para­me­ters — do as you please!

Cre­ate a tox­ic pool of glow­ing acid? Easy. Just a few tweaks to the mate­r­i­al instance.

Something else to read

How to Achieve Cinematic Quality With Post-Process Effects in Unreal Engine 4

How to Achieve Cinematic Quality With Post-Process Effects in Unreal Engine 4

Unreal Engine 4 Hotkeys Cheat Sheet

Unreal Engine 4 Hotkeys Cheat Sheet

Unreal Engine 4 PS1 Post-Processing Shader

Unreal Engine 4 PS1 Post-Processing Shader

Blueprint Editor Tips [Unreal Engine 4]

Blueprint Editor Tips [Unreal Engine 4]

Archives