I had the idea for a while to do something with points and lines in 3D space, so yesterday after reading the post of bit-101, I finally started to do some testing. After creating a 3D sphere with lines, a 3D landscape of lines I finally thought it would be more exiting to do something with the web cam.
The idea is simple. Scan an image, in this case the image from the web cam from left to right. The more brightness a pixel has, the more the line gets pushed back at that point (in 3D space), and if it contains no brightness at all, it gets no depth at all. Repeat this process until you covered the whole image from top to bottom. Because flash needs to draw plenty of lines I used the new drawPath function in Flash 10 to speed things up a bit. If you have a webcam you can play around with the result for yourself over here.
