# Change Niagara Template/Example to blood spilling from vein

**URL:** <https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736>\
**Category:** FX\
**Tags:** unreal-engine, UE5-0\
**Created:** [May 16, 2022, 8:30pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736 "2022-05-16T20:30:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 16, 2022, 8:30pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/1 "2022-05-16T20:30:26Z")

</div>

Want to change this Template will try to define here the changes as soon i discovered something, also trying to get some hint from other more experts

- get rid of the pool disabling Emitter Update\>Grid 3D FLIP Thank Spawn (got a compilation error but works)
- changed emission rate using Emitter Update\>Spawn Rate 001
- changed emitter size in Particle Spawn\>Sphere radius
- changed emitter height in Particle Spawn\>Offset\>Z

Now trying to change the color from blue water to blood red, in the Render\>Mesh Renderer is enabled the Material Override option and the Explicit Mat is referring to the M\_WaterSDF\_Inst material.

Changing the Absorption and Base Color to red still I get out the blue water

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/e/f0ec7545958c93d0fabe6a2b4fae5c7de9473e4c.png)

I was able to change the blue darkness changing the Absorption alpha, but I’m not able to change the color.

---

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 17, 2022, 8:46pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/2 "2022-05-17T20:46:31Z")

</div>

Starting from the 3D Liquid Constant Emission example was trying to setup the collision with my custom mesh, and having

- detailed collider mesh defined  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/2/5e21673deb5e31ce5eec4519e33f64f356f3ab66.jpeg)
- “collider” tag set in the mesh Actor
- BlockAll collision preset set
- Collision Complexity is set as use Complex collision as Simple

Still no collision happen between the fluid and the mesh

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [May 19, 2022, 8:06pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/3 "2022-05-19T20:06:48Z")

</div>

Does the mesh have a correct physics collision and distance field?

---

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 20, 2022, 12:19pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/4 "2022-05-20T12:19:13Z")

</div>

I dind’t find anything wrong, but I didn’t explicitly generated the collison meshes so I suppose UE5 generated them importing the mesh  
Simple collision

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/3/b03e1bb24c50dc1cf9ad15a810de4c37e2d8ea03.jpeg)  
Complex collision  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/a/35a762e6fb9f68bf0c4527d5b31d8b89c7c2a041.jpeg)  
Mesh dinstance field  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/d/69d5b9c783dad8056ec9141229e840ca81e34749.jpeg)

---

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 24, 2022, 1:52pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/5 "2022-05-24T13:52:57Z")

</div>

The collision happens if I generate a convex decomposition collider,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/6/e66dee3faf8ac41f06bc8d4bc85d792684c536f6.jpeg)  
but this is too rough for my needs, and being the complex collision mesh available I dind’t understand why this one is not used

---

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 25, 2022, 11:38am UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/6 "2022-05-25T11:38:40Z")

</div>

I finally discovered a way to make the collision work: need to add a Collision module to the Particle update (this add as a fix the Solve Forces and Velocity) but generate an actual collision only setting GPU Collision Type to “GPU Distance Field”, setting “Depth Buffer” or “Ray Traces” didn’t work

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/8/148c2b3ba4617023682e1967026d530ff6f2bf1c.png)

---

<div class="post-metadata">

**Author:** ![davide445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davide445](https://forums.unrealengine.com/u/davide445)\
**Post date:** [May 25, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/change-niagara-template-example-to-blood-spilling-from-vein/558736/7 "2022-05-25T13:53:46Z")

</div>

Next step is trying to change the color from water to blood. Now show like this  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/f/40f542949c7ac85629b553d3f769714825b5b1b8.jpeg)

Tried tchanging M\_WaterSDF\_Inst Absorption and Base Color without any result  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/5/365a8fb75b5325d2c684e4ade8bdeafdc5b6e42d.png)

Changing Scattering and Base Color in M\_WaterSDF parent material didn’t change anything either (what show are the default values, changing them didn’t change anything)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/6/7c6048024f235303170e63e6e80a5d0caf56effc.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/c/2ac451ce9ef6373db696635e07ca7ee164ee55ed.png)
