# Can Niagara emit particles from a mesh volume

**URL:** <https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691>\
**Category:** FX\
**Tags:** unreal-engine, UE5-0, UE4-26, question, UE4-27\
**Created:** [December 16, 2021, 6:05pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691 "2021-12-16T18:05:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chili\_Turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chili\_Turtle](https://forums.unrealengine.com/u/Chili_Turtle)\
**Post date:** [December 16, 2021, 6:05pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/1 "2021-12-16T18:05:35Z")

</div>

Kinda weird, that so far I know you can’t do it.  
For example in blender it`s super easy to do.

[https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/e/fe1f1167fd5d23d5d9cac7eb615e5501b4f821bd.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/e/fe1f1167fd5d23d5d9cac7eb615e5501b4f821bd.mp4)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 17, 2021, 8:25am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/2 "2021-12-17T08:25:29Z")

</div>

Absolutely:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/5/0250e2235ef3f64d21160c9344a06a7549d0b0aa.jpeg "UE4 - Tutorial - Niagara Mesh Particles") ](https://www.youtube.com/watch?v=RWl3ySXTY2c)

---

<div class="post-metadata">

**Author:** ![Chili\_Turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chili\_Turtle](https://forums.unrealengine.com/u/Chili_Turtle)\
**Post date:** [December 20, 2021, 6:32pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/3 "2021-12-20T18:32:02Z")

</div>

yeah thats not what I am looking for. This video is about particles along the mesh surface, but I want particles in a mesh volume.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 20, 2021, 6:42pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/4 "2021-12-20T18:42:53Z")

</div>

Well, something you can do, is hack the static mesh location module ( copy it ), and follow the mesh normal back a random amount. That will do it.

---

<div class="post-metadata">

**Author:** ![Chili\_Turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chili\_Turtle](https://forums.unrealengine.com/u/Chili_Turtle)\
**Post date:** [December 20, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/5 "2021-12-20T18:48:13Z")

</div>

Thats sound like a great Idea, thanks.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 20, 2021, 6:54pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/6 "2021-12-20T18:54:49Z")

</div>

Definitely possible. If you get stuck, just say, and I’ll take a look…

---

<div class="post-metadata">

**Author:** ![Chili\_Turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chili\_Turtle](https://forums.unrealengine.com/u/Chili_Turtle)\
**Post date:** [December 21, 2021, 12:08am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/7 "2021-12-21T00:08:18Z")

</div>

In the Skeletal Mesh Location Module, I found a “offset position along sampled normal” parameter. On this parameter I use a “Uniform AOr BFloat” and make the A value a random(how far it follows the mesh back on the normal).  
But thats also not really the result I am looking for, because at the example crow picture, you can see that at the beak and feet it is fine, but the belly area has a bigger volume and it looks a little bit thin.

I guess I look into blender, maybe I find how they calculate the points in the mesh volume.

 ![Niagara Crow Mesh Volume.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/a/ca083c16e965d2f809d28ba84df5b64f76a6a052.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 21, 2021, 8:13am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/8 "2021-12-21T08:13:06Z")

</div>

You might also try putting that module in the update section… Only make a difference if you’re using a spawn rate.

---

<div class="post-metadata">

**Author:** ![Chacobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chacobo](https://forums.unrealengine.com/u/Chacobo)\
**Post date:** [May 26, 2022, 3:10am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/9 "2022-05-26T03:10:02Z")

</div>

Bumping this as I have the same question. Is there any confirmed ways to make particles sample mesh volume instead of tri?

---

<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 27, 2022, 10:41am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/10 "2022-05-27T10:41:41Z")

</div>

No, Niagara can only sample the mesh surface or distance field for now, so there is no easy way to uniformly spawn inside a mesh.

You can sort of hack it together yourself with the above approach. Another possibility would be to do some rejection sampling, just spawn particles in a grid, then each particle checks if it’s inside the mesh or not - but to get narrow features like the spider legs with this you would need to spawn a lot of particles, so it always depends on your use case.

---

<div class="post-metadata">

**Author:** ![Chacobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chacobo](https://forums.unrealengine.com/u/Chacobo)\
**Post date:** [May 28, 2022, 2:29am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/11 "2022-05-28T02:29:10Z")

</div>

Thank you so much for your reply.

In this stream Jon said he used distance field to create volumetric representations of the kernel’s limbs, then pack it with particles. But distance field is still a representation of the surface instead of the volume of the limbs correct? I’m wondering how he did it?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/0/b901057b063161f4044adfefbfca74e2537af35d.jpeg "Advanced Niagara Effects | Inside Unreal") ](https://www.youtube.com/watch?v=31GXFW-MgQk)

40:27 - 41:12

---

<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 29, 2022, 2:32pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/12 "2022-05-29T14:32:32Z")

</div>

The distance field query returns a positive distance if it is outside a mesh and a negative distance if it’s inside a mesh.

You can easily verify it with a scratch pad like this:

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/b/0dbb34d9606ffbd533071ac5fd3837851c090e23.png)

---

<div class="post-metadata">

**Author:** ![Chacobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chacobo](https://forums.unrealengine.com/u/Chacobo)\
**Post date:** [June 2, 2022, 11:53pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/13 "2022-06-02T23:53:03Z")

</div>

Thanks for the pointer. I was able to make it work!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/e/eeeedbe997697506c54ba7c3c1e9497fb4fc0f31.jpeg)

---

<div class="post-metadata">

**Author:** ![Suthriel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/suthriel/32/1195643_2.png) [@Suthriel](https://forums.unrealengine.com/u/Suthriel)\
**Post date:** [June 5, 2022, 9:18am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/14 "2022-06-05T09:18:39Z")

</div>

This looks cool, could you post your blueprint or emitter setup? 🙂 I think, several would love to have this too (and mabe this should be integrated into UE as a standard emitter, with that being available for all).

---

<div class="post-metadata">

**Author:** ![Chacobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chacobo](https://forums.unrealengine.com/u/Chacobo)\
**Post date:** [June 7, 2022, 9:14am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/15 "2022-06-07T09:14:49Z")

</div>

I’m just modifying the existing Niagara System located in Content Example

`ContentExamples/Content/ExampleContent/Niagara/NeighborGrid3D/StructuralSupport/StructuralSupport`

and plugged in the code provided by @Michael.Galetzka, set a bool for the to-be-killed particles. And then adding a Kill Particles action.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/b/33b644bb093a4eb7e1ed9ab599dd7683dc05b4fd.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/9/e29a23f4ce73ba9fb5c30e48e5838df2ad2c6162.png)

I’m still trying to achieve the same thing as the demo to make a particle-filled actor that moves with skeletal meshes. It’s not a straight forward process as skeletal meshes don’t produce mesh distance field, so one would have to first make a cut-up static mesh, then fill the limbs individually so each emitter can be assigned to follow a bone later on.

---

<div class="post-metadata">

**Author:** ![Gronk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gronk/32/479120_2.png) [@Gronk](https://forums.unrealengine.com/u/Gronk)\
**Post date:** [November 29, 2022, 10:00pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/16 "2022-11-29T22:00:29Z")

</div>

That distance field function samples the Global distance field, not a specific mesh’s, so any mesh within the bounds of your spawning box/grid will also apply.

Would be really great to have a proper volume spawner for shaping spawn areas, so we could use meshes with DF and collision turned off (so they don’t cause problems with other systems, like DF based shadows).

---

<div class="post-metadata">

**Author:** ![OhBriz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ohbriz/32/466374_2.png) [@OhBriz](https://forums.unrealengine.com/u/OhBriz)\
**Post date:** [November 30, 2022, 12:09pm UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/17 "2022-11-30T12:09:51Z")

</div>

Would be cool to be able to sample the Distance Field of only target meshes, but you can always generate a custom Volume Texture DF outside of Unreal

---

<div class="post-metadata">

**Author:** ![Jodorowsk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jodorowsk](https://forums.unrealengine.com/u/Jodorowsk)\
**Post date:** [February 19, 2024, 9:26am UTC](https://forums.unrealengine.com/t/can-niagara-emit-particles-from-a-mesh-volume/266691/18 "2024-02-19T09:26:12Z")

</div>

I am trying to achieve the same thing. I could not replicate what you did here @Chacobo. Would you mind sharing some more details or the file?  
I am looking for the same same result with skeletal mesh moving. Did you manage to make it work with an actor that moves? Thank you
