A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Flash 8: Dynamic Water Ripple Effect

  1. #1
    Major Flash Newb
    Join Date
    Sep 2003
    Location
    Melbourne, Australia
    Posts
    40

    Flash 8: Dynamic Water Ripple Effect

    Hey,

    I saw this awesome flash example of a dynamic water ripple (there was a sunset and kind of like a lake beneath it with waves)

    I want to try and find the source code for it, searched everywhere.

    Does anyone have any idea where one is, where i can find it, or can you help me with some scripting

    cheers

    dkeegh
    There are 10 types of people in the world, those who can read binary, and those who don't

  2. #2
    Monkey Moderator Lexicon's Avatar
    Join Date
    Jul 2001
    Location
    UK
    Posts
    2,038
    The thread I link to below may not quite have the effect you are after but there are a few source files on there so you may be able to modify it to the effect you want. It shows how to get the watery effect with the displacement map and blur filters.

    I'm in the process of writing a tutorial of the things posted in the thread but I have a stupid amount of work on at the moment so you will have to make do with the thread for now. (I think I'll add the effect you are after to the tutorial too as they are very closely related and shouldn't take too much modification to create the effect). I think the files towards the end of the thread will be more useful to you.

    http://www.flashkit.com/board/showth...6&page=2&pp=20
    www.lexicon-design.co.uk
    If we aren't supposed to eat animals, then why are they made of meat?
    If Vegetarians like animals so much, why do they eat all their food?

  3. #3
    Senior Member
    Join Date
    Feb 2002
    Posts
    272
    I'm very interested in the flash 8 ripple subject as well...
    Woody

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    You can download several water examples by Andre Michelle:
    http://blog.andre-michelle.com/2005/flash8-sourcecodes/

  5. #5
    BetaBop
    Join Date
    Sep 2005
    Location
    SF, CA, USA
    Posts
    40
    here is your link, so everyone knows what you are talking about
    http://www.flashguru.co.uk/maelstrom...=lake%20effect
    sorry I can't be of more help right now.

    look for a link with the code in the lower right. Haven't tried it but if it doesn't work I have something else that will. enjoy
    Last edited by emolen; 11-16-2005 at 05:03 PM.

  6. #6
    Major Flash Newb
    Join Date
    Sep 2003
    Location
    Melbourne, Australia
    Posts
    40
    you need to pay for that source code

    quite upsetting really
    you mentioned something else?
    There are 10 types of people in the world, those who can read binary, and those who don't

  7. #7

  8. #8
    BetaBop
    Join Date
    Sep 2005
    Location
    SF, CA, USA
    Posts
    40
    yup, try to adapt this. I haven't looked at it much, but just apply the effect to a fliped image that acts as your water reflection and maybe alter the blue and white water image to give you different results. Change the aquarium image to whatever you like, mess with some of the numbers, don't forget the help files, and away you go. The code calls for "tropfen" to be attached, this is what is displacing the aquarium image. tropfen is german for water drops, however there are no water drops?? but the symbol 3 has the identifier of tropfen, right click on the lirbary instance and open the linkage property, you will find it's name here.
    Good luck, I know I could use some.
    Attached Files Attached Files

  9. #9
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I tried to reproduce the effect and this is what I came up with. If anybody can further improve let me know.

    http://flash8.flashscript.biz/watere...tereffect.html

    probably to get the effect one could add the displacebitmap filter effect from the aquarium.
    Last edited by cancerinform; 11-19-2005 at 02:52 PM.
    - The right of the People to create Flash movies shall not be infringed. -

  10. #10
    BetaBop
    Join Date
    Sep 2005
    Location
    SF, CA, USA
    Posts
    40
    that's pretty nice, no displacebitmap filter? I like it cause you could probaly do it in flash 5. Just alpha transparencies applied to moving mc's huh?

  11. #11
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I have to admit the displacement filters are not that easy to create to give natural effects. The aquarium effect is pretty nice and although the script is short it's not that simple, nice job.
    - The right of the People to create Flash movies shall not be infringed. -

  12. #12
    Junior Member
    Join Date
    Jul 2007
    Location
    Glasgow, Scotland
    Posts
    18
    I did this a while back, is this the kind of thing you mean?

    http://shauncampbell.co.uk/2007/11/24/ripples/

    It uses the DisplacementMapFilter and the ConvolutionFilter. The problem with this approach, though, is that I'm having to use the DisplacementMapFilter to give an offset in a particular direction - 40,40 for the X,Y arguments, or -40,40, or whatever - which isn't really a ripple - but it still looks okay. I do need to tweak settings to make the effect look less like jelly (or jello), though.

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