# Unreal 4.26 Ocean Foam

**URL:** <https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [December 7, 2020, 6:05pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699 "2020-12-07T18:05:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_19b5fff71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19b5fff71](https://forums.unrealengine.com/u/anonymous_user_19b5fff71)\
**Post date:** [December 7, 2020, 6:05pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/1 "2020-12-07T18:05:37Z")

</div>

So I have a beach landscape and the ocean water in the level and everything seems to be working fine, but for the love of god, I can not enable the foam. It just doesnt show up. In the videos I see, people have very tiny foam and they can change it, but for me it just isnt doing anything with the parameters. Am I missing something essantial? All I want is some simple ocean shore foam.

All help is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [December 8, 2020, 9:25am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/2 "2020-12-08T09:25:03Z")

</div>

Want the same!) Any examples, tutorials etc. Just a clue where to dig.

---

<div class="post-metadata">

**Author:** ![elettrozero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/elettrozero/32/747934_2.png) [@elettrozero](https://forums.unrealengine.com/u/elettrozero)\
**Post date:** [December 12, 2020, 8:02am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/3 "2020-12-12T08:02:37Z")

</div>

Me too. Up

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [December 17, 2020, 6:57am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/4 "2020-12-17T06:57:22Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/0/fd02d22e55eb6c6430514aa75cdd582c902722e8.jpeg "4.26 Water And Volumetrics Preview | Inside Unreal") ](https://www.youtube.com/watch?v=XHugDXx6c5c)

This thing, how to do that? And also I see in the video that water has Velocity texture - any details on how to use that?

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [December 17, 2020, 8:22pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/5 "2020-12-17T20:22:23Z")

</div>

> [@osiris\_dev](#):
>
> [https://youtube.com/watch?v=XHugDXx6c5c](https://youtube.com/watch?v=XHugDXx6c5c)
> 
> This thing, how to do that? And also I see in the video that water has Velocity texture - any details on how to use that?

You have Generate Mesh Distance Fields enabled, right?

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [December 18, 2020, 12:00pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/6 "2020-12-18T12:00:22Z")

</div>

> [@scrcro](#):
>
> You have Generate Mesh Distance Fields enabled, right?

I presume so, if it’s not - I can probably enable it) Is it the first step to implement a foam to shores?

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [December 18, 2020, 5:46pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/7 "2020-12-18T17:46:23Z")

</div>

> [@osiris\_dev](#):
>
> I presume so, if it’s not - I can probably enable it) Is it the first step to implement a foam to shores?

IIRC. the foam shader queries the global distance field, which needs to be enabled in your project settings. It is off by default, so that may be a significant part of the reason you’re having issues 🙂

> [@UE4 Documentation](#):
>
> To enable Mesh Distance Fields for your project, use the file menu to open the Project Settings window by going to **Edit** \> **Project Settings** , then select the **Rendering** section.

---

<div class="post-metadata">

**Author:** ![wahnfried](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wahnfried](https://forums.unrealengine.com/u/wahnfried)\
**Post date:** [December 21, 2020, 12:33pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/8 "2020-12-21T12:33:20Z")

</div>

hello,  
I have turned on the “Generate Mesh Distance Fields” and have checked the box under plugins “volumetrics”. nevertheless, no foam is visible, have I possibly forgotten something else?  
relaxing christmas to all

---

<div class="post-metadata">

**Author:** ![CarloAlt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CarloAlt](https://forums.unrealengine.com/u/CarloAlt)\
**Post date:** [December 22, 2020, 7:59pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/9 "2020-12-22T19:59:11Z")

</div>

Same problem.

---

<div class="post-metadata">

**Author:** ![TheIncredibleSok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheIncredibleSok](https://forums.unrealengine.com/u/TheIncredibleSok)\
**Post date:** [December 23, 2020, 4:22am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/10 "2020-12-23T04:22:29Z")

</div>

Hello new here and new to unreal engine.

Make sure “Enable Ocean Foam” is checked mark.

Under Global Scalar Parameter Values, find “Height Bias” to 1. The “Foam Macroscale” makes your foam small to big just like the below image.

It took me almost a week to find out what I was doing wrong, someone from this forum stated it was the foam height setting but never mention where the setting was. Hope you all get your foam working, now only if I can make the foam wave in and out of the beach shore.

 ![foam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/4/345c01284ca3358e58068066d5125e86f3f3a9ac.jpeg)

---

<div class="post-metadata">

**Author:** ![wahnfried](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wahnfried](https://forums.unrealengine.com/u/wahnfried)\
**Post date:** [December 23, 2020, 12:29pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/11 "2020-12-23T12:29:59Z")

</div>

hallo,  
i just tested it and yes it works but please watch this part in the video.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/0/fd02d22e55eb6c6430514aa75cdd582c902722e8.jpeg "4.26 Water And Volumetrics Preview | Inside Unreal") ](https://www.youtube.com/watch?v=XHugDXx6c5c)

i think it should work a little differently. anyway a big thanks for the help!!

---

<div class="post-metadata">

**Author:** ![bacaran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bacaran](https://forums.unrealengine.com/u/bacaran)\
**Post date:** [December 24, 2020, 1:37pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/12 "2020-12-24T13:37:11Z")

</div>

> [@wahnfried](#):
>
> hallo,  
> i just tested it and yes it works but please watch this part in the video.  
> [https://youtu.be/XHugDXx6c5c?t=4350](https://youtu.be/XHugDXx6c5c?t=4350)  
> i think it should work a little differently. anyway a big thanks for the help!!

hello  
Where do we add fluid simulation to the stage? Frankly, I couldn’t find it​​​​​​​

---

<div class="post-metadata">

**Author:** ![wahnfried](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wahnfried](https://forums.unrealengine.com/u/wahnfried)\
**Post date:** [December 26, 2020, 12:37pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/13 "2020-12-26T12:37:25Z")

</div>

I just watched the video (I’m just guessing, I hope I’m not saying anything wrong) but you can see that a new map is opened and the blueprint “BP\_FluidSim\_01” creates waves and foam, you can see it when it is simulated.  
@bacaran the blueprint "“BP\_FluidSim\_01"” was already on the map, you can find the bp under the water content.

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [December 26, 2020, 6:05pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/14 "2020-12-26T18:05:17Z")

</div>

No foam(

 ![fluid_sim.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/f/dffd184c6f0b60731731486cc68e3376af023f70.jpeg)  
So how could I guess what’s wrong? This water plugin is a huge thing without documentation( Any ideas? Mesh Distance field is enabled.

---

<div class="post-metadata">

**Author:** ![arunoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arunoda/32/464764_2.png) [@arunoda](https://forums.unrealengine.com/u/arunoda)\
**Post date:** [December 30, 2020, 5:19am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/15 "2020-12-30T05:19:41Z")

</div>

> [@TheIncredibleSok](#):
>
> Hello new here and new to unreal engine.
> 
> Make sure “Enable Ocean Foam” is checked mark.
> 
> Under Global Scalar Parameter Values, find “Height Bias” to 1. The “Foam Macroscale” makes your foam small to big just like the below image.
> 
> It took me almost a week to find out what I was doing wrong, someone from this forum stated it was the foam height setting but never mention where the setting was. Hope you all get your foam working, now only if I can make the foam wave in and out of the beach shore.
> 
> ![foam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/4/345c01284ca3358e58068066d5125e86f3f3a9ac.jpeg)

Hey, thanks a lot for this. I could also enable this. The trick was to set **Height Bias** closer to 1.0.  
Otherwise, none of the settings are useless & have no effect.

Also, play with the **Foam Attachment** value. It will move nicely with water waves.

 ![Screenshot 2020-12-30 104846.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/7/073da43fa6934d68a3ee7ea782d80012a535a483.png)

---

<div class="post-metadata">

**Author:** ![arunoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arunoda/32/464764_2.png) [@arunoda](https://forums.unrealengine.com/u/arunoda)\
**Post date:** [December 30, 2020, 7:47pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/16 "2020-12-30T19:47:33Z")

</div>

Now, I managed to get the foam. But it’s all over the place. See below:  
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“data-tempid”:“temp\_210456\_1609347783239\_756”,“title”:“Screenshot 2020-12-30 105257.png”}[/ATTACH]  
[https://forums.unrealengine.com/core/image/gif;base64](https://forums.unrealengine.com/core/image/gif;base64)  
​  
Anyone knows a way to keep this only near the beach.

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [December 31, 2020, 8:01am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/17 "2020-12-31T08:01:16Z")

</div>

In Water Content folder there are example levels from the video, it includes this foam systems effect which are generates with blueprints and Rts as I checked, this is the same way I presume it should work for shores waves, but I can’t see it working on my side as I mentioned in previous post, anyone else have the same problem?

---

<div class="post-metadata">

**Author:** ![arunoda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arunoda/32/464764_2.png) [@arunoda](https://forums.unrealengine.com/u/arunoda)\
**Post date:** [December 31, 2020, 10:00am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/18 "2020-12-31T10:00:07Z")

</div>

> [@osiris\_dev](#):
>
> In Water Content folder there are example levels from the video, it includes this foam systems effect which are generates with blueprints and Rts as I checked, this is the same way I presume it should work for shores waves, but I can’t see it working on my side as I mentioned in previous post, anyone else have the same problem?

Oh cool. I will have a look at that.  
Thanks.

---

<div class="post-metadata">

**Author:** ![SmilleR6R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmilleR6R](https://forums.unrealengine.com/u/SmilleR6R)\
**Post date:** [January 5, 2021, 11:51am UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/19 "2021-01-05T11:51:32Z")

</div>

Please, tell me how can I enable foam, how is in this section?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/0/fd02d22e55eb6c6430514aa75cdd582c902722e8.jpeg "4.26 Water And Volumetrics Preview | Inside Unreal") ](https://www.youtube.com/watch?v=XHugDXx6c5c)

---

<div class="post-metadata">

**Author:** ![osiris\_dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/osiris_dev/32/88710_2.png) [@osiris\_dev](https://forums.unrealengine.com/u/osiris_dev)\
**Post date:** [January 5, 2021, 3:45pm UTC](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699/20 "2021-01-05T15:45:54Z")

</div>

> [@SmilleR6R](#):
>
> Please, tell me how can I enable foam, how is in this section?
> 
> [https://www.youtube.com/watch?t=4658&v=XHugDXx6c5c&feature=youtu.be](https://www.youtube.com/watch?t=4658&v=XHugDXx6c5c&feature=youtu.be)

Did you check the content folder of Water plugin? Is foam works on your side in the test level? If it’s not - I presume we need somehow to ask for help of Unreal Team.

[Next page](https://forums.unrealengine.com/t/unreal-4-26-ocean-foam/154699.md?page=2)
