Thursday, August 18, 2005

Blender Fluid Dynamics


Well blender will soon have Fluid dynamics. Only I started to do a fluid dynamics plugin b4 I found out about the Summer of Code. [elYsiunm]

So i'm gunna finish it anyway. Mainly because i really want code i can play with. But also because i think my fluid code will fill a different need. Also my code will be ready to roll some time in the next 2 weeks.

The desgin is a bit strange, but I have my reasons. A python plugin will run/interact with a java program. The java sovles all the fluid dynamics stuff, and even floating and rigid body motion (hopefully). This writes output that a python script link then reads for the "baked" fluild simulation. The result is a mesh or a set of vertices that you can then dupvert or subsurface to your heats content. But you won't be able to "edit" the mesh and keep the changes i'm affraid.

The fluid simulation uses Smoothed particle hydrodynamics. Basicaly a bunch of particles, with the needed math to make it work like a real fluid.

I'm hoping that it will even do smoke. But that will need to wait.

The image is with halo particles and the fluid simulation time was about 5 mins on a AMD64. The animation is here and there another one here. There is a dupverted sphere animation here .
Delt0r

5 comments:

Anonymous said...

Very nice! It's a shame you didn't announced this much earlier, but if I'm not mistaken, it is the same method used in Finding Nemo, so it is a solif method. I hope that this method will be built in the particle system.

Anonymous said...

Very nice! It's a shame you didn't announced this much earlier, but if I'm not mistaken, it is the same method used in Finding Nemo, so it is a solif method. I hope that this method will be built in the particle system.

-- Toontje --

Anonymous said...

Strange what you find randomly going through the blender wiki.

Love the dupverted sphere animation - this has uses beyond simple fluids!!

Anonymous said...

Hi, just wondering what's up with this proyect, it would be very nice to have particule based fluids :-)

Unknown said...

yay! we shall use it soon!

You might wanna talk to the blender dev's about this, one of them might port it to C and include it in blender. I look fordward to using this!