Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Oct 15, 2009 4:27 pm 
Offline
User avatar

Joined: Sat May 19, 2007 9:28 pm
Posts: 35
Location: Santo André-SP, Brazil
Is it currently possible to simulate fluids in Bullet? SPH? Velocity fields?

Thanks.


Top
 Profile  
 
PostPosted: Fri Oct 16, 2009 12:22 pm 
Offline

Joined: Fri Oct 16, 2009 12:20 pm
Posts: 6
I'll tag along - I'd like to create a stream of water flowing down (by gravity), changing direction by ramps and such.

Can Bullet simulate such fluid physics?


Top
 Profile  
 
PostPosted: Fri Oct 16, 2009 4:40 pm 
Offline

Joined: Sun Jul 05, 2009 5:37 pm
Posts: 7
There is currently a SPH demo in Bullet doing fluids on CPU / GPU:

Bullet\bullet-2.75\Extras\sph


The idea is to integrate the SPH code with the Bullet core to have two way interaction just like Soft Bodies in Bullet.


Once this feature is done, one can work on the feature of creating SPH fluids in Blender/BGE, but no such thing has been announced yet.


Top
 Profile  
 
PostPosted: Sat Oct 17, 2009 12:27 am 
Offline
User avatar

Joined: Sat May 19, 2007 9:28 pm
Posts: 35
Location: Santo André-SP, Brazil
Thanks for pointing that out. Had a few troubles to build but I got it. It runs very slow on CPU (around 3 fps) but runs very fast on GPU (not sure how many fps). But it doesn't use Bullet (??).

And about fluid-rigid/soft body interaction? It doesnt use Bullet but would it be easy to integrate it with Bullet so that we get this interaction? And how much more processing would it need? And about rendering the fluid surface?

Thanks.


Top
 Profile  
 
PostPosted: Sat Oct 17, 2009 3:45 am 
Offline

Joined: Sun Jul 05, 2009 5:37 pm
Posts: 7
I think the demo was meant to give us an idea of how fluids would look like in Bullet. And to give an idea on how it performs on the GPU...

Ideally we should also get an OpenCL version of this SPH demo, so when its integrated into Bullet it will end up using the OpenCL API to access the GPU for this kind of heavy simulation.

But you're right, its a CUDA demo and it doesn't use Bullet...


Top
 Profile  
 
PostPosted: Mon Oct 26, 2009 6:30 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3881
Location: California, USA
The SPH fluid integration with Bullet is on the TODO list:
http://code.google.com/p/bullet/issues/detail?id=296

If you feel want to work on this integration, please have a look at the soft body/cloth interaction. Contributions are welcome. Otherwise, please be patient :)
Thanks,
Erwin


Top
 Profile  
 
PostPosted: Mon Oct 04, 2010 2:35 pm 
Offline

Joined: Fri Mar 19, 2010 9:16 am
Posts: 8
I'm interested in this topic. Are there any news concerning the SPH fluid integration with Bullet?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group