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

Re : Processing 2.0 video alpha channel

$
0
0
Hey Daniel,

thank you for your support!

I tried this:

  1. import processing.video.*;
    Movie img, maskImg;

    void setup() {
      size(640,360);
      background(0);
      frameRate(25);
      maskImg = new Movie(this, "gimsech_1.mp4");
      img = new Movie(this, "gimsech_a.mp4");
      img.play();
      maskImg.play();
      img.mask(maskImg);
    }

    void draw() {
      image(img, 0, 0);
    }

    void movieEvent(Movie m) {
      m.read();
    }


I get this error:
  1. mask() can only be used with an image that's the same size.

The Videos are the same size and length.
I also wanted to try this out. But it doesn't work.

Did I do something wrong or does it just don't work?

cheers
gimsech

Viewing all articles
Browse latest Browse all 1768

Trending Articles