05-02-2019, 01:14 PM
(This post was last modified: 05-02-2019, 05:09 PM by shadowkiller.)
Hey,
I am trying to make an ink simulation with mixing colors. Due to issues with inheriting color from the smoke sim i am looking at alternative ways to do this. I have 2 separate flows, one for each emitter/color. I have had limited success using a gradient over age, but now i would like to take it a step further.
What im trying to do is set it up in such a way that tests for neighbor count and particle lifetime. If the neighbor count is greater than X, then float through a color ramp over Y seconds. The caveat is that it needs to test against the other emitters flow, not itself.
(if particles from emitter 1 have >X neighbors within Y distance from emitter 2, then change color over X seconds/frames based on a gradient ramp)
This way i can use gradient ramps to mix the colors. The time would be how fast the colors mix and the neighbor count controls when it starts mixing.
Any help would be greatly appreciated!
Thanks!
Edit: I seem to have it working when its testing against itself. I still dont know how to make it test against the other flow though.
I am trying to make an ink simulation with mixing colors. Due to issues with inheriting color from the smoke sim i am looking at alternative ways to do this. I have 2 separate flows, one for each emitter/color. I have had limited success using a gradient over age, but now i would like to take it a step further.
What im trying to do is set it up in such a way that tests for neighbor count and particle lifetime. If the neighbor count is greater than X, then float through a color ramp over Y seconds. The caveat is that it needs to test against the other emitters flow, not itself.
(if particles from emitter 1 have >X neighbors within Y distance from emitter 2, then change color over X seconds/frames based on a gradient ramp)
This way i can use gradient ramps to mix the colors. The time would be how fast the colors mix and the neighbor count controls when it starts mixing.
Any help would be greatly appreciated!
Thanks!
Edit: I seem to have it working when its testing against itself. I still dont know how to make it test against the other flow though.