# Mesh Blobbing Effect (Fluid Sim)

**URL:** <https://forums.unrealengine.com/t/mesh-blobbing-effect-fluid-sim/76791>\
**Category:** World Creation\
**Tags:** Fluids, unreal-engine\
**Created:** [October 25, 2016, 9:12am UTC](https://forums.unrealengine.com/t/mesh-blobbing-effect-fluid-sim/76791 "2016-10-25T09:12:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norse\_FX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Norse\_FX](https://forums.unrealengine.com/u/Norse_FX)\
**Post date:** [October 25, 2016, 9:12am UTC](https://forums.unrealengine.com/t/mesh-blobbing-effect-fluid-sim/76791/1 "2016-10-25T09:12:52Z")

</div>

Hi.

Does anyone know how I can tackle the issue of having meshes merge/fuse into one shape where the gaps are filled in by Geo.

Similar to how they achieve the oil in Portal 2.

 ![Portal 2 Oil.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/7/47fe012a858f9f598976802ef290bef6849c9cc1.png)

---

<div class="post-metadata">

**Author:** ![Norse\_FX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Norse\_FX](https://forums.unrealengine.com/u/Norse_FX)\
**Post date:** [October 25, 2016, 9:53am UTC](https://forums.unrealengine.com/t/mesh-blobbing-effect-fluid-sim/76791/2 "2016-10-25T09:53:00Z")

</div>

I believe they are using a meta ball system, not sure how to do this in Unreal Though

---

<div class="post-metadata">

**Author:** ![xnihil0zer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xnihil0zer0](https://forums.unrealengine.com/u/xnihil0zer0)\
**Post date:** [October 25, 2016, 12:15pm UTC](https://forums.unrealengine.com/t/mesh-blobbing-effect-fluid-sim/76791/3 "2016-10-25T12:15:08Z")

</div>

It can be done with volumetric decals. Create a material parameter collection and add a vector parameter for the location of each blob. Add one, or many, scalar parameters to control their radius. In a volumetric decal material, create a spherical distance field for each blob.

 ![blobmat.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/0/605e3239adcf9ad4b8c5e5afca04f2187c14e5cd.png)

find the smoothmin of all the blobs and feed the result to opacity mask.

 ![blobmat.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/c/36c2d06423989ab4ca9df1492a29a25d48869228.png)

Here, the vector parameters are set based on the world location(divided by the scale of the volumetric decal) of 10 invisible spheres that varying forces are applied to.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/6/8d69b9f5c519f58a235a09b77d98136aaeaf4337.jpeg "blobbyUE4") ](https://www.youtube.com/watch?v=XY1kijg2zGk)
