Umesh Rai's profile

Paint Mix Simulation

Water Simulation | Paint Mix
flip fluid addon 
This water simulation was made using blender and rendered on cycles. The paint mixing attribute you see in this project was possible because of blender's flip fluid addon which comes with mixbox plugin. Let me show you what the process was to create this project.
Modeling

We needed a vessel for the paint's to be mixed. The mixing vessel consists of 4 bumps which while rotating mixes the color evenly. The glass vessel is placed over a rotating device which helps the vessel to rotate and all of that is placed over a plane. They are simple models made with a primitive cylinder mesh as shown on the image below.
Animation

The main vessel is parented to the rotating mixer below it. The rotater is keyed to rotate on the Z axis (blender's Z axis is standard Y axis) over time.

There are 5 shots in this project where the camera changes position along with the focal length. The focal length varies from 16-80 mm between shots. The camera is animated slowly on each shot to give a subtle cinematic effect.
Simulation

We are going to use flip fluid addon for this simulation and use mixbox addon for the paint mix effect. After our animation of the vessel is done, we set the main mixing vessel as an obstacle (which is a colider term in flip fluid). We'll create a domain next and set the bake resolution to 300. Four isophere are added above the mixer which will act as an emitter. In flip fluid terms they are called Inflow objects. We'll check the viscous liquid option and set the viscousity low. Noting that our gravity is standard -9.8 m/s^2, now we'll bake the simulation.
Shading & Rendering

We'll open the shade noder now. Assign basic diffuse shader to the plane and the rotator and use basic glass shader for our mixing vessel. We are using a free HDRI image which will be the most of our lighting for this project. For shading the mixing paint, we'll go through each inflow objects and change its color attribute to Red, Green, Blue & Yellow. Then, we'll go to a shading node tree and use flip_color attribute and connect it to the main shader. Then flip fluid's mixbox addon will calculate the color mix. Finally, we'll render the project on 540p resolution on cycles.  The node tree is shown as follows:-

I found out a free ai-upscaling software called WAIFU2X. I took the low-res video and upscaled it to 4K with frame interpolation. The time of completion varies in accordance to your machine, I am using Nvideo Geforce RTX 2060 with 16GB RAM on Ryzen 5 3600 and it took me around 15 minutes to finish the upscaling.


Paint Mix Simulation
Published:

Paint Mix Simulation

Published: