Change Niagara Template/Example to blood spilling from vein

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

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

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

  • detailed collider mesh defined
  • “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

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

1 Like

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


Complex collision

Mesh dinstance field

The collision happens if I generate a convex decomposition collider,


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

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

Next step is trying to change the color from water to blood. Now show like this
image

Tried tchanging M_WaterSDF_Inst Absorption and Base Color without any result
image

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