My first papervision webcam experiment

The Papervision Workshop on Flash on the Beach this year really opened my eyes on the Papervision front. I never really made the step to start experimenting with Papervision because it’s not the most accessible thing to start with. At least that’s what I thought…

Ralph Hauwert really showed how easy Papervision can be and that you can have a scene up and running in no time. So hey, in comes a rainy weekend in London and you can see the result below.

I just wanted to do something weird with a webcam and Papervision. I’ve applied a threshold to the images I capture using the webcam. The further along the line the lower the value for the threshold gets. So you get a kind of tunnel that first only shows the very bright bits and then slowly shows everything.

And I’ve added a little rotation etc just because I can ;-)

I’ve put the source code in a zip. You will need the Papervision SWC or AS3 classes to run it. If you don’t have them, please have a look at the Papervision blog on the right side (Getting started 2.0).

Get Adobe Flash player

Tags: , , , , ,

Saturday, June 13th, 2009 as3, Flash, webcam

2 Comments to My first papervision webcam experiment

  • peter says:

    hey!
    First thanks for all your experiments and source code.
    I wanted to ask you if it’s possible to detect the dominant color that is on the screen.
    I’m doing a project but need to detect which color is displayed on the screen ( the major area)
    without having to pick an object and track it based on color.

    Any help will be really appreciated,
    Thanks in advance!

  • admin says:

    Yes that is possible but I will have to think about that one for a bit. Will post if when I’ve got something working like that :)

  • Leave a Reply