# Can a Niagara expert help me with this?

**URL:** <https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [January 19, 2020, 7:46am UTC](https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750 "2020-01-19T07:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poet\_11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poet\_11](https://forums.unrealengine.com/u/Poet_11)\
**Post date:** [January 19, 2020, 7:46am UTC](https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750/1 "2020-01-19T07:46:28Z")

</div>

Hi,

I’ve been trying to get two things working:

1 - Get Niagara particles to work on a static mesh surface which has an animated world offset going for it, say a wave pattern, I managed to get the static mesh to spawn particles from random tri but it seems to completely ignore the world offset deformations on it. Can someone show me how to make Niagara recognize the world offset deformations on the mesh?

2 - I want to assign an animated gradient map to tell niagara where to emit particles on top of this mesh above.

In short words I have a sea wave and would like the to have the texture mapped foam area emit particles.

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [January 19, 2020, 9:57am UTC](https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750/2 "2020-01-19T09:57:43Z")

</div>

You do not need a niagara expert for this for It is pretty trivial basics.

1. If you spawn niagara particle from mesh, you have exactly same data payload as you’d have in material editor, hence spawn particle on original mesh, and sample displacement textures or duplicate procedural displacement logic to move particle into intended position.

2. EITHER spawn everywhere and upon spawning sample gradient texture with particle position, roll a dice, checking if dice result is more that gradient value and if so, murder the particle, OR design a function, that given said gradient, would generate random position distribution of corresponding density.

---

<div class="post-metadata">

**Author:** ![Poet\_11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poet\_11](https://forums.unrealengine.com/u/Poet_11)\
**Post date:** [January 19, 2020, 2:48pm UTC](https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750/3 "2020-01-19T14:48:26Z")

</div>

> [@Deathrey](#):
>
> You do not need a niagara expert for this for It is pretty trivial basics.
> 
> 1. If you spawn niagara particle from mesh, you have exactly same data payload as you’d have in material editor, hence spawn particle on original mesh, and sample displacement textures or duplicate procedural displacement logic to move particle into intended position.
> 
> 2. EITHER spawn everywhere and upon spawning sample gradient texture with particle position, roll a dice, checking if dice result is more that gradient value and if so, murder the particle, OR design a function, that given said gradient, would generate random position distribution of corresponding density.

Hey I always appreciate your replies man!

Sorry to say that I am very new to Niagara, I just got around my first script there with a basic mesh emitting module. Unless someone guides me step by step here or provides a screengrab of a pre-made setup to learn from it may be a hard to figure out by terminologies.

Here’s what i’ve been able to do so far.

The second image demonstrates

 ![scriptcapture.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/5/a54606351f6dc769c64e45b22e5ff688ef3655d0.jpeg) how the displacement is not being respected by Niagara.

 ![scriptcaptureDisp.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/2/f2a01244eca2db6c3e065bf77704664401edf59d.jpeg)

---

<div class="post-metadata">

**Author:** ![Poet\_11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poet\_11](https://forums.unrealengine.com/u/Poet_11)\
**Post date:** [January 20, 2020, 8:01am UTC](https://forums.unrealengine.com/t/can-a-niagara-expert-help-me-with-this/136750/4 "2020-01-20T08:01:27Z")

</div>

sorry bumping this. Thanks.
