Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: falling droplet on water

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2005
    Location
    za
    Posts
    4

    falling droplet on water

    I am looking for a piece of C/C++ code rendering a droplet falling onto water. May anyone help?

    thanks in advance
    klibza

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2005
    Posts
    19

    Re: falling droplet on water

    hi , i couldn't find much c++ just a lot of pdf's when googling

    dont know if this will help

    tried google with ... falling water droplets on water c++ ... and ... water droplets c++

    loads of techy stuff

    try

    http://www.codeproject.com/opengl/ds...&select=415748

    also Nvidia has a good fluid simulation demo i think with code

    anyway good googling

    regards

  3. #3
    Junior Member Regular Contributor Zulfiqar Malik's Avatar
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    247

    Re: falling droplet on water

    I think there is a demo of such a feature on Humus 's website.
    Zulfiqar Inayat Malik.
    Senior Developer, The Foundry.

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2005
    Location
    za
    Posts
    4

    Re: falling droplet on water

    Thanks a lot for your answers both to you...dasraiser and malik. I found the former URL but not the later, I didn't nknew about it.

    Malik can you make it more precise...The Humus website seems huge and I see no search engine...can you help?

    again thaks a lot for helping.

    Zelda
    klibza

  5. #5
    Junior Member Regular Contributor Zulfiqar Malik's Avatar
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    247

    Re: falling droplet on water

    Here it is
    Zulfiqar Inayat Malik.
    Senior Developer, The Foundry.

  6. #6
    Junior Member Newbie
    Join Date
    Nov 2005
    Location
    za
    Posts
    4

    Re: falling droplet on water

    thanks so much...It maybe a good starting point.

    I found something somehow more interesting (I think) but unfortunately it is written in pascal..I don't know much about that language...see http://www.sulaco.co.za/opengl/water.zip it looks fine even though it is far from what I want to realize (falling droplet onto water).

    Anyway I have to finalize the mathematic behind this matter...

    again thanks alot for all.
    klibza

  7. #7
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Colorado
    Posts
    1

    Re: falling droplet on water

    If you can't find anything that works, and you want to program it, a sinusoudal wave should do the trick.
    The problem is actually programming it
    Support local heating and lighting: BLOCK OUT THE SUN!!!!

  8. #8

    Re: falling droplet on water

    For a "drop of water", you have basically two partial differential equation models available. The 2D wave equation (think of a pond with some raindrops) and the 3D shallow water equations (think e.g. of a dambreak) both model what you want to see.

    Jens Krüger's GPGPU library (http://wwwcg.in.tum.de/Research/Publications/LinAlg) contains a demo of the 2D wave equation, and the RTFFS project (http://rtfss.sourceforge.net/) is an example of the more complex shallow water equation.

    This is however only relevant for you if your app is not GPU-bound already, solving properly discretized versions of these PDEs will require at least a couple of Jacobi iterations for visual accuracy. If you can't spare these, go for sinusodial waves and skip the "physically-based modelling" bit.

    This page has about a ton of reading material, from "how to texture water" to "how to simulate": http://vterrain.org/Water/

  9. #9
    Junior Member Newbie
    Join Date
    Nov 2005
    Location
    za
    Posts
    4

    Re: falling droplet on water

    Thanks a lot for all and particularly dom_unido it is exactly what I am trying to do: solve PDEs. But it is quite hard. First the mesh is not easy to initialialize..;I mean the delaunay way. Moreover the physics (mathematics) behind is somehow tricky...So I think it is gonna be a long way to go.
    At this time mu milestones are as follows:
    1) find good code to mesh water (thanks dom_unido maybe I find something nice there)
    2) Find a good PDE Solver...I had a look at matlab but it is useful but difficult to collect the code
    3) make this stuff run with opengl...

    thanks in advance for any help wherever it comes from!
    klibza

  10. #10

    Re: falling droplet on water

    Jens' library does exactly what you want to do. You can find more info on PDE solving over at gpgpu.org btw.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •