PhysX Fluid Simulation in Softimage ICE

Plugins linking to this thread: (hide)

PhysX Fluid SimulationAuthor: Oleg Bliznuk
This ICE compound wraps a CUDA implentation of the SPH fluid algorithm and allows a very fast particle simulation of fluids on NVidia GPUs. CPU mode is also available, also rather fast and not limited by the available GPU RAM. CPU mode can be used as the default mode or as a fallback mode.

See the si-community thread linked below for details and tips on using this compound. Here's a test video by Tekano with 2 million particles.

local backup: Waterfall_FX.rar

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: PhysX Fluid Simulation in Softimage ICE

Post by Hirazi Blue » 29 Jan 2012, 12:37

And while you're at it, you might want to compare it to the old ICE-SPH addon Thiago Costa wrote (the one that involved its own closed testing Google group). Comparing this PhysX stuff to Lagoa almost seems unfair, as Lagoa tries very hard at being/doing too much IMHO. In that light the old ICE-SPH addon (still available @ rray.de) seems to be a fairer comparison...
;)
Stay safe, sane & healthy!

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: PhysX Fluid Simulation in Softimage ICE

Post by Mr.Core » 29 Jan 2012, 13:17

>>Is that Nvidia's responsibility?
Not Nvidia, more like that it is simage fault, because physx can handle videomemory overflow and automatically switch to the CPU mode.
>> cannot seem to add or delete particles or use age etc without the solver failing.
It is my limitation, I will finish these features after implosia's release and it must be the same stable as built-in particle simulation node:)

Also I have notices that crash is happens in case when we add a huge number of particles at once, if we add the same number during some time - all work fine, seems like that crash is related to some kind of overlapping. In this way I was able to add about 2 millions on my gtx480 1.5gb.

Very nice test btw!

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: PhysX Fluid Simulation in Softimage ICE

Post by Tekano » 29 Jan 2012, 17:08

ok think I reached 2 million now by introducing slowly. . rendered with Fury2 so thats GPU rendering ontop of the GPU simulation. works out about 3 seconds per frame. 500 frames rendered in 10 minutes.



Interesting fact discovered to turn on CPU rendering mode is to set the max allowed particles to more than your card can cope, it then does give a n ice message to successfully kick in CPU mode for allowing more particles in the simulation.
Gossip is what no one claims to like, but everybody enjoys.

User avatar
McNistor
Posts: 605
Joined: 06 Aug 2009, 17:26

Re: PhysX Fluid Simulation in Softimage ICE

Post by McNistor » 09 Feb 2012, 18:01

Tekano,
In this last video the scale of the liquid tank seems to be several meters in length and the simulation looks believable. Can you please do a test at lower scales? Like a glass of water or a bucket. I'm curios how's holding up on this practical example.
The society that separates its scholars from its warriors will have its thinking done by cowards and its fighting done by fools.
-Thucydides

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: PhysX Fluid Simulation in Softimage ICE

Post by Tekano » 10 Feb 2012, 10:32

here you go, its just a matter of setting the gravity x10 so instead of meters its cm and fiddling with the stiffness & viscosity until it moves ok.
Gossip is what no one claims to like, but everybody enjoys.

User avatar
McNistor
Posts: 605
Joined: 06 Aug 2009, 17:26

Re: PhysX Fluid Simulation in Softimage ICE

Post by McNistor » 19 Feb 2012, 07:40

First of all thanks for the simulation!

Now are you sure that modifying the gravity is a good idea? I know that in 3d you tweak the values until it looks right even though the values are not by far the physical correct ones...
Anyway, it looks alright but not that good when compared to the larger one. The liquid pouring from the glass should go straight down IMO. Just an idea.
Too bad I can't play with this right now, but it's good to be on the forums most of the time. ;)
The society that separates its scholars from its warriors will have its thinking done by cowards and its fighting done by fools.
-Thucydides

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: PhysX Fluid Simulation in Softimage ICE

Post by Tekano » 19 Feb 2012, 13:20

