Is there any way to enable mobile fog?

Is there any way to enable mobile fog as in UE3?

Exponential height fog works on mobile. Unlike PC, it will be evaluated at the meshā€™s vertices and interpolated to the pixels, so you need to have reasonable tessellation. Usually this is not noticeable, unless you make a low poly background mountain.

1 Like

Hi, Iā€™m trying to get some sort of fog working on mobile but am not having any luck. Are you sure exponential height fog works on mobile as it isnā€™t doesnā€™t seem to - either in the mobile preview or on my android devices?

Iā€™ve also tried using the atmospheric fog but that doesnā€™t work on mobile.

Finally Iā€™ve tried making a simple plane with a depth fade material on it. This looks fine in the mobile preview but when I launch on device the ā€˜softā€™ edge doesnā€™t work anymore (so you can see the plane intersecting the landscape)

Hey bazmod -

As points out above, the Exponential Height Fog is evaluated on a vertex level then interpolated to pixels, so if you have a low poly background piece the fog will be interpolated very poorly. Can you check to make sure that the pieces you want to be in your fog have a sufficient tessellation?

Atmospheric Fog should not work on mobile. This is a known limitation.

For the Depth Fade issue, can you let me know what mobile device you are experiencing this issue on?

Thank You

Eric Ketchum

Hi, thankyou for the answer. I have tested this on a galaxy tab pro and s4 mini. Iā€™ve attached some screenshots to show the problem more clearly.

Iā€™m thinking that using a depth fade material is probably the better solution for this at the moment anyway as Iā€™m guessing the exponential height fog will be too expensive.

Thanks again for the help

Hey Bazmod -

For the ultimate look you are trying to go for I would agree that the Depth Fade may give you a result closer to what you are looking for. The differences that you are seeing with the Exponential Height Fog is based on the render by pixel versus render by vertex. The editor will always have a ā€œthickerā€ appearing fog than a mobile device.

Thank You

Eric Ketchum

Thanks for the answer however the problem is that the depth fade effect isnā€™t actually working on android as shown in the pic on the bottom right - thereā€™s no fade on it. Is this a known issue/limitation on mobile or are there any workarounds I can try?

Hey bazmod -

Can you give me a screenshot of your DepthFade Material and are you using a Plane or a Box to apply it to your level?

Thank You

Eric Ketchum

Did you guys ever get Depth Fade working on Mobile? Iā€™m having the same problems with an ipad air 2.

You should set up a material function like so and for materials you want fog applied to, use Add Nodes and plug them into the Base Color and Emissive Color.

http://i.imgur.com/TLFptlG.png?1

This is tedious and shouldnā€™t be a necessity for mobile platforms, it would be better if there was a ā€œSimple Fogā€ actor that automatically puts fog in this way.

1 Like

Pixel depth material is not working for me on Iphone 5s.