HDRP Density Volume Mask Texture?

I have volume lighting working in my scene and I’d like to break it up with some noise. The density mask texture for the volume seems like it was made for this, and I feel I’ve created the Texture3D asset correctly, but I’m not seeing any effect on the lighting. Has anyone been able to make this work? Thanks!

I’ve seen it working a long time ago, with much earlier versions of HDRP & Unity. Since then I hacked the system to use a live 3D rendertexture instead, so I am out of date as to the state of the default system.

If you are happy to share the 3D texture you tried, along with saying what version of Unity & HDRP you are using, I would be happy to try. And I can then share a small test project with it working for you.

Thank you for your reply. Attached is a texture3d asset I converted from a grayscale 1024x32 image using unity’s Density Volume Texture Tool set to 32 slices. I’m using Unity 2019.1.11f1 and HDRP 5.7.2.

4825364–462911–Clouds_Texture3D.zip (658 Bytes)

1 Like

Hi,

That texture is the problem. Here are import settings to use for the 2D texture, before generating the 3D texture, including Alpha Source set to ‘From Gray Scale’ which I believe is not mentioned in the HDRP docs.

4826861--463052--ImportSettings.PNG

Also the final effect can be a bit hard to spot if not animated, so I recommend setting the Fog Distance to something very low like 1, and set one of the scroll speed values in the density volume to something so you can see movement when you find a texture that works.

1 Like

Thanks for that catch! I had set those before, but in all the different iterations & test images I missed it on that one. Much appreciated, -H

1 Like