Skip to main content
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 17, 2014

i don't know any simple way to do that dynamically.  i would use the displacementmapfilter to do that, but learning how to use the displacementmapfilter is difficult.

dmennenohAuthor
Inspiring
June 18, 2014

I've found a JS implementation, was just hoping someone had done that actual algorithm in AS3. I don't think displacement filter would do it, though I could be wrong. I'd just worry about the mapping getting to blurry - the proper algorithm actually changes vertex placements and so the map stays clear... Thanks.

kglad
Community Expert
Community Expert
June 18, 2014

the displacementmapfilter would work perfectly for that.  for an example of how it works (dynamically) check http://www.kglad.com > snippets > displacement.

but it might be easier to convert from the js code (or just use it to load a html page in a swf).