God rays not showing or Problem with getting volumetric shadows with raytraced shadows activated on the directional light!

Hello,

I am having troubles getting god rays like in this videos:

After placing all lighting actors and activating the “Volumetric Fog” on the “Exponential height fog” actor I see no god rays on the room. As one of the videos suggest I turn up the “Volumetric Scattering intensity” on the Directional light to see if I can exaggerate the effect. The result is a massive “white cloud” as you can see in the image below:

any ideas?
thank you!

I found that deactivating Ray traced shadows on the directional light, gives expected results…

But it is sadly at a great cost, as Ray traced shadows look much much better than the Virtual shadow map. Does this means that you can not have volumetric shadows with Ray traced shadows on?

This literally saved my life, thank you so much. I’ve spent 30+ hours over months trying to get it work in my project file and it wasn’t at all.

Hi Idgi,

I have encountered this problem recently and luckly found this video for how to use Ray Traced Shadows and God rays at the same time. (It’s actually using two Sun light, one for lighting and another for the God rays solely) Although, unfortunately, this method only works for UE 4.26 or lower.

Mix Volumetric Fog & Raytraced Shadows the RIGHT Way (Unreal Engine 4.26) - YouTube.

Hope it helps!

Hi!

I’ve encountered the same problem in UE 5.0.3

Hasn’t it been solved already? It looks like the hack of having two directional sunlights doesn’t work in my version of UE.

Does it mean that I literally need to choose between raytraced shadows and godrays?

If you used UE5.3, you should close ray traced shadow in directional light first, and enable the volumetric fog in ExponentialHeightFog. Finaly, you should change the Extinction Scale value, now you can see the god ray. Read doc for Extinction Scale, it’s helpful.

Changing my “engine scalability settings” to EPIC made my light rays appear

1 Like

going into the details panels of my directional light and searching for a setting called “light shaft occlusion” fixed this for me. Just type occlusion into the search box of the directional light settings, and then look for a setting called light shaft occlusion check the box so it’s on. there are also some settings underneath for tweaking it to your liking. I was able to have ray traced shadows on while using this setting.