hi rob,
I have done this before with an Animation compressed .mov file. the filesize gets pretty beastly but it does support the alpha channel. I posted this class on this other forum thread, it should do what you need:
- import processing.opengl.*;
- import codeanticode.gsvideo.*;
- import codeanticode.glgraphics.*;
- public class BGvideo {
- GSMovie myMovie;
- GLTexture tex;
- public BGvideo (String videoFile, PApplet app) {
- app.registerDraw(this);
- myMovie = new GSMovie(app, videoFile );
- tex = new GLTexture(app);
- myMovie.setPixelDest(tex);
- myMovie.loop();
- }
- public void draw () {
- myMovie.read();
- if (tex.putPixelsIntoTexture()) {
- background(255, 0, 0);
- image(tex, 0, 0, 1920, 487);
- }
- }
- }