Shaken & stirred

22May08

For some reason, there are broken elements in Realflow’s connector for 3dsmax2008, like material for mixing fluids among with some others.

movie

And the challenge was to shake and mix two fluids of different colors.

Let’s modelin 3dsmax basic primitive like in picture below, kind of a sloped plexyglass figure for shooting beer stuff, and export it in obj format with triangle faces option checked.

Setup in RF an epic collison of two luquids from two different emitters with the rapid of 50.

Next make a single shared mesh for both liquids, with resolution a bit higher than automaticlaly suggested.

Calculate the mesh and import it into 3dsmax, add Relax on top of mesh for extra smoothness.

Render both meshes by order with vray, each with it’s unique materials reflections and refractions from the same camera.

Assign pure self illuminating material to mesh, with gradient ramp texture from white (0-25% [255 0 0]) to black (75-100% [0 0 255]).

For the U axis tiling enter a mystic number 0.05.

Choosing UV coordinate settings, possible by looking at UV-unwrap of the mesh imported from RF.

For example, here’s the settings for three emitter positioned in one dimension.

If enable “show material in viewport” button we’ll see that mixed parts of fluids now have grey color and “pure” parts of every liquid stay white and black respectively.

However, there are very sharp transitions in the areas where two liquids mix, there is a need to blur them out.

Here comes in handy render effect called “Surface Blur” written by Pavel Kuznetsov, for which (and for others,too) megarespect to him.

Render the mesh from the same camera once again with blurred result, without any reflections, refractions etc.

By the way, we can also render v-ray passes for velocity and z-depth channels for compositinig work later on. (unfortunately in combination with surface blur, it’s impossible to get real depth of field and motion blur)

Now, let’s load into Aftereffects all the sequences we’ve got.

Substract one of the main color liquids by assigning luma matte for black and white mask. Put another colorliquid at very beneath, then precompose all.

Make some color corection, DOF and motion blur as a post effects from respective channels.

Thats all :)

P.S. I’m not sure if the same method will clearly work for the mixing fluids into some kind of volume, for that purpose, some further composition work is needed.

P.P.S. Thanks to Polypixel for translating from russian

About these ads


5 Responses to “Shaken & stirred”

  1. 1 james

    no comments

  2. 2 diilman

    GREAT!! i want more!

  3. 3 Jolibee

    Wow!.. A real Guru of max…More power to you!…

  4. Hey thanks for tut, I never thought of using the relax mod, it works really well!

  5. A motivating discussion is worth comment. I think that you ought to write more on this subject, it may not be a taboo matter but usually people don’t
    talk about these subjects. To the next! Cheers!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: