Posted By

allnatural on 04/06/09


Tagged

video Papervision3D Material papervision pv3d bitmapmaterial


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

Pingpongbal
TrentSkunk
alptugan
adrianparr


Capture Video Frame To BitmapData (Extra - Add Bitmap to PV3D Material)


 / Published in: ActionScript 3
 

URL: http://www.destroyyourcomputer.com

Easy little script to grab the current frame's BitmapData from a Video()

  1. // Grab the Frame from the Video()
  2. _vidBitmapHolder = new BitmapData(_screenWidth, _screenHeight, false, 0x000000);
  3. _vidBitmapHolder.draw(videoFile); // draw the Video() Object
  4.  
  5. // Extra - Turn it into a BitmapMaterial for Papervision3D
  6. _tempVideoScreen = new BitmapMaterial(_vidBitmapHolder, false); // Create the BitmapMaterial

Report this snippet  

You need to login to post a comment.