Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Ripple Effect in 2D

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Hamilton, Ontario, Canada
    Posts
    3

    Ripple Effect in 2D

    Good morning everybody.

    I found an interesting looking function in an openGL book that looks like a ripple in water just after a drop hit it. Does anybody know of a function that I can run on the line so that it looks like a ripple effect? I'm thinking about this:

    y = y * sin( PI * t)

    where y is the height, and t is the time from the origin.

    FYI here is the function:

    sinc(x) = sin( PI * x) / (PI * x)

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: Ripple Effect in 2D

    its usually just a hack,
    search for "the fun bouncy" page + ripple effect (hopefully u wont hit a lot of porn)

Posting Permissions

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