
Step 01
Welcome back to our tutorials. While I’m working on more interesting, (we hope), educational stuffs for you, it’s time to start a new tutorial’s lineup. This week we’ll start understanding something about fluid dynamic in a mixed pipeline using Next Limit Realflow and Autodesk 3ds max. The tutorial can be accomplished with other 3D software and Realflow. This exercise will be not so complex but it will be a good point to start understanding fundamentals about fluids, dynamic, and special effects. So let’s start setting the 3ds max unit setup in centimeters.

Step 02
Create a Box primitive with Lenght = 25cm, Width = 25cm, Height = 15cm as in the figure,

Step 03
Now convert the box in an Editable Poly, select the upper face as in the figure and delete it, we’ll modify it to create a water container,

Step 04
Add a Shell modifier with the default parameters, now we have the 1st container,

Step 05
Make a copy of it, so we’ll have two containers as in the figure,

Step 06
Click on the Time Configuration icon, the panel will be opened and you’ll be able to set the time for the scene animation at PAL, and 501 total frames for the complete duration,

Step 07
Let’s start to create our test animation. We’d like to fill a container with some kind of fluid, and then use it to fill the other one, so go we need to have the “right” container still until we are at frame 40 as in the figure,

Step 08
Move it at frame 100 with the “Auto key” button active as in the figure,

Step 09
And the move it as in the figure at frame 200,

Step 10
Now rotate it as in the figure at frame 280,

Step 11
Now we are ready to export the animation in Realflow, (to do it you have to install it on your workstation, but the 3ds max Realflow plug-in also), before you start the export operation, please remove the Shell modifier from the animated container, because we need it with no volume to fill it in Realflow. Now click on the “SD File Export Settings”, so you can change the settings in the panel as in the figure, please set “Entire Scene”, Deformation = Autodetect, Active Time Segment, and set the file name as in the figure, it will create a scene file with .SD extension that will be readable in Realflow,

Step 12
Please run Reaflow 4. As soon as you launched RealFlow, please go in the menù File, then click on Preferences, and in the panel that will be opened, please set Axis setup = ZXY (3ds max, Maya). Go in the File menu, choose “Create a new project”, and choose the file name you want in the panel as in the figure,

Step 13
Now click on the “Add object” icon and choose “Import…” from the object list as in the figure, or click CTRL+I, when asked choose the .SD scene file saved before from 3ds max,

Step 14
As you can see you have the same scene we created in 3ds max, here inside Realflow, if you try to move the time slider, you’ll see the animation,

Step 15
The 1st thing we have to do,is to create the fluid inside the animated container, so please click on the “Add emitter” icon, and choose “Fill object”, it will fill a 3D mesh with fluids using various parameters,

Step 16
In the “Nodes” panel view, choose “Fill_Object01”, so all the emitter’ parameters will appear in the “Node Params” as in the figure, now click on the “Object” parameter inside che “Fill object” sub-panel, a little panel will appear as in the figure, choose the Box02, (the animated one), mesh,

Step 17
Now, in the “Particles” sub-panel, set Resolution = 0,01, (this parameter will controls the amount of particles used in the simulation, with higher value we’ll have more particles so a more stable and precise simulation, but it will be slower during the calculation), Max Particles = 150000, then in the “Fill Object” sub-panel set fil Z ratio = 0.6, it means we are filling the mesh by the Z axys at 60%, you can see the result in the figure,

Step 18
Now please click on the “Daemons” icon, and choose “Gravity”, so we’ll add a realistic gravity force, set as in the real world,

Step 19
Trying to make it faster for the test simulation, we’ll change the “Resolution” parameters at 0.004, so we’ll have less particles, but it will be faster to simulate and operate on,

Step 20
Now if you’d like to see what happens and if the scene is working, you can try to simulate the dynamic solution by pressing the “Simulate” button, as you can see in the figure the simulation seems very interesting at frame 157, if you want to stop the simulation you have to press the ESC key,

Step 21
Here you can see the simulation at frame 292, as you can see the fluid collides with the other container in a very realistic way,

Step 22
At the moment we have only the particle simulation, but in order to export and render the fluid mesh we have to create the 3D mesh starting from the simulated emitter, to do it you have to click on the “Add mesh” button, so you’ll see the “Mesh01” object in the Nodes panel, select it and you’ll see the mesh topology parameters in the Node Params panel as in the figure,

