particle age UVW gradient
#1
I have a cylinder that colour mixes from green to red by an animated a UVW modifier. 

I would like tyflow to start animating each particle gradient as the surface force hits them.

I have been told this can be done with custom properties but i can't for the life of me figue it out. 

Exmple and file attached

Thank you!


.mp4   particle-age_preview.mp4 (Size: 3.96 MB / Downloads: 158)

.max   particle-age.max (Size: 848 KB / Downloads: 150)
  Reply
#2
Anyone got an answer to this?

Thanks!
  Reply
#3
Did you look at the UVW Gradient official sample scene? That's the standard way to control particle colors by age or other triggers.

I guess your setup is slightly different because you're not controlling particle colors on the whole, but instead having a gradient travel up a spline once triggered. That's an interesting dilemma....my intuition would be to have 2 map channels...one to set the UVWs required to have the gradient go from bottom to top, and the other to control the V offset of the first channel (this would be what you control with particle data). Might have to involve some OSL as well to get it to work (read the V value of map channel 2 and apply that as an offset to the V value of map channel 1).
  Reply
#4
(02-17-2022, 02:17 PM)tyFlow Wrote: Did you look at the UVW Gradient official sample scene? That's the standard way to control particle colors by age or other triggers.

I guess your setup is slightly different because you're not controlling particle colors on the whole, but instead having a gradient travel up a spline once triggered. That's an interesting dilemma....my intuition would be to have 2 map channels...one to set the UVWs required to have the gradient go from bottom to top, and the other to control the V offset of the first channel (this would be what you control with particle data). Might have to involve some OSL as well to get it to work (read the V value of map channel 2 and apply that as an offset to the V value of map channel 1).

Believe it or not i actually found a solution an acient vray forum using the original Pflow.

check it out. would be awesome to have this as easy in tyflow, could make for some great effects. 
.max   gradient-trigger.max (Size: 848 KB / Downloads: 153)
  Reply


Forum Jump: