Yes, the first version was actually a height-field generated water surface. (it is a simple b-spline with no underlying physics). And I faked archimedae response to obtain a "pretty" result. No physics simulation at that time, really.
Right now I'm still not sure I will use a real physics simulation, cause I want the game to look quite arcade and funny. I'll play a little and report back my results.
I did play around with simple pseudo-fluids like this in JBox2d, in the most recent SVN there's a very simple test of something like that (actually I also used a spring force and some sensors to cut down on the number of actual contacts). The applet demo for that update is not online yet, I'll post a note here when it is. Simple circle + optional force methods work okay for some things - you could certainly reproduce the type of stuff you see in that video without too much trouble, though slowly. The problem is that it takes a lot of particles to get decent results - if you look at the comment on that video, you'll see the following: "This didn't happen in real time; by the end of the long section each frame took about six seconds to calculate. There were about 3000-4000 particles in that scene." 3000 particles is a huge amount, especially when they're all piled up. It's really tricky to get running well in real time - I've gotten quite a few particles going, but when you end up with such a massive contact graph, you can't hope for miracles. With SPH you at least don't have to handle solid contacts and interpenetration constraints, which means you don't need, for instance, 10 iterations over every contact. However, stability is always tough, as it is a force based method, and to get nearly incompressible fluids requires very high force constants, which in turn requires tiny time steps. Tuning is everything.
I still haven't gotten SPH working in Box2d yet, though I've started playing around with it, so maybe in a while (read that as a few weeks, at least - this is somewhat low on my todo list at the moment) I'll have something to show.
It's worth noting that even with that, you're not going to get results that are too fantastic. Phun has, to my knowledge, SPH fluids, and once you start to use more than small amounts of fluid, things really get slow. I think for a lot of purposes, buoyancy methods like the one Erin wrote about are going to be more useful, perhaps with a little particle based stuff around the edges for effect.
BTW, re: Gish 2, I'm pretty sure that stuff is not fluid based, it's just a clever system of spring connections with some interesting controls. I'll be interested to see if they can make that type of scheme work well in the game, it could be very cool if they get the user interaction down so that it looked cool and was still easy to play.
Agreed, Gish might be a lot harder if you keep breaking into smaller bits... but it sure looks cool 😀
That looks very cool, it'll be great to play around with.
Bill
Wow, that is very cool... I enjoyed dragging the box around and messing with the flow.
Can't wait until you're ready to release!
Very cool.
What you have is 80% of what I would need for my game. Because of the scale, insect size, the goopy water makes sense. 1000 particles is very promising.
I plan to use fluids as an interactive effect, no large bodies of water.
I'd be most interested to see what you've done. I say, work on getting it stable and free.
-nick