Step 23
Now click on the “persp” label on the Perspective viewport with the right mouse button, then select “Shading” and then “Smooth”,
Step 24
In the Mesh node params, set Polygon size = 0.3975, (this is the face size, with bigger size the mesh generation is faster but the precision is lower), then click with right mouse button over “Mesh01” object, and click on “Build” to generate the mesh at the selected frame, (we worked at frame 243),

Step 25
Now open the sub-object level of the Mesh01, and select “Fill_Object01”, in the Node Params, set Radius = 0.15, (this is the radius of the metaball applied at every single particle of the fluid, with lower value will have a more precise mesh but it will needs more particles),

Step 26
Go back at the Mesh01 parameters and set Polygon size = 0.15 to obtain a more precise mesh,

Step 27
Go back at the 1st frame as in the figure, and try to build the mesh to check it,

Step 28
Now move at frame 223, and set Filters method = Yes, in the “Filters” sub-panel, as in the figure, it will gives a more realistic appearance at the fluid mesh topology with a lower “ lobmesh” effect,

Step 29
Now we are very near to launch the final mesh generation, but we have to make it faster, so set Polygon size = 0.3 and click on the “Build mesh” button or press CTRL+SHIFT+M, it will generate the mesh for the entire simulated frames,




















January 7th, 2009 at 4:45 pm
Another solid tutorial! Thank you =)
January 8th, 2009 at 4:34 am
This tutorial maybe aimed at beginners, but is impossible to follow because the great number of error’s. First off, the writer is referencing the figures all the time, but the screenshots are to small to read, leaving the user guessing at certain parameters which however are very important to succesfully complete this animation.
Secondly the writer has made some changes inside RealFlow to suit his personal needs but forgets to tell us. For instance the Y axis is (per default) UP in realflow, not Z. One needs to change this otherwise the cube will be filled in the wrong direction, perpendicular to the gravity (haha).
Also, one needs to activate Fill Volume in step 17 otherwise you cannot specifiy any fill rate.
This tutorial has great potential, but at this stage can only be followed by somebody that has knowledge of realflow and that’s not really what it’s intended for.
January 8th, 2009 at 3:46 pm
@Geronimo
Thank you for the extra set of eyes on this. We have inserted the text to remind users to correct the Z-axis upon opening Real Flow.
Working on the rest to provide clearing renders and thank you for the feedback.
Cheers,
W
February 8th, 2009 at 2:17 pm
This tutorial would be awesome if we could zoom into the pictures. As they are currently, they border on useless. I appreciate your hard work, this slight change would take it to the next level.
Best,
Doug
February 8th, 2009 at 4:49 pm
@Doug,
Thanks for the comments and I agree with you. I am working with Alessandro to see if we can get some zoomed in screen shots of the values he has set for this tutorial
Cheers,
W
February 28th, 2009 at 3:31 pm
VERY GOOD TUTORIAL.
-THANK YOU-
March 2nd, 2009 at 4:53 am
very nice tutorial
can u send me more tutorials
March 27th, 2009 at 6:25 am
hi, thnks for tutorial. but i have a problem with WXPORTING, (Step 11),
I really need to explain…
March 28th, 2009 at 5:14 am
I am facing a problem when I try to render the sequence in Mental Ray.. After the first two frames the liquid mesh does not update its shape in the render.. However I don’t see a problem when I create a preview of the animation or render using the basic scanline renderer.. Also I dont have a problem when i scrub to a particular frame and render the single frame using Mental ray..
Am I missing some setting??
April 1st, 2009 at 1:18 pm
if you right click on the fotos and save them you can then zoom in a bit more
April 2nd, 2009 at 9:37 am
hi i have one problem when i render real flow mesh loader
in 3ds max with mental ray in single frame it render good
but in sequens file mesh didnot render
Please can u tell me why it happened
thanks
chitwan chadha
April 30th, 2009 at 11:14 pm
hi i have one problem when i render real flow mesh loader
in 3ds max with mental ray in single frame it render good
but in sequens file mesh didnot render
Please can u tell me why it happened
thanks
Adanan IB