PDA

View Full Version : SPH Fluid Simulation


tony1001
06-14-2008, 10:29 AM
Hi!

As a lot of people seems to be interested in fluid dynamics I´m posting this to show you the SPH simulator I´m working in.
You can see some videos here:

http://tonyambles.blogspot.com/

I accept any kind of advices about how to optimize the process, right now I´m using a simple 3d voxel grid to get the neighbour particles. If anyone has a better experience using another kind of structure please tell me as I´m looking for new ways of optimizing all the computing.

Hope you like it!
Thank you!

skydave
06-14-2008, 11:35 AM
Hi Tony !

You did a very good job on that SPH stuff. Thanks for sharing your work. Especially the
3dsmax to simulation geometry exporter is cool for being able to do more than those simple
fluid-container like simulations.

Greetings,
david

playmesumch00ns
06-14-2008, 12:25 PM
Nice work! For neighbour-searching I've always used a kd-tree. Lookups with that will obviously be a little slower than a dense voxel grid (assuming you're just hashing positions into cell indices), but much more memory-efficient

tony1001
06-16-2008, 10:54 AM
Hi Tony !

You did a very good job on that SPH stuff. Thanks for sharing your work. Especially the
3dsmax to simulation geometry exporter is cool for being able to do more than those simple
fluid-container like simulations.

Greetings,
david

Hi David, thanks!
Yes, I have designed a 3d scene cache format so I can bake all the animation in 3dsmax and load it in my simulator. I´m thinking about writing an importer/exporter of this format for Maya and Houdini and release it for free, but it will depend on my free time to do it as it´s a long (and a bit boring) work :)

Greetings,
Tony

tony1001
06-16-2008, 11:02 AM
Nice work! For neighbour-searching I've always used a kd-tree. Lookups with that will obviously be a little slower than a dense voxel grid (assuming you're just hashing positions into cell indices), but much more memory-efficient

HI! Yes, I think the grid is the best way right now to use, as you said a kd-tree is another option but as I´m doing it just for fun I´m not too worried about the memory consumption. Now I´m going to make it multi-threaded so I can make more interesting examples in less time.
Thanks!

CGTalk Moderation
06-16-2008, 11:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.