Friday, September 16, 2005

Flash® 8 - Isometric WebCam "IsoCam" by Guy Watson

This example uses webcam video and renders it to a set of animated isometric tiles. The example uses cacheAsBitmap to boost performance while video input is rendered on the fly onto the tiles. Nice example Guy!



flash.display.BitmapData, Camera.get(), and MovieClip.cacheAsBitmap were used to create this effect. In Flash 8 you can process any surface as BitmapData and render images onto any attachedBitmap surface. Here Guy grabbed the Video input and rendered it to BitmapData. The BitmapData is then rendered onto many objects attached to the same BitmapData via attachBitmap. Anytime the BitmapData object changes, all attached views will update. The amazing part is how efficient this can be at runtime. Given that BitmapData is rendered in player memory, rendering the drawing to a surface is a very light hit to the player. In this case there are 256 separate surfaces referencing the single BitmapData object. What a great example by Guy Watson.

This example is available with full source and documentation within Flash® by Example.

More to come.

Ted :)

1 Comments:

At May 06, 2008 10:06 PM, Blogger Nice Guy said...

That's a pretty cool project!

www.SillyWebcam.com allows yout to test or play with your web cam online via Flash8.

 

Post a Comment

<< Home