Fluid Application
Posted: 09 February 2010 09:43 AM   [ Ignore ]
Rank
Joined  2010-02-02
Total Posts:  5
New Member

Hello!
I’m working on a physics-based graphic engine supporting some interactive animations of free water surfaces at real-time.
image27px6.jpg

Youtube Videos:

And… of course, Fluid Simulation with touchscreen interaction: smile

The basic algorithm is based on a lattice-Boltzmann model of the shallow-waters equations and the interaction between the surface and external objects is achieved by means of source terms. The engine is capable
of produce scenes of ponds whose surface reacts to perturbations introduced by the user or controlled by the computer, like drizzle or the stirring of a finger.

Some technical data of the implementation:

-Fluid Models Supported: BGK / Entropic Model / Zhou’s SWE
-Grid: The implemented grid is D2Q9
-Realtime Grid Size: 200x200 Grids (including reflection, refraction, cubemaps, user interaction, etc.)
-Boundary Conditions: Zou/He, bounce-back, periodic.
-Parallelism: -

My idea is bring it to the NUI Community and (if you test it) i will probably get some videos and screenshots of possible uses of my project.
I tested multitouch support using TUIO listener and works great!

If you want it, you cand download it from here:
Link: http://www.pladema.net/~cgarcia/resources/LBM.rar

You can use it as you like it in your projects.

Aditionally, this is a basic (& very preliminary) version of a DLL, including the fluid physics module in my demos.
The zip file includes a Visual C++ Project that show you how to use the library, renders a water grid and permits user interaction.
Of course, the visualization in this demo is simple because i don’t use my graphics engine.

cap1w.jpg

Link: http://www.pladema.net/~cgarcia/resources/DLL_Test.zip

Send me an email if you have any question:

http://www.pladema.net/~cgarcia

Regards,
Eng. Cristian Garcia Bauza

