Webcam Motion Tracking Fun v1
May.05, 2008 in
AS3, Experiments, Flash
I have been doing some recent experiments in ActionScript 3 so I thought that I would start posting them. Most of my recent work has been client work using Papervision, but I found a little time to play with my webcam over the weekend.
I have a couple of uses planned for this and will post them when they are done but here is the first iteration.
With the help of a diff equation from Forrest Briggs, I managed to capture the specific area of movement within the webcam frame. I will continue working and post source once it is complete. This little project is helping me understand the workings of the bitmap data objects in as3.
Related Posts











January 30th, 2009 at 10:05 am
_3ds.setChildMaterial I get an error (1061) on this line flash can’t find method related,please help I get a blank screen!
Netto
January 30th, 2009 at 10:32 am
are you working with the latest release of Papervision?
January 31st, 2009 at 12:03 am
i’ve never used the 3ds parser, i’ll give it a try. If i put some lights in 3D Studio, will they appear in PV3D with the 3ds parser? (i guess not, but i don`t have 3d Studio to make a test right now).
Very nice article by the way, thanks.
February 1st, 2009 at 1:18 am
thanks for the nice comments bioRex.
I know that the 3ds parser will load the lights as objects. But I don’t believe that there is much that can be done with them. I would recommend using dummy objects, either in the 3d scene or in the papervision scene.
February 7th, 2009 at 1:47 pm
in your example you apply a material to the collada object via code but what if the object has a material(defined in a 3d application) already applied ?
February 7th, 2009 at 2:00 pm
and one more question…you said:
These are good files to use if you would like to import assets that include animations.
So far so good but how can i control the animation in papervision.For example a simple walk cycle animation created in Cinema 4D via keyboard input in as3 and pv3d ?
February 7th, 2009 at 2:11 pm
I will work on creating a part 2 of this tutorial over the next couple days and see if i can answer some of your questions about animation and materials.
I can assure you that both things are possible (loading animations and using materials that were used in the 3d application).
March 17th, 2009 at 1:11 pm
VERY NICE FILE….i’m new in papervision i see your tutorial, but i don’t understand how i can change the 3dobject. i have my .3ds file and i put in my folder,then i change the extensione in Max3dsParser_v1 and export the .fla…. i need to know if the Max3dsParser_v1.as is remain the same or is an .as created from 3dstudio?
March 17th, 2009 at 1:16 pm
just find knot.3ds within the Max3dsParser_v1.as and change that to the name of your 3ds file. the rest can remain the same
March 17th, 2009 at 7:11 pm
doesn’t work…maybe my exporto in .3ds is wrong? i can’t see my file but still remain your knot.3ds…!!