Mix it up!

Show us your Realflow WIPs
Karl Richter
Posts: 19
Joined: Fri Feb 01, 2008 5:34 pm

Mix it up!

Post by Karl Richter » Tue Jan 20, 2015 9:17 pm

Some R&D on fluid mixing.

I made a script to set one fluid's temperature to 1 and the other to 0. by averaging the temperature of each particle with some of its neighbors, this creates smoothly mixing colors. The script also transfers the temperature to the particle UVs so when it is meshed, it can be shaded with a ramp shader. In this case, blue to green to yellow. As the temperature averages out, the green at the middle (.5) of the UVs comes out.

You could do the same thing with custom attributes, but I like using temperature so you can see it in the view port.


User avatar
Posts: 3563
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: Mix it up!

Post by ChristianZ » Sat Jan 24, 2015 10:12 am

Interesting project and approach! The blending in the meshed animation is very smooth with your method.
RF10.5 standard + RFC4D3, Mac&Windows


Return to “Work in progress”