Friday, February 8, 2013
Realflow pouring water
Real flow is the most popular fluid and dynamic simulator in 3D industry. You can create simple to complex dynamic simulation in Realflow. Download Realflow by clicking here.
To integrate Maya and Realflow you have to download Realflow Maya plugin by clicking here. After installing the plugin go to Window->Settings/Preferences->Plug-in Manager and put a tic in front of realflow.mll. Now you can see Realflow tab in Maya shelf.
Create a simple cup and a bottle. Animate the bottle. In here I use 60 frames to rotate the bottle.
Click Setup SD export options button in Maya shelf. Choose the path and your active camera and click Export.
Open Realflow and create a new project. Click Import->Object. Then import your SD file. Go to Scale options.
My scene is too large so I decrease the Geometry scale to 0.6. If your scene is too small according to the real world particles, then you have to increase Geometry scale. Go to Edit->Add->Daemon->Gravity to add a Gravity field. Create a Circle emitter(Edit->Add->Particle emitter->Circle) and place it inside the bottle.
Set Resolution to 4.0.
Max particles to 60000(this value is depends on your scene scale)
speed to 3.0
Click Lock/Unlock timeline progress on simulation button to lock.
Click the Simulate button. After completing the simulation you can see the bottle with particles.
Now click Lock/Unlock timeline progress on simulation button again to unlock. Go to Edit->Add->Daemon->K Speed to add a k speed. Set max speed to 16.3. You can control this attribute using keys. Click the Simulate button. Wait until the simulation is finished. Play the animation. Now you can see your particles collide with the cup.
Click Edit->Add->Mesh->Particle mesh(RenderKit). Turn on Filter attribute under Filters section. Set @Relaxation to 0.4 and @Tension to 0.01.
Click Simulate button again. Wait until the simulation is finish. After this process Realflow creates BIN meshes automatically which we need to import into Maya.
Open your Maya scene. Click Import a BIN mesh button.
BIN meshes are located under your realflow project directory(C:\Users\.....\scenes\project name\meshes). Open the first BIN mesh file. Play your animation. If you follow above steps, you can see the meshes animates correctly. Assign mental ray dielectric material to the cup and to the water and you are ready to render your scene.