Spawning particles from the edge of dissolving?

As we already know dissolving is one of the most amusing, wonderful thing when doing VFX. Up until now, I still try to figure out a way to spawn particle as things dissolve. However, I don’t really want to rely on the BP, just material and Niagara.
My material is pretty simple, I’m using valuestep to do the dissolve, my gradation is a spheremask multiplying with a noise texture (so I can control the location of the center of dissolving). And with little trick I render the edge of the dissolving too. My current situation is like this.

I want to spawn particle basing on the position of the edge, but I don’t know how to feed that position info to my other emitter. Does anyone have any idea?
edit: I tried many tutorials on youtube, mostly CGHow’s but his work is a bit different from what I want, and it requires Blueprint. I just want to create only a Niagara System.


you could try something like this by adding/feeding the disolve edge to the material if they are driven by a material parameter collection


under niagara you could achieve that via texture sampling like in this serie of video


My approach to this was to have the Niagara system sample the GBuffer and spawn the particles where the contents met my spawn criteria, If the sampled value is greater than 1 (emissive pixel) then place a particle.

1 Like

I’m actually leaning to this method but I still don’t know how to execute it. Let’s say.
I create an UV mask connecting to OpacityMask. I also have the edge UV running data too but Idk how to feed it to the scratchpad.

The GBuffer approach doesn’t need to know anything about your mesh/material as it is just looking at the rendered image.

The most basic approach you could do is simply in your particle spawn stage get the screen coordinate from the particle position, sample the GBuffer SceneColor and if it is above 1 then it is probably emissive and allow the particle to live, if it is below your threshold kill the particle. Now you have particles that only exist where the edge was glowing.

hm, interesting. What if my core material is also glowing? Does that method not work here? I mean I put it black above just to test it out. But when applying on the real mesh it might have value >1 connecting to emissive.

Yeah if it is also glowing or even reflecting a bright light then you will need another value to confirm it is what you are after. What I did in my use case was to create a specific signature such as > 1 for colour, 1 for roughness and 1 for metal. Some combination you are unlikely to use elsewhere, then so long as your dissolving edge matches that criteria it should work. this vid from TharleVFX might help you :slight_smile:


And his follow on video also deals with stuff that may help you on this

this is cool but it’s kind of complex and requires specific vertexcolor on it. I think I need a more common technique.