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.
IndexProgramming Questions & HelpIntegration › Reactivision Question
Page Index Toggle Pages: 1
Reactivision Question (Read 968 times)
Reactivision Question
Feb 20th, 2008, 6:25pm
 
Hello all,

I have been experimenting with Reactivision and Processing.
I am trying to make a particular fiducial marker call a specific picture file

eg

Fiducial Marker 1 = Image001
Fiducial Marker 2 = Image002

etc.

Any help would be gratefully appreciated.


Tony

http://reactable.iua.upf.edu/?software
Re: Reactivision Question
Reply #1 - Feb 25th, 2008, 2:14pm
 
what do you mean by call a specific picture file?

to each fiducial marker matches an id (f_id). say you have an array of PImage called images[] containing one PImage per fiducial marker :

Code:
void updateTuiObject (Integer s_id, Integer f_id, Float xpos, Float ypos, Float angle) {
translate(xpos, ypos);
rotate(angle);
image(images[f_id], 0, 0);
}
Page Index Toggle Pages: 1