views:

361

answers:

1

It's possible to create custom transform matrices. But I wonder if they are suited for making water ripple effects on a CALAyer. Think of 20 of them in an animation. Can someone tell?

+1  A: 

A CALayer is a single rectangular texture. Given that Core Image filters are unavailable for the iPhone (which let you do water ripple effects on the Mac), you won't be able to produce the effect you're looking for with a single CALayer. However, you might be able to tile a set of CALayers and apply appropriate 3-D transforms to each to translate and rotate them into a shape mimicking a water ripple.

For more on the math involved, you may wish to refer to this question.

Brad Larson