Don't miss Joystiq's up-to-the-minute live coverage of E3!

playdoCAM and BubbleMaker use Flash video motion detection to game

video and bitmap detection in flashYesterday John Dowdell blogged about the new Flash 8 video capabilities mixed with new bitmap caching and how Andreas Rehnberg has created a new piece of game software called the playdoCAM. Rehnberg uses Flash’s Camera() object and new bitmap caching to detect pixel change and control games, light fires, and more. FlashMagazine looked at it and remembered a simple bubble pop game made by Protozoo that detects sound to blow bubbles and dark pixels to pop them. While Rehnberg immediately thought he should sell his take on this idea for game and ad development Protozoo is giving us the code.

The Protozoo zip yields the key with the line: new _global.flash.display.BitmapData( 320, 240 ). This gives Flash access to a cached bitmap screenshot of the Camera() object stream that can be checked for pixel shade (for the bubble pop) or compared frame to frame for change (motion detection). Let’s take this a step further and create a site that is fully motion navigated. Limit your motion detection to a specific space. Photograph your user’s face or hand or whatever and use the colors found as a joystick.

Want to learn more? Protozoo thinks BitmapData may come from Director’s Lingo programming language and from what Rehnberg says about his inspiration, I’ll bet a Director programming guide would be very useful.

Viewing the Flash will require Flash Player 8

 

Reader Comments

(Page 1)
News
Macromedia (141)
Innovation (164)
Merger (41)
Releases (65)
WIN Business (24)
Events
MAX (26)
FlashForward (8)
MMUGs (16)
Webinars (4)
Learning
ActionScript (49)
Designer Certification (5)
Developer Certification (6)
Ideas (163)
Links (83)
Samples (57)
Tips and Tricks (98)
Tutorials (45)
Design & Development
Accessibility (14)
Ad Design (27)
Art (94)
Components (6)
Extensions (17)
Games (65)
Rich Internet Applications (99)
Sound (38)
Video (65)
Web Standards (33)
Software
Flash 8 (103)
Flash MX2004 (92)
Flash Paper 2 (3)
Flash Player 8 (55)
Flash MX2004 Professional (44)
Flash Lite (24)
Flash Platform (91)
Flash Remoting (3)
Flash Communications Server MX (8)
Flash Video (24)
Flash Paper (3)
Macromedia Contribute (2)
Macromedia Flex (8)
8Ball (15)
Maelstrom (19)
Software Updates (34)
Beta (22)
Bugs (14)
Studio 8 (25)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: