MSAFluid on Max

t-linked's icon

I've just put together a basic fluid solver patch , using the MSAFluid library for processing (http://www.memo.tv/msafluid_for_processing) . The implementation from the source code was quiet easy since the library doesn't have processing dependencies .

brozm's icon

WOW!!!! THANKS!

Dg's icon
t-linked's icon

Thanks for the feed back .. So since it seems that there is a bit of interest on the subject there ..Here is a patch rendering particles linked to a fluid solver . It uses the same MSAFluid library for processing (http://www.memo.tv/msafluid_for_processing) , and codes are fully inspired from source codes found on this web site .
Here the link of those experimentation on fluid dynamics and physics ( actually working on an installation project , so I'll try to keep posting on those experiments ..) : http://t-linked.com/ (you can download from there ..the same as the attached patch) .

Axiom-Crux's icon

thats funny, I was actually playing with porting the same thing. Ive been trying to port some java fluid sims for a while, but when I learned glsl I realized that gpu is the way to go! Im going to look into this, but if anyone is down to collaborate on converting the cg shader I found, or make something from scratch, I think it could be really awesome and useful for the whole community. Ive been reading tons of info on how fluid sims work, but theres still some key elements that are over my head. just google around, you will find some stuff pretty quick, and theres things that are "fluid sim for dummy-ish" though sometimes it winds up being "rocket science for dummy-ish"

Axiom-Crux's icon

heres one that seems like it could be adapted easily as well.

Axiom-Crux's icon
t-linked's icon

Thanks for the info .. You were talking about shader fluid solving , that you found. Could I have more information about it ?

Cheers .

Pascal Lesport

pascal@t-linked.com
t-linked.com

Axiom-Crux's icon

theres a free online article about it, and there is some code, also I posted some shaders in a recent post on fluid fx, do a forum search, should be easy to find.

If your down Im down, I have been trying hard to learn this stuff for a while, its just that I dont know calculus so its over my head, but Im good with intuitive math... I actually can make things happen without really knowing whats going on, but I figure it out while I make it happen. Im just still figuring out the basics of fluid dynamics really..

Axiom-Crux's icon
Axiom-Crux's icon

I just made a simple one in glsl, right now its in quartz composer which I use to write all my glsl since it is soooooo much quicker and nicer to use for that (no having to type a uniform 4 fucking times to have it usable). Ill probably port it or just post it, but its not 100% yet.

Axiom-Crux's icon

heres some more shaders i found

efe's icon

Nice share Axiom.
I need to agree with you in the sense that writing shaders is much more straight forward in QC than in Jitter. Somehow I am having a bad time converting some shaders to Jitter. The nice side of it is how flexible Jitter is to manipulate the result in real time. Is one thing for the other.
Thanks for sharing
Emmanuel

Axiom-Crux's icon

converting shaders to jitter just involves making that irritating jxs format wrapper (I know Im sure its a necessary evil but I can still hate it). And so far all the things ive made in qc convert just fine, just takes a minute to make the jxs file. I notice sometimes that QC doesn't get all the uniforms but usually it does.

Im getting some cool results in QC. I just love doing shader dev in there because all changes are instant right as I type them, and new uniforms pop up instantly as well, then when things are perfect I take em over to max if its worthwile. Now I can just make applets with QC and kinemes app maker, which is nice. Its kindof like a free mac version of jitter, which is a terrible comparison I know, but the ease of use and easy integration with itunes/screensaver/etc is nice.

I really want to get into Openframeworks, so I can make iphone apps, I just wish their limited opengl system worked with shaders but sadly nope...

sorry to get so off topic. I am still geeking on getting fluid dynamics forms out of shaders, check my vimeo www.vimeo.com/axiomcrux

Spa's icon

Axiom,
after playing with the msafluid.jar and getting a maximum grid of 64x64 nodes, I would be greetly interested if you could share a fluid shader.
or at least a base to build on it.

thanks

David Beaudry's icon

Hi all,
I know this is a pretty old thread, but just curious if anyone ever made to the shader finish line on this? I would love to get this into gl-land (and out of java) if possible.

Just curious!

Thanks,
David