Before I start digging into code, I pose this question out there to those in the interactive community – you may have a bit of code that I could use to save myself some time. If you look at the image above, what I would like to do is to have a Stage with a DisplayObject or perhaps several DisplayObjects – which can animate around.
When these objects pass the boundary (marked with the horizontal red line), I would like to distort all those images by applying a Bitmap transformation… but only to the portion that crosses that boundary.
The bottom half of the Stage would need to update itself constantly to properly display the effect in real time. I’ve done some Bitmap things in the past, but I am not quite sure what the correct approach for this might be.
I’ve seen plenty of stuff where you can drag the corners of a photograph around (like this good example from Edvard Toth), but I’ve not seen where this could be applied to something like what you see above. Without digging too deeply I think I just need to update the BitmapData for the bottom Bitmap every frame – but curious about the offset stuff…
I am looking for sage advice or even some code to get this rolling. If it takes a while it might be interesting to see how you landed where you did and how I approached the problem.
Thanks for any and all consideration.