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

Re : pixels[] array works in 2D but not 3D?

$
0
0
hi Crisir,

thanks for the reply.  i've actually found a way to do this that's a bit different than the code in this post.  i'll post may current code later, but i wanted to answer your questions.

the code for 2D is exactly as shown above with this one change:

- line 16 changed from:
  1. size(1280, 720, OPENGL);
to:
  1.  size(1280,720);

this line reads the next available frame of a movie into what i think is actually a PImage:
  1.  myMovie.read();
this line must be in draw().  it causes the myMovie.pixels[] array to be updated with the latest frame of the movie
  1.  myMovie.loadPixels();
i run similar code on movie files that are 1GB+, so it may be your hardware, or codec issues, or ...?

Viewing all articles
Browse latest Browse all 1768

Trending Articles