# Niagara : Spawn Particles By Material Map

**URL:** <https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [April 28, 2021, 8:31am UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893 "2021-04-28T08:31:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdugaro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sdugaro/32/88717_2.png) [@sdugaro](https://forums.unrealengine.com/u/sdugaro)\
**Post date:** [April 28, 2021, 8:31am UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893/1 "2021-04-28T08:31:38Z")

</div>

Hi, I’ve been looking for a way to spawn particles in a region on a mesh defined by a material or texture map. The closest thing I’ve found was this solution by @wyeth

> **[Unreal - Spawn Particle based on Material Parameter?](https://realtimevfx.com/t/unreal-spawn-particle-based-on-material-parameter/2987)**
>
> This has been asked in the past, and I don’t think it’s possible but I’m bringing it up again just in case. Wanting to spawn a particle on a mesh surface based on a material parameter. For example if I have quad mesh with mask texture on the...

Granted this is an old post, and one could probably do something similar in Niagara, but given the post suggests ‘this kind of thing will be worlds better in Niagara’, I’m wondering what the latest greatest approach for this is in Niagara.

I’m currently hacking around in a scratch module to see what I can get away with, and I’m sure I might be overlooking something as I am relatively new to UE, but  
scattering points by attribute (say on a colored region of a model) is a Houdini 101 technique I 'm sorely missing out of the box here. I suppose I could do a Houdini-Niagara roundtrip, but there must be a way to only spawn particles in a defined region in UE rather than everywhere on the mesh. I would certainly prefer to do everything in UE if I can.

I’m thinking a spawn and cull by some color threshold might do the trick, but it would be ideal to only spawn particles where they are actually being used/needed/specified.

What also comes to mind is how an additional UV map/set, texture channel, or ‘hidden’ material comes into play as you would need to define a region (color mask) but don’t want that to be present in the visible materials/textures of the mesh.

Any pointers would be very welcome. thanks!

P.S. why isn’t there a Niagara category or Niagara Tags on this forum to facilitate search and browsing?

---

<div class="post-metadata">

**Author:** ![sdugaro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sdugaro/32/88717_2.png) [@sdugaro](https://forums.unrealengine.com/u/sdugaro)\
**Post date:** [May 3, 2021, 1:56am UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893/2 "2021-05-03T01:56:19Z")

</div>

Just had a closer look at the Niagara Texture Sampling Content Example,  
sourcing gpu particles from a texture map on particle spawn and then killing  
then according to the alpha channel. Mostly what I’m looking for.

That is ‘worlds better’! More impressive by the day!

I’m assuming if I promote the texture to a user parameter, then from the outside world I should be able to feed a secondary channel (hidden) Texture Map from a character to defines some localized spawn regions.

---

<div class="post-metadata">

**Author:** ![sdugaro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sdugaro/32/88717_2.png) [@sdugaro](https://forums.unrealengine.com/u/sdugaro)\
**Post date:** [May 27, 2021, 11:16pm UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893/3 "2021-05-27T23:16:56Z")

</div>

Is there a way to animate the sampled texture? Say I have an emission mask that is packed with 3 channels of noise… id like to be able to change the emission mask over time to emit differently at different times, but this doesn’t seem obvious to do with static textures… any tips?

---

<div class="post-metadata">

**Author:** ![hGosling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hGosling](https://forums.unrealengine.com/u/hGosling)\
**Post date:** [December 17, 2021, 7:55pm UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893/4 "2021-12-17T19:55:35Z")

</div>

I really wish we could spawn particles just where need instead of spawning them all over just to kill 99% -\_-

---

<div class="post-metadata">

**Author:** ![Pylik](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pylik/32/556354_2.png) [@Pylik](https://forums.unrealengine.com/u/Pylik)\
**Post date:** [October 3, 2023, 12:27pm UTC](https://forums.unrealengine.com/t/niagara-spawn-particles-by-material-map/226893/5 "2023-10-03T12:27:21Z")

</div>

Is there any clarity on this issue? From year to year, this question wanders around, and there is still no clear tutorial anywhere that would cover this issue.
