-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masking of video no longer works #1886
Comments
What rendering mode are you having this bug in? i.e. does the problem exist for all or just some of the following:
|
So I've done a bit more testing, here's the code I'm using: import processing.video.*; Movie movie; void setup() { size(640,360, P3D); void draw() { I've tried it with all the different rendering modes like you suggested. It's the same thing with P2D and P3D, I just get a flicker without any masking. If I don't specify the render, like: size(640,360); then I for some reason get an error about the mask not being the same size as the image, which of course is not true. I've also discovered that the flicker is somehow tied to the framerate of the sketch as well as the video. So if I set a framerate on the sketch that is below or equal to the framerate of the video (25Hz in this case) then I don't get any flicker, and the faster the framerate of the sketch is relative to the framerate of the video the more it flickers. However the masking does not ever work, even if I set the framerate of the sketch to 25Hz, I only get the video playing normally - without flicker but also without masking. I should probably also mention that I have done most of the testing on Linux (Ubuntu 13.04), but I have tried it once on Windows as well using the P3D renderer and I got the same flicker there as well (and no masking). |
Moved to processing/processing-video#12 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In 2.0 beta 8 you could apply an image mask to a video by treating it as a PImage, sort of like this:
PImage mask_tex = loadImage("mask.png");
Movie movie = new Movie(this, "movie.mp4");
movie.mask(mask_tex);
But this no longer works in the proper release of 2.0, it just makes the video flicker instead of masking it.
The text was updated successfully, but these errors were encountered: