# Underwater fog, half in and half out

**URL:** <https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106>\
**Category:** Rendering\
**Tags:** Water, Fog, Post-Processing, unreal-engine, Volumes, question\
**Created:** [November 16, 2014, 3:14pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106 "2014-11-16T15:14:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![renderboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renderboy](https://forums.unrealengine.com/u/renderboy)\
**Post date:** [November 16, 2014, 3:14pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/1 "2014-11-16T15:14:15Z")

</div>

Hi,  
in my game(first person) is possible to dive underwater, I currently have created a fog (exponentialheightfog) for underwater vision that I turn on-off whether the player’s head is above or below the water…It works well but there is a serious problem when the player’s head is underwater for half, if the fog is turned off I get a bad effect underwater and correct above, if instead the fog is turned on I get an unrealistic fog above and correct below.  
It would be easily solved with a “box volume fog” but it seems to me that there are not in UE4.  
I also tried using the postvolume effects but I have not solved the problem, it shows the effect on the entire screen when on and not a portion of the screen while coming in it…  
Anyone have any ideas for solve this problem?  
I remember this problem in popular games from a few years ago (maybe even early versions of Skyrim) but then they all resolved and there are many first person games that allow you to get in and out of the water, then I am confident there is an easy way to do it …

 ![Underwater_problem.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/4/c44b3b976a64b222470d373ddb326734efd1517e.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [November 17, 2014, 7:48pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/2 "2014-11-17T19:48:41Z")

</div>

Hello renderboy,

What you are looking for is to have a Post Process volume bound to the surface of your waters edge. I wrote a tutorial for the Wiki that can show you how this is done and to also add a bit of a blur effect as well to increase the realism a bit.

**Swimmable Water Volume Tutorial:**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Your outcome underwater will look something like this

 ![21428-underwater_pool.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/e/27e396166cfffb608d179d6e058af628560222e5.png)

Let me know if you found this helpful, or if you still need some assistance.

Cheers,

---

<div class="post-metadata">

**Author:** ![renderboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renderboy](https://forums.unrealengine.com/u/renderboy)\
**Post date:** [November 18, 2014, 8:57am UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/3 "2014-11-18T08:57:21Z")

</div>

Hello Andrew,  
thanks you very much for your help, I followed your tutorial for the material, also I followed your tips for physic volume and this was very useful for me(I was changing the pawn’s physic by blueprint), unfortunately I have not solved my true problem, Post Process Volume has an effect on the entire screen, does not show a “slice” when the camera is in for half, I can just set a blend radius to have this effect gradually(better than nothing, but not what I want…).  
Thanks again and sorry for my bad english.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [November 18, 2014, 2:09pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/4 "2014-11-18T14:09:48Z")

</div>

You are quite welcome! And set your volume to “Bound” by unchecking the “Unbound” option within your post process volume.

---

<div class="post-metadata">

**Author:** ![renderboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renderboy](https://forums.unrealengine.com/u/renderboy)\
**Post date:** [November 18, 2014, 3:34pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/5 "2014-11-18T15:34:23Z")

</div>

I have already set my volume to “Bound” by unchecking the “Unbound”, If I set “Unbound” I see the effect anytime, anywhere…if set “blend radius to 0” it become on/off on the entire screen… What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [November 18, 2014, 3:47pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/6 "2014-11-18T15:47:26Z")

</div>

It is functioning as intended. You just need to set it to bound and lower the volume a bit so when your head is out of the water you have a clear setting. And when you are underwater you have the blurred effect. Keep in mind to have that finite line, it will take a bit more tweaking and further set up.

The way a gave you is just a base on how to get a water-like effect to your scene.

---

<div class="post-metadata">

**Author:** ![renderboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renderboy](https://forums.unrealengine.com/u/renderboy)\
**Post date:** [November 18, 2014, 4:11pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/7 "2014-11-18T16:11:47Z")

</div>

Ok, I’ll try to adjust it to the best, but I do not think I will be able to get what I want, and I know that is a problem that had also famous games, for example Skyrim in early versions:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/c/1ac59c6247cae94acf4ec37b909b0c5c833e1eb6.jpeg "Skyrim - How to see underwater") ](https://www.youtube.com/watch?v=3F-F9vascK0)

then solved:

  
thanks you very much

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d47e65fe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d47e65fe](https://forums.unrealengine.com/u/anonymous_user_d47e65fe)\
**Post date:** [December 9, 2014, 2:39am UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/8 "2014-12-09T02:39:59Z")

</div>

AndrewHurley,

Where are the example post processing effects for the underwater portion of the tutorial? I’d like to know what tint you used and what degree of blur you leveraged to get that fantastic underwater effect. I looked in the tutorial but I just don’t see it. Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 9, 2014, 2:25pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/9 "2014-12-09T14:25:34Z")

</div>

Hey ,

I left that section of the tutorial a bit open ended so people could learn about the Post Process Volume through some trial and error. That in mind, I have posted a couple images of the settings I used for my underwater PPV.

**Post Process Water Volume Effect**

 ![23428-ppvwatereffect.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/1/d61b33dc7332d480bfc4c99d8caf7db7a44f3730.png)

 ![23429-ppvwatereffect2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/f/8ef1adf70e078cdb19ef5c6ffc6a46ebd11d4d9e.png)

Try to pay attention to the visual changes being made when you are matching the settings I have here with yours. It will help you better understand how these functions work.

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d47e65fe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d47e65fe](https://forums.unrealengine.com/u/anonymous_user_d47e65fe)\
**Post date:** [December 9, 2014, 4:39pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/10 "2014-12-09T16:39:01Z")

</div>

Thanks so much Andrew! This helped tremendously. I’ve been working on a dive scene and underwater can be challenging. From your image, I was looking how you got the grainy look. These settings did the trick! Now for the rest of the tweaking!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 9, 2014, 4:46pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/11 "2014-12-09T16:46:49Z")

</div>

No problem! Good luck and if you have some cool Works in Progress (WIP) and would like to get some solid feedback from other users in the UE4 Community, try posting it on the forums!

**Forums Works in Progress**  
[https://forums.unrealengine.com/forumdisplay.php?11-Work-in-Progress](https://forums.unrealengine.com/forumdisplay.php?11-Work-in-Progress)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_20899a9b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_20899a9b](https://forums.unrealengine.com/u/anonymous_user_20899a9b)\
**Post date:** [April 7, 2015, 6:37am UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/12 "2015-04-07T06:37:40Z")

</div>

Alright Thanks a lot man!  
I had been messing around with the settings of the post process box but it didnt quite give the effect of being underwater. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![TX\_LOSER](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TX\_LOSER](https://forums.unrealengine.com/u/TX_LOSER)\
**Post date:** [June 3, 2016, 7:14am UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/13 "2016-06-03T07:14:52Z")

</div>

Excuse me, did you solve your problem? I have the same problem with you in the volume of water.

---

<div class="post-metadata">

**Author:** ![renderboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renderboy](https://forums.unrealengine.com/u/renderboy)\
**Post date:** [June 3, 2016, 8:08pm UTC](https://forums.unrealengine.com/t/underwater-fog-half-in-and-half-out/299106/14 "2016-06-03T20:08:55Z")

</div>

No, in UE3 I did it with with custom Fog Volumes(absent in UE4)…
