# Spawning Niagara particles evenly across mesh surface

**URL:** <https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [October 14, 2022, 4:44am UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190 "2022-10-14T04:44:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bedtimes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bedtimes](https://forums.unrealengine.com/u/Bedtimes)\
**Post date:** [October 14, 2022, 4:44am UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190/1 "2022-10-14T04:44:37Z")

</div>

I have written a niagara script that gets random tri coord and spawns particles, etc. But it spawns evenly across all triangles, ignoring triangle scale. Is there a method that spawns considering the entire mesh surface, so that the particle placement is more evenly spaced?  
Essentially, the denser triangle sections of the mesh are extremely dense with particles, and the less dense areas feel empty. Is there a method to randomly distribute across the entire surface?

 ![niagara](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/1/981a1be5a479a172508179fd8a43be889997162c.jpeg)

---

<div class="post-metadata">

**Author:** ![Aleven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aleven](https://forums.unrealengine.com/u/Aleven)\
**Post date:** [November 14, 2022, 3:12pm UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190/2 "2022-11-14T15:12:42Z")

</div>

there’s a setting in the static mesh for this “support uniform distributed sampling”

---

<div class="post-metadata">

**Author:** ![Bedtimes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bedtimes](https://forums.unrealengine.com/u/Bedtimes)\
**Post date:** [November 14, 2022, 8:49pm UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190/3 "2022-11-14T20:49:52Z")

</div>

holy good god THANK YOU! this did it!!  
FYI theres a “Support GPU uniform sampling” as well, for gpu samples. I had no clue!

---

<div class="post-metadata">

**Author:** ![3DJay-C](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3DJay-C](https://forums.unrealengine.com/u/3DJay-C)\
**Post date:** [May 19, 2023, 6:23pm UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190/4 "2023-05-19T18:23:05Z")

</div>

Can we blend this with the vertex color in order to mask out the particles position ?

---

<div class="post-metadata">

**Author:** ![gtx1080-pan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gtx1080-pan](https://forums.unrealengine.com/u/gtx1080-pan)\
**Post date:** [November 22, 2023, 9:27am UTC](https://forums.unrealengine.com/t/spawning-niagara-particles-evenly-across-mesh-surface/669190/5 "2023-11-22T09:27:33Z")

</div>

This answer is fantastic！
