0

I wanted to know how I can make this foggy effect on the background just like in the image below, that the far parts are hidden by the fog.

enter image description here

Thank you.

Elay
  • 65
  • 1
  • 6

2 Answers2

4

Another option is to surround your scene with a cube and give it a Volume based on a Volume Scatter node, with it's density controlled by the Z-Depth or View Distance output of a Camera Data node. In the example below, I used "multiply", as this gives the best generalized effect, whereas, "add" will make the fog "fill in" the caverns as the camera scrolls out. Have a try with both if you like.

FogFade

This is the scene in solid mode:

FullScene

As you can see, all I did was surround the scene with a cube, remove the surface color from the cube, and connect the Volume Scatter with a low density (governed by the Math nodes)

Christopher Bennett
  • 25,875
  • 2
  • 25
  • 56
  • Could you please walk me through it? I'm having some difficulties getting it right. The box doesn't become transparent and doesn't generate any fog. https://imgur.com/eLcTiTa – Elay Jul 14 '20 at 11:48
  • Sure, I added a second image to my photo. Can you elaborate more on what's wrong? I did nothing special to the cube except for modify the volume as shown in the first photo. Note the position of the light, however. It is necessary to illuminate the fog – Christopher Bennett Jul 14 '20 at 13:16
  • Thanks a lot!!! – Elay Jul 14 '20 at 16:10
2

You can achieve this effect using a Mist Pass in the compositor. Search on this site for "Mist Pass" and you should find many examples.

Rich Sedman
  • 44,721
  • 2
  • 105
  • 222