Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Processing 2.0 video alpha channel

$
0
0
What I tried now:

  • I tried to use the same Video twice:  
  1.   maskImg = new Movie(this, "001.mp4");
      img = new Movie(this, "001.mp4");
      img.play();
      maskImg.play();
      img.mask(maskImg);
            → no luck (mask() can only be used with an image that's the same size)

  • I tried to use the same Movie instance:
  1.   img = new Movie(this, "001.mp4");
      img.play();
      img.mask(img);
            → no luck, because there wasn't a alpha channel effect. It only displayed the Video itself.
  • I created a *.avi File with an alpha channel inside → no luck
  • And I tried all this with a *.mov and a *.mp4
It worked with an *.avi an alpha channel inside, like this:
  1.   maskImg = new Movie(this, "gimsech.avi");
      img = new Movie(this, "gimsech.avi");
      img.play();
      maskImg.play();
      img.mask(maskImg);
BUT: my video is now upside down...

I'm working with Processing 2.0b7.

Viewing all articles
Browse latest Browse all 1768

Trending Articles