# Spawn particles based on dynamic material

**URL:** <https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204>\
**Category:** FX\
**Tags:** unreal-engine, question, UE4-27\
**Created:** [June 13, 2022, 11:00pm UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204 "2022-06-13T23:00:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [June 13, 2022, 11:00pm UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/1 "2022-06-13T23:00:38Z")

</div>

Hi,

is there a way to spawn particles where the wood is burning ?

I tried using Texture sample / and spawn on frame in Niagara with no luck

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/f/8cfacd5b0472e43a804fed09cdc590fc7b8d4350.jpeg)

the issue being that I cannot sample live shader materials, only static textures

thanks for you help

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [June 17, 2022, 12:26am UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/2 "2022-06-17T00:26:21Z")

</div>

nobody ???

---

<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:** [June 21, 2022, 4:07pm UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/3 "2022-06-21T16:07:23Z")

</div>

The easiest solution would be to replicate whatever logic you’re using in the Material in Niagara.

If you can’t do that then read the GBuffer or write the material to a render target and sample that.

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [July 15, 2022, 9:34am UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/4 "2022-07-15T09:34:04Z")

</div>

maybe with Grid2D or something, but it’s Particles → Material (RT)

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [July 15, 2022, 9:34am UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/5 "2022-07-15T09:34:59Z")

</div>

> [@Michael.Galetzka](#):
>
> GBuffer

what is a GBuffer ?

---

<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:** [July 18, 2022, 3:28pm UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/6 "2022-07-18T15:28:29Z")

</div>

A set of textures that the renderer uses to create the final image. There is a data interface that allows you to sample them, so you read for example screen space color at a certain uv or velocity.

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [July 22, 2022, 5:09pm UTC](https://forums.unrealengine.com/t/spawn-particles-based-on-dynamic-material/581204/7 "2022-07-22T17:09:30Z")

</div>

ok I’ll have a look
