Try to make your plane with a Bitmap material like: myplane.material=new BitmapMaterial(new BitmapData(128, 128, false, 0xFF0000));
then you can switch the material like myplane.material.bitmap=SomeBitmapData Let me know if it works for you. -Pete On Thu, Jul 2, 2009 at 4:25 PM, Francisco Alexis < [email protected]> wrote: > > Hi, > > i'm trying to put the webcam video into the scene, first as a material > bitmap like this: > > wcamera = Camera.getCamera(); > if (wcamera) > { > wcamera.setMode(this.width,this.height,30,true); > video.attachCamera(wcamera); > capture.bitmapData.draw(video); > } > then i pass capture.bitmap as a texture to a plane but that didn't > work (of course in every frame i update capture.bitmapdata.draw > (video) ). > > Do you have a suggestion to add the webcam video to the scene in any > way? Currently i added the bitmap to the view and it work, but i can't > see the scene. > > -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
