HDRP Volume effect disappearing when entering playmode

Hello,

I’ve a HDRP scene with a local fog effect.
Basically, I have:

  • A local Volume with fog override
  • A “Local Volumetric Fog”
  • A “sun” light that is supposed to create the fog, with “volumetrics” enabled, and its multiplier turned up to 16.

In the editor, when I look through the Game camera, I can see that fog effect, as illustrated here.

…but as soon as I hit play, the effect is gone:

Any idea what could cause this?

Thanls a lot,
Arnaud

Could you take a picture of the volume in the inspector, showing volume info
& picture showing camera settings
Make sure “volume mask” is set to default in your camera,
and “culling mask” is set to everything
& in your volume, mode is set to global and increase priority

1 Like

May also worth checking your Fog component too.
Under volumetric fog > Fog Distance, by default this is set to 64 units. Though your scene looks much closer than that

You also have a fade distance on the local volumetric fog component on the Distance Fade and start values

1 Like

Hello,

Thank you for your help!
Turns out it was a stupid mistake from my side: The Volumetric Fog Distance setting was too low, so the fog was clipped… I thought I read that setting’s effect correctly, but I obviously needed a second read!

Thank you again!

1 Like

I’m glad you solved it! you’re most welcome

The UX for cross-component values can easily be overlooked, It’s good practice to consider them if you come across an unexpected result.

Only yesterday, I wondered why something wasn’t rendering in scene view but was in-game view and it was just the cause a project level value was on when it should have been off :smile: