We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Interleaving two movies (Read 391 times)
Interleaving two movies
Feb 26th, 2008, 12:56pm
 
Hi

I want to interleave the frame of two movies, that is show frame 1 of movie A then frame 1 of movie B, then frame 2 of Movie A then frame 2 of movie B, etc.

I'm tried  calling image() for movie A and then B inside draw() but it only show's frames from one of the movies.

Any pointers on how to do this ?

thanks

Miguel Negrão
Re: Interleaving two movies
Reply #1 - Feb 27th, 2008, 1:47am
 
first frame image(movieA, 0,0);
second frame image(movieB, 0, 0);
third frame image(movieA, 0, 0);

just switch after every draw() loop....
eg:

if (frameCount%2==0) {
  image(movieA, 0, 0);
} else {
  image(movieB, 0, 0);
}
Page Index Toggle Pages: 1