Home > Client Technologies > BugCamSmash – Motion Detection with Silverlight 4 Beta

BugCamSmash – Motion Detection with Silverlight 4 Beta

December 3, 2009

At PDC09, we released Silverlight 4 Beta and announced one of the availability of, one of the most requested features, Web Cam Support.

Wanting to have fun with the new feature, I thought of a fun sample to create – smashing bugs with motion detection. First step was to get bugs to crawl across the screen. Next I added the WebCam with frame diff calculation, which was intensive so took advantage of the multiple thread support. And finally I added a little Mantis Boy avatar to visualize the smashing of the bugs.

Over the next few days I will post about how the code works and improvements made for performance. You can check out a video to see Mantis Boy in action, run the demo or download the source.

 

Learn how it was written:

 

*(warning this is Silverlight 4 Beta code, if you’re not currently setup to run the beta stick with the video)

About these ads
  1. December 3, 2009 at 10:40 am

    I get a 404 on channel 9 when I go to watch the video. Sounds like a great demo though!

  2. December 3, 2009 at 3:48 pm

    Face plant!

  3. December 22, 2009 at 2:44 am

    WOW! nice!

  4. January 19, 2010 at 4:02 am

    Hi Adam,

    any clue when you will release “Dissected Part4″ ?

    Thks and great work !!!

  5. Ayman
    January 24, 2010 at 12:11 am

    the link is broken:

    Dissected part 4 – WebCam and HitTest on a different thread

  1. December 3, 2009 at 9:46 pm
  2. December 4, 2009 at 12:45 am
  3. December 4, 2009 at 5:56 am
  4. December 4, 2009 at 4:20 pm
  5. December 4, 2009 at 7:28 pm
  6. December 5, 2009 at 11:47 pm
  7. December 7, 2009 at 12:42 am
  8. December 8, 2009 at 3:29 am
  9. December 8, 2009 at 4:14 am
  10. December 13, 2009 at 12:22 pm
  11. December 13, 2009 at 10:04 pm
  12. December 14, 2009 at 10:50 am
  13. January 18, 2010 at 3:42 pm
  14. January 18, 2010 at 3:52 pm
  15. January 18, 2010 at 3:58 pm
  16. January 31, 2010 at 1:06 am
Comments are closed.
Follow

Get every new post delivered to your Inbox.

Join 30 other followers

%d bloggers like this: