Mix it up!

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

Mix it up!

Postby 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.

https://vimeo.com/117318300


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

Re: Mix it up!

Postby 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 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM


Return to “Work in progress”

Who is online

Users browsing this forum: No registered users and 1 guest