Using particle data to effect an unrelated objects material Basically the sphere has an emission shader that I want to only emit when a particle passes through it.
It is supposed to be a muzzle flash from a firearm and right now I have to manually animate it to line up with each particle. So the question is there a way to have each particle effect the emission shader. I was thinking that I could use particle age but I have no way to link it between the two different objects materials. Is there some way to have the particles weight paint the sphere kind of like you can do with two objects? Or should I make the muzzle flash a particle system too? that copies the emission pattern of the bullets.
Using dynamic paint
Result:


How to:

UV unwrap your &quot;receiver&quot; object (I'm using a cylinder)


On that object, enable (from the Physics panel): Dynamic Paint &gt; Canvas &gt; Add Canvas. Make its type &quot;Image Sequence&quot;, and its initial color completely black. Enable &quot;Dissolve&quot; and use a very short time for dissolve, like 5.

Select the Emitter object, enable: Dynamic Paint &gt; Canvas &gt; Add Brush. Make the brush fully white. Change the &quot;Source&quot; to &quot;Particle system&quot; and select the correct particle system. Increase the brush radius.

Go back to the target object, select the correct &quot;UVMap&quot; under &quot;Dynamic Paint Output&quot;, and bake the Image Sequence.

Create a material for the target that has an emission shader modulated by the Dynamic Paint paintmap (for the Image Texture, remember to open all the image files together with Ctrl+Shift+Select, and &quot;Detect Sequences&quot; activated):