A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Need a water ripple effect

  1. #1
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793

    Need a water ripple effect

    Any of you know where I can get source for a displacement map based water ripple effect? I need it for a project (due monday). Don't have time to learn to do it myself. I can pay a few bucks for it if needed.

  2. #2
    Patron Saint of Beatings WilloughbyJackson's Avatar
    Join Date
    Nov 2000
    Location
    Ro-cha-cha-cha, New York
    Posts
    1,988
    Are you looking for something like this?

    http://www.richnetapps.com/blog/inde...&c=1&tb=1&pb=1

    Admittedly, I've got a graphic hybrid version if you're interested:

    http://www.deviantart.com/view/22945320/

    Or are you looking for a drop of water hitting a pond causing a ripple type effect? (Which I don't have but probably could do pretty easily)...

    PM me if interested. (I won't be able to send it until tonight though)...

  3. #3
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Hmmm, yours might do if I start it from zero and increase the amount of ripple, but I'm looking more for one that is circular... Like something touching a calm pond.

  4. #4
    Patron Saint of Beatings WilloughbyJackson's Avatar
    Join Date
    Nov 2000
    Location
    Ro-cha-cha-cha, New York
    Posts
    1,988
    Multiple ripples or one ripple for every click?

    Either way, I might be able to help you still. (Of course, I won't be in front of a copy of Flash 8 until 5:00 pm EST today)

    Let me know if you want me to take a stab at it...

  5. #5
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    http://board.flashkit.com/board/show....php?p=3636909

    I'm sure if you changed the MC I used to a radial blur, it would get the effect you want.
    Christopher Rhodes
    squarecircleco.

  6. #6
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    yeah like iopred said, create a radial gradient movieclip, loop its animation so it seems seamless and on its enterFrame, draw the frame into a bitmapData object which displaces your water movieclip, depening on your setup i'd go with a black -> alpha black gradient and a neutral gray background and choose 1,1 for the colour components, 5-10 for the scaling. I'm sure you could figure out the placement of the filter

    PS i don't mean to hijack the thread but could anyone explain the alpha color component in a displacement filter, couldn't get it to work, probably because i didn't understand it
    lather yourself up with soap - soap arcade

  7. #7
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    It takes the data from the alpha channel of the source bitmap, whereas the other types use the red/green/blue channel.

    alpha wont work if the bitmap isn't a transparent bitmap (obviously).
    Christopher Rhodes
    squarecircleco.

  8. #8
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    right, so everything that is greater than 00 alpha will not displace?
    lather yourself up with soap - soap arcade

  9. #9
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Thanks all. Willoughby came through like a champ! I will post the results when I've applied it to the actual project.

    :-)

  10. #10
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    No Malee, it works like the other channels. 128 alpha is stationary 0 is full displacement, 255 is full displacement the other way.

    Although flash seems to handle alpha in 100 sometimes, and 0-1f sometimes too.
    Christopher Rhodes
    squarecircleco.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center