Hi Mcnistor , am positive that changing the gravity in this instance is the best thing to do, the units in Softimage are arbitrary so 1 unit can equal 1 metre or 1 cm so this is all I am changing. the first splashy sim they were at 1 meter per unit the 2nd glass one is 1cm per unit. simples. Yes, in the last example they really should not come out so far as you say but then it was even more boring :) I think the viscosity or stiffness is too high so there is maybe some surface tension or other force making them push out that way. Often its easier to have a live action example to copy as pouring water can be fairly subjective after a few different sims :)

playing with this is much more fun than waiting up to 100 times longer for the lagoa or SPH on cpu simulation thats for sure
Gossip is what no one claims to like, but everybody enjoys.

User avatar
Maximus
Posts: 1103
Joined: 09 Jun 2009, 15:45

Re: PhysX Fluid Simulation in Softimage ICE

Post by Maximus » 19 Feb 2012, 16:32

Mr.Core wrote:You must get this message in script editor after first frame:
// INFO : || CUDA Manager Is Obtained! Created PhysX World!
hi, i got a bit of time to play with this today, but i'm getting this on the script editor


// INFO : Cleared PhysX World!
// INFO : Get CUDA support failed! Created PhysX World!
// INFO : Succefully setted Fluid Attributes
// INFO : ADD STATIC OBSTACLE: STAT OBS ADDED SUCEFULLY!
// INFO : ADD NEW PT: New Particles Added Succefully!
// INFO : Performing Step Success!

some ideas? Dont think its using the gpu! i got a 560 card
Any suggestion where i should look to fix it?

Thanks, Max



edit: fixed by copyin the dlls in main softimage root folder!

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: PhysX Fluid Simulation in Softimage ICE

Post by Mr.Core » 19 Feb 2012, 19:27

I'll post an update later (most likely after kepler releasing), I am currently sitting on the 7300GT so it's a quite difficult to debug physx on it :D

nuverian
Posts: 143
Joined: 29 Sep 2011, 23:25
Location: Greece
Contact:

Re: PhysX Fluid Simulation in Softimage ICE

Post by nuverian » 29 Feb 2012, 00:08

This really looks fantastic! Unfortunately I get the same issue as mamali132002 has. Scene loads, particles apear, but dont get any simulation going on. Under plugin manager, the .dll is marked as invalid as well :/

In any case though. Great work as it seems from above! :-bd
Portfolio / Blog
http://www.nuverian.net

aley
Posts: 5
Joined: 20 Aug 2010, 10:55

Re: PhysX Fluid Simulation in Softimage ICE

Post by aley » 06 Mar 2012, 21:26

Has anyone got this working in Softimage 2012 SAP?

I have moved the dll into the correct folder as stated in the text document that comes with the download, also have the microsoft c++ installed although it's a newer version than the one that the download link points to.

I am also a little confused about where the workgroup is that I am meant to connect, can't find any workgroup folder within the download folder.

Any help would be super awesome, sorry if I am just been plain stupid here.

Thanks.

Alex.

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: PhysX Fluid Simulation in Softimage ICE

Post by Hirazi Blue » 06 Mar 2012, 21:32

If I recall correctly, you unRAR the archive, take the dll's out of there and use the folder you have just unRARred as the entry point of the workgroup...
Stay safe, sane & healthy!

aley
Posts: 5
Joined: 20 Aug 2010, 10:55

Re: PhysX Fluid Simulation in Softimage ICE

Post by aley » 06 Mar 2012, 21:56

Cool, thanks will try that tomorrow. Cheers for the help.

User avatar
Memag
Posts: 339
Joined: 09 Aug 2010, 01:37
Location: Tits

Re: PhysX Fluid Simulation in Softimage ICE

Post by Memag » 12 Mar 2012, 23:40


User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: PhysX Fluid Simulation in Softimage ICE

Post by Tekano » 13 Mar 2012, 13:16

Gossip is what no one claims to like, but everybody enjoys.

User avatar
dwigfor
Posts: 395
Joined: 17 Nov 2009, 17:46

Re: PhysX Fluid Simulation in Softimage ICE

Post by dwigfor » 13 Mar 2012, 15:41


Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests