I'm animating a spot welder which throws off some sparks (with help from Andrew Price's spark tutorial) and I can't actually get them to change color in relation to their age. Here's my node setup: enter image description here

The color nodes on the top are all you need to pay attention to. If you look, I've got a color ramp that I tried to use to get the sparks to shift color as they get older, but for some reason it isn't working correctly. The divide node seems to always be giving an output of 1, no matter what the age of the particle is. This means that the sparks only ever have the color of the very end of the color ramp. I've tried moving the left color picker over, even to within about 1 pixel of the right one. It has no effect and the sparks keep the color of the right color picker throughout their entire particle lifetimes. I did also make sure to actually give the particles a lifespan. Does anyone know why the divide node might be giving an output of 1? The age to lifetime ratio should start at 0 and progress to 1.

This is what the rendered scene looks like: enter image description here

  • $\begingroup$ Particles can't change colour along their blurred length, even though, technically, they age while the shutter is open the colour remains constant. i.e. for the duration of the blur they are rendered as the same colour. Older particles in the frame should be of a different colour though. Have you tried a more contrasting colour across the colour ramp? $\endgroup$
    – PaulMc
    Commented Mar 22, 2016 at 17:35

1 Answer 1


Here's a demonstration showing just that part of the cycles particle info being used to drive a colour ramp. Notice I had to also add in another divide just to get the far end of the colour ramp to appear in the view. You can see clearly that the individual particle blurred paths are constant in colour even though different particles may have different colours. You might be able to use a spherical gradient in addition to the age and lifetime values to change colour along a long thin particle to create the effect you are looking for.

Particle colour change over time

Here's a crude version of the suggestion above.

cylinder particles with gradient

  • $\begingroup$ Thanks for your answer, but I think I found the source of the problem. I was using time remapping, which does not at all work correctly with the particle info input node. It causes completely unexpected behavior, with particles fading out too quickly. I posted a better, more detailed question (with a video) recently. $\endgroup$
    – Sanix25
    Commented Mar 23, 2016 at 7:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .