How can I do volumetric lighting?

With an empty project I delete all the light sources and or gives a bit of light on the level

  • Directional light
  • Skylight

Built it and all I got is a black level. Where do I start from here on setting up a simple spotlight casting a volumetric light shaft?

Your scene needs “Exponential Height Fog” Actor, in the details of this actor check the “Volumetric Fog” property. Now you still need a volumetric fog material and actors to catch the light.

Documentation:

Further reading for extra awesomeness of your volumetric materials:

1 Like

Why is it not as easy as the tutorials where they just drop “Exponential Height Fog” make sure to enable necessary settings and thats it. I’m watching this tutorial which is really popular back 2018:

PS: non of these tutorials and documentation works for me :frowning:

this is what it looks like on me following the documentations and tutorials

Is your scene still black?

Did you check the box “Cast Volumetric Shadows” on the light source?

Did you place a mesh and applied a volumetric material to it?

No. The volumetric fog effect is working. Its the light shaft that comes out of a point light that I can’t make.

Did you check the box “Cast Volumetric Shadows” on the light source? - Yes

Did you place a mesh and applied a volumetric material to it?

  • that I don’t know how to do. I never heard that being mentioned on the tutorials.

Oddly enough I have no clue how to get the global fog to be as dense as in the video or your picture. Maybe it’s something with the lighting I do wrong… So I always control it locally:

This is how you control volumetric fog locally: Create a material

289990-volumemat.png

290003-volumematgraph.png

Drag a Mesh into the scene (e.g. a cube, the fog will fill the bounding box of the mesh, so it will be a cube anyways unless you edit the extinction.) Apply your material to the mesh, scale it up to the desired size. This should produce light shafts. Particles work with volumetric materials as well.