The OpenGL renderers (P2D, P3D) do everything differently behind the scenes, however much work has been put into it for them to behave identically in front of the scenes. When I run the code under the P2D renderer, it gives the same result as with the default JAVA2D renderer. Are you using the latest Processing 2.0.2? Otherwise it may be an issue with your graphics card and OpenGL...
Code Example
Code Example
- import processing.video.*;
- Movie mov;
- void setup() {
- size(200, 200, P2D);
- mov = new Movie(this, "transit.mov");
- mov.loop();
- }
- void draw() {
- if (mov.available()) {
- mov.read();
- mov.loadPixels();
- println(hex(mov.pixels[mov.height/2*mov.width+mov.width/2]));
- }
- }