Making waves.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Making waves.

Post by dognose »

I'm looking to make an animated image like this:

Image

It's an old effect that I've seen a lot of places, but I don't know the best way to make it in IM.

I'm guessing that I'd use a Distortion or Displacement Map like in the examples... but I don't know how to make one for the movement and distortion I want.

Anyone have ideas on where I'd start on this one?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Making waves.

Post by anthony »

A distortion or better still a displacement map (which is built-in so is faster) would be the way to go.
See http://www.imagemagick.org/Usage/compose/#displace

In fact it would probably turn out so nice looking you may have to blur the image a little to dirty it so it becomes more realistic :lol:

Animation it is easy, it is just set of distortion/displacement maps applied to the same image over an over. The difficult part is geting the right sequence of distortion maps

However Please let us know how you get on. I would love to see your final set of distortion maps, and hopefully include at least one non-animationed example
in IM Examples...

Think of it as the payment for this advice. 8)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply