SPH fluid sim
Community Forums/Showcase/SPH fluid sim
| ||
ok so here is a fluid simulation I wrote in bmax using my engine verlet max. It now has viscosity, repulsion, surface tension, and much less compressibility. edit3: the most recent gameplay vid: http://www.youtube.com/watch?v=aZlXQSHeZgk edit2: the not most recent vid http://www.youtube.com/watch?v=FlTiWG37qlU youtube vid with an actual level: http://www.youtube.com/watch?v=DqClczjwduk Youtube: http://www.youtube.com/watch?v=bgW2hlAj1oI Download: http://naillproductions.synthasite.com/resources/Flood.zip enjoy edit: i borrowed kotsofts particles from polluted planet beta 1 as placeholders and forgot about them before I posted... oops |
| ||
Very nice. Things like this make me wish I had a mind for math. |
| ||
This looks better and better with each demo, keep up the good work. |
| ||
How about an FPS game using guns that spray stuff instead of the usual bullets? |
| ||
well its bmax so it cant be first person lol but yeah maybe in b3d... and a 2d shooter with fluids might be a good idea too |
| ||
Oh yea I did mean 2D sidescrolling shooter, I just thought "FPS" at first. |
| ||
but a 3d fps with fluid physics would be cool too edit: emailed u gia |
| ||
well its bmax so it cant be first person lol but yeah maybe in b3d... MiniB3D? |
| ||
emailed you back ;) I'm just playin around with your simulator and thought of another idea which could be combined with the 2D shooter idea. There could be like a pool of water inside the level and you could summon it up with the attractor and use it as a weapon, either flinging it or repelling it at something. Now THAT sounds awesome! My cursor is close to where the little ball of water is inside the big ball of oil but the screenshot didnt screenshot it. ![]() |
| ||
yeah that sounds cool.... im still thinking about gameplay concepts but everything you suggest seems to be one step ahead of what I was thinking. anyways nice idea GIA |
| ||
I got the idea from this show http://en.wikipedia.org/wiki/Avatar:_The_Last_Airbender |
| ||
hey GIA, I emailed you from my new email but I think it might not have gotten through... can you check your spam folder? |
| ||
hey just checked this out. its very neat, i noticed if you hold a mouse button down left or right to create a particle and move your mouse out of the window then the new particles go nuts at an accelorated rate for a little bit ( kinda funny ). |
| ||
haha I forgot to remove that bug... oh well. for some reason if you keep the mousebutton held down, bmax can track your mouse outside the window, but if you let go of the mouse button it cant track the mouse outside the window... anyone know why this is? |
| ||
ok I updated this! there is now a level built and I have a youtube vid of it http://www.youtube.com/watch?v=DqClczjwduk |
| ||
Looks very nice. Maybe another game idea: a little ship dancing on the waves, and something for the ship to do, I don't know what. ;) Or a 2d submarine game. |
| ||
Latest video looks nice and I did recognize the particle images from kotsoft :) This makes me want to try to implement liquids in my verlet physics engine aswell. |
| ||
Latest video looks nice and I did recognize the particle images from kotsoft :) This makes me want to try to implement liquids in my verlet physics engine aswell. yeah its not that hard once you get the hang of it, it took me a couple maybe 5 tries to get it right. and I now have my own particles, which give the lava and water glowy blur effects and look much nicer (and more original) edit: and I am releasing the source under MIT so feel free to use that if you want to, it will save you a lot of trouble. Looks very nice. Maybe another game idea: a little ship dancing on the waves, and something for the ship to do, I don't know what. ;) Or a 2d submarine game. yeah those are both good ideas but right now I have to finish this game before the competition is over :) |
| ||
heres the latest water/lava particles![]() |
| ||
very nice. |
| ||
update: here is the most recent vid with the water,lava,and rock reacting youtube vid with an actual level: http://www.youtube.com/watch?v=DqClczjwduk |
| ||
Looks much better now, since you cannot see the individual particles anymore. |
| ||
yeah... now I just gotta create the enemies |
| ||
Now I was inspired to create particles in my verlet code :-), so here is a video of it: http://www.youtube.com/watch?v=QNkA6KgkysE Yeah enemies are always nice to have, perhaps they should be killed by drowning, hehe, or by burning up from the lava :) |
| ||
well the enemies are made of lava like this:![]() and they shoot like this... hes shooting at my mouse ![]() and you kill them by drowning... but they dont die unless you kill all of them... there is usually some of them left to keep the eyes up :) |
| ||
Oh no watch out Nate, Jeppe's code was pretty cool :D A little competition never hurt anyway. Great stuff guys. |
| ||
friendly competition is great. it keeps you on your toes and always adding features you wouldnt otherwise all to the benefit of the users :) |
| ||
If you struggle to think of an idea to go with the physics I wouldn't make it a game. |
| ||
If you struggle to think of an idea to go with the physics I wouldn't make it a game. when did I say I struggled with an idea to go with the physics? |
| ||
Nice idea with the enemies. Yeah friendly competition is always good :), I wouldn't have implemented "sand" particles in my library if it havn't been for Nate. |
| ||
"sand" particles well now all you have to do is make some soft collisions and you have yourself a fluid engine. feel free to check out the source for my game when its done |
| ||
ok heres a gameplay concept video http://www.youtube.com/watch?v=aZlXQSHeZgk |
| ||
that looks really cool. my fav part was "don't hit the lava like that...." :-) |
| ||
haha thanks king nothing I think its coming along at a really decent speed. |
| ||
Wow, Nate, that is amazing. You have skillz. Now, another idea for a level in the game: make a curvy tunnel full of lava, but you can get through it if you just squirt water on the top of the lava, creating a layer of rock that you can touch without getting harmed. |
| ||
And then you better get through quick because the lava underneath will reheat it lol |
| ||
Wow, Nate, that is amazing. You have skillz. Now, another idea for a level in the game: make a curvy tunnel full of lava, but you can get through it if you just squirt water on the top of the lava, creating a layer of rock that you can touch without getting harmed. yeah with the new way the gameplay is designed, this wont work, but something similare will... ill let you figure it out in the next release :) |
| ||
To those suggesting making a shooter that spray fluids instead of bullets, please check out PixelJunk Shooter ;) |
| ||
To those suggesting making a shooter that spray fluids instead of bullets, please check out PixelJunk Shooter ;) you should have seen how many people suggested that on the other forum but they dont understand it just doesnt work as well as bullets. |
| ||
Very nice, but runs slow (same specs as _Skully). I dunno, it might be the physics or it might be the graphics slowing it down. If it's the graphics, maybe try drawing all of the walls as one static image (I don't know if you're doing this already). And, are you drawing all of the particles every frame, instead of just the ones within the viewing window or whose halos are visible within the viewing window? |
| ||
Very nice, but runs slow (same specs as _Skully). I dunno, it might be the physics or it might be the graphics slowing it down. If it's the graphics, maybe try drawing all of the walls as one static image (I don't know if you're doing this already). And, are you drawing all of the particles every frame, instead of just the ones within the viewing window or whose halos are visible within the viewing window? I am only drawing the ones in view.... and in the next release the walls will be filled polygons so no worries there. |