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
import video NyARToolkit (Read 1585 times)
import video NyARToolkit
Mar 30th, 2010, 8:41am
 
Hello everyone,
It is only recently that I began to study Processing.
I tried the libraries NyARToolkit.
I want to upload the file .patt a video avi format.
I think that I must add:
Movie test

void setup () (
 test = new Movie (this, "Test.avi");
 test.loop ();
 test.read ();

)


but I can not understand how to continue ..
can someone kindly help me to understand the correct procedure?

thanks (I apologize for my English)
Re: import video NyARToolkit
Reply #1 - Mar 30th, 2010, 10:27am
 
I solved this way:

Movie myMovie;

void setup() {
 

 myMovie = new Movie(this, "test.mov");
 myMovie.loop();

void draw() {
image(myMovie, 0, 0);
}

void movieEvent(Movie m) {
 m.read();
}


Page Index Toggle Pages: 1