Greetings all,

I made a quick post about something I'd like to solve and someone out there
might be able to help me.

http://imagineric.ericd.net/2011/06/16/question-bitmap-distorting-the-bottom-half-of-the-stage/

Here is a near copy and paste of the post describing the crux of what I am
after...

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 a boundary (1/2 of the Stage height), 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 (
http://edvardtoth.com/flash/flashfun/basic-bitmap-distortion-using-triangles-and-uvs-source/),
but I’ve not seen where this could be applied to something like what I am
after. 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.

- Eric
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to