Profile
 
 
Posted: 09 February 2010 10:21 AM   [ Ignore ]   [ # 1 ]
Rank
Joined  2008-11-15
Total Posts:  38
New Member

Wow, looks VERY realistic!!

Great work!

Profile
 
 
Posted: 09 February 2010 12:24 PM   [ Ignore ]   [ # 2 ]
Avatar
Rank
Joined  2008-10-23
Total Posts:  84
New Member

Wow, this is damn cool!
I only got some trouble to run the program from a new compiled version. After the window fullscreen prompt it crashes.
If i run it from VS there is no problem. (VS 2008 Windows xp )
I always look for a good water simulation for multitouch. And your seems one of the best!
Do you plan to make a OpenFrameworks-friendly version? So the integration with other projects would be much more easier.
Is there any way to decrease the CPU workload ? Your exe grabs 100% CPU on my 2.31 GHz DualCore.

Keep up the great work.

Profile
 
 
Posted: 09 February 2010 04:43 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRankRankRank
Joined  2009-04-14
Total Posts:  950
Elite

i’ll try this soon, this look very real !!!

 Signature 

One more but very useful blog : http://cktouch.fr.nf/
Rear DI + Windows Seven + Surface = So Nice…

Profile
 
 
Posted: 09 February 2010 08:23 PM   [ Ignore ]   [ # 4 ]
Avatar
RankRankRankRank
Joined  2007-09-18
Total Posts:  791
Moderator

hello Cristian ,

welcome to the NUI group !

this fluid simulation is beautiful !
Wrks ok with the mouse , Did you implement a multitouch version ?  i guess it willl require more processor ,
Your exe grabs 100% CPU on my 2.53 GHz DualCore.
I would love to have a test on my MTWater screen ....fluid over fluids

Thxs for sharing this .

 Signature 

How many touches can you simultaneously perform ? 

le WIKI en Français

Profile
 
 
Posted: 22 February 2010 03:28 PM   [ Ignore ]   [ # 5 ]
Rank
Joined  2010-02-02
Total Posts:  5
New Member

Thanks for all the wonderful welcoming comments!
New demo is available HERE

newversion.jpg
New features:
-Config Screen Properties (resolution, Aspect, etc)
-Basic Water Viscosity
-Grid Size
-Different Cubemaps included
-Touch Apps friendly (Orthogonal View Mode) Test it!  smile

Remember… I tested (basic) multitouch support using TUIO listener and works “fine”.
Someone else?

About CPU “burn” when run this… Well, i’m working on this (some optimizations, future CUDA DLL version), etc. Stay in touch.

jimihertz - 09 February 2010 08:23 PM

hello Cristian ,
I would love to have a test on my MTWater screen ....fluid over fluids
Thxs for sharing this .

Great! Feel free to use my demo in any kind of your projects, but… send me some screenshot! wink

Again, thanks for the comments.
Regards,

Cristian

Profile
 
 
Posted: 23 February 2010 03:14 AM   [ Ignore ]   [ # 6 ]
Avatar
Rank
Joined  2009-11-12
Total Posts:  41
New Member
cristianGB - 22 February 2010 03:28 PM

Thanks for all the wonderful welcoming comments!
New demo is available HERE

newversion.jpg
New features:
-Config Screen Properties (resolution, Aspect, etc)
-Basic Water Viscosity
-Grid Size
-Different Cubemaps included
-Touch Apps friendly (Orthogonal View Mode) Test it!  smile

Remember… I tested (basic) multitouch support using TUIO listener and works “fine”.
Someone else?

About CPU “burn” when run this… Well, i’m working on this (some optimizations, future CUDA DLL version), etc. Stay in touch.

jimihertz - 09 February 2010 08:23 PM
hello Cristian ,
I would love to have a test on my MTWater screen ....fluid over fluids
Thxs for sharing this .

Great! Feel free to use my demo in any kind of your projects, but… send me some screenshot! wink

Again, thanks for the comments.
Regards,

Cristian

HI CristianGB

I download the app. and try to start but it isnt work, it gives errors.

111.JPG
2222.JPG

Config is work but gives this error at the start.
3333.JPG

Profile
 
 
Posted: 23 February 2010 06:53 PM   [ Ignore ]   [ # 7 ]
Rank
Joined  2010-02-02
Total Posts:  5
New Member

Hi Voyna, please set in your “Regional Settings” (assuming that you are using windows) the decimal and thousand separators to:
decimal: .
thousand: ,

Thanks!

In the new version i promise fix that. wink

Profile
 
 
Posted: 24 February 2010 06:14 AM   [ Ignore ]   [ # 8 ]
Avatar
Rank
Joined  2009-11-12
Total Posts:  41
New Member
cristianGB - 23 February 2010 06:53 PM

Hi Voyna, please set in your “Regional Settings” (assuming that you are using windows) the decimal and thousand separators to:
decimal: .
thousand: ,


Thanks!

In the new version i promise fix that. wink

Hi Buddy

Well it works but touch isnt work.

Im using ccv1.3 i Try Tuio Udp, Flash xml, Binary TCP but nothing.

Any way its Great !!

Profile
 
 
Posted: 25 February 2010 08:15 AM   [ Ignore ]   [ # 9 ]
Rank
Joined  2010-02-02
Total Posts:  5
New Member

Uhmmm… Using your standard mouse, it works?
I made some tests with UIO Listener and it works, maybe i used another version for my test.
Someone else..., test it?

Profile
 
 
Posted: 25 February 2010 08:26 AM   [ Ignore ]   [ # 10 ]
Avatar
Rank
Joined  2009-11-12
Total Posts:  41
New Member
cristianGB - 25 February 2010 08:15 AM

Uhmmm… Using your standard mouse, it works?
I made some tests with UIO Listener and it works, maybe i used another version for my test.
Someone else..., test it?

Yes standard mouse is working.

Profile
 
 
Posted: 08 March 2010 02:07 PM   [ Ignore ]   [ # 11 ]
Rank
Joined  2010-02-02
Total Posts:  5
New Member
jimihertz - 09 February 2010 08:23 PM

hello Cristian ,

welcome to the NUI group !

this fluid simulation is beautiful !
Wrks ok with the mouse , Did you implement a multitouch version ?  i guess it willl require more processor ,
Your exe grabs 100% CPU on my 2.53 GHz DualCore.
I would love to have a test on my MTWater screen ....fluid over fluids

Thxs for sharing this .

As I said, I tested multitouch support, (only) using TUIO listener and Windows_Mousedriver.exe (included in MTMini package’s Seth), and “works"… I don’t have “a real” MT o DYI screen :(
Now, i’m working on include TUIO client (Delphi port) in my Simple Fluid Application (1.1), but this taking time to me.
And… i would love too to have a test on your MTWater screen smile Great job!
Questions, suggestions and comments are welcome.
Email me!

Profile