Particles diffussion or mixing mixable fluids

Hi all πŸ™‚

Previously, when I show the mixing fluids feature of fluid particles I only sowed the physical behavior of the mixing fluids and as was pointed

by Daniel Genrich , it still missed mixing mixable fluids or diffusion.

Well, the good news is that properties diffussion is pretty straigthfoward to add, not just color could be diffussed among mixable fluids but just everything (temperature, etc)

and as a proof of concept I have implemented color diffussion πŸ™‚

Currently is only at viewport level (OpenGL level) and I need to thinker more on it to make it usable for end users , but is a nice insigth of what will come in the future πŸ™‚

hope you like it

cheers Β Farsthary

Advertisements
Particles diffussion or mixing mixable fluids

26 thoughts on “Particles diffussion or mixing mixable fluids

  1. Agustin says:

    Oh my good! It seems that with your simulator, blender fluid system will be the standar tool to make fluid simulation in CG for everyone!

    i just can’t wait to test it!

    Like

  2. Awesome, Raul! *worships*

    I’ve recently been watching some demo videos of some of the latest versions of RealFlow and was wondering when would that be the fluid dynamics you guys are working be as close as that. Thinking over it, I don’t even need to compare things. The progress and efforts you’ve made so far are already pretty stunning it’s almost there at the tip of the end users fingers. Thanks so much for sharing this wonderful insight.

    -Reyn

    Like

  3. Big Fan says:

    very nice!

    I have this fear that Farsthary will be trapped in particle code for his whole working life but for now its ok by me.
    I just wish to render these miracles sometime soon πŸ˜‰

    Like

  4. farsthary says:

    Hi guys!

    thanks for your words πŸ™‚

    @Big Fan

    Well, the only code that could trapped me for my whole working life could be the whole Blender code πŸ˜‰ I have lots of other plans in other areas and lots of pending projects that I will resume after delivering a gool fluid particles solution.

    Cheers πŸ™‚

    Like

  5. kram1032 says:

    Hey, this looks great πŸ˜€
    This will probably allow for very complex interactions.
    If you can also blend stuff like, say, different shaders, that would give amazing special effects πŸ˜€

    What’s about two non-mixable liquids, one, say, red, the other blue and a third liquid which can be mixed with both of the other but is better mixable with one of them, so after a while, all the colour (say, green) would mostly stick to one phase ? πŸ™‚

    Like

  6. Agustin says:

    Have you investigated the path of GPU acceleration for this simulations ? They run blazing fast on a GPU compared to CPU computations.

    The actual algorythms on CPU have limitations, and dedicated software like realflow take sometimes ages to compute due to this when you have a LOT of particles going on.
    On the other hand GPUs by their nature compute this like monster, check also octane or the new luxrender experiments on this.

    Should be very interesting to have just a checkbox to activate so for non-GPU people they can keep on CPU, and for those having a GPU use both at the same time.

    OpenCL is an open standard for GPU computations of any kind, CUDA is the Nvidia propietary technology. CUDA is actually more mature at the moment, but OpenCL is growing and is not GPU selective (runs on every GPU out there).

    Otherwise great job and keep on going !

    Like

  7. This project is just amazing! I can’t wait to see it fully renderable, but there is just one thing that’s strange to me. The color diffusion does not look right. When you mix two colored fluids, the final color is a subtractive blend of the others, so if you mix many differently colored fluids you will end up with an almost black fluid.

    Otherwise this is stunning! Great work!

    Like

  8. nrk says:

    Ok, had an idea. Is there any way this technique could be used to build a scene, let the particles fall all over it, assign a point denstiy volume texture and voila! snow….. just a stupid thought but if this were in trunk I’d try it…. anyway… great work… thanks!

    Like

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