I understand why a "quad" is two triangle for a mesh but I try to put a texture (video but any PImage it's ok) with no deformation (with no diagonal frontier). this very basic example don't work and I don't found any simple solution :
import processing.opengl.*;
import processing.video.*;
Movie myMovie;
PImage img;
void setup() {
size(640, 480, OPENGL);
background(0);
myMovie = new Movie(this, "station.mov");
myMovie.loop();
}
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
noStroke();
PImage img = myMovie;
background(0);
textureMode(NORMALIZED); //same things with absolute coordinates
beginShape(QUADS); //same things with ()
texture(img);
vertex(500, 100, 1, 0);
vertex(50, 50, 0, 0);
vertex(50, 400, 0, 1);
vertex(500, 200, 1, 1);
endShape();
}
thanks
1