Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
jackno
jackno's Profile
2
Posts
4
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
ReaTIVision question...angle
[2 Replies]
24-Mar-2012 06:48 PM
Forum:
Contributed Library Questions
Hi guys,
I have a problem.
I can't create an action changing the angle of the fiducial.
Better, when I rotate the fiducial n.0, I want that will start the action to fiducial n.0, and not to fiducial n.0, n.1, n.2, ecc.
example:
fiducial 0 = dog.jpg
fiducial 0 rotate > 90° = dog_hungry.jpg
fiducial 1 = cat.jpg
fiducial 1 rotate > 90° = cat_hungry.jpg
I'm working on following code:
void draw() {
background(0);
Vector tuioObjectList = tuioClient.getTuioObjects();
for (int i=0;i<tuioObjectList.size();i++) {
TuioObject tobj = (TuioObject)tuioObjectList.elementAt(i);
pushMatrix();
int FID= tobj.getSymbolID();
float ANG= tobj.getAngle();
println("angle "+ tobj.getAngle());
translate(tobj.getScreenX(width), tobj.getScreenY(height));
if (FID==0) {
image(dog, 0, 0);
}
if (ANG >1.50) {
image(dog_hungry, 0, 0);
}
if (ANG >3) {
image(dog_happy, 0, 0);
}
if (ANG >4.70) {
image(dog_tired, 0, 0);
}
popMatrix();
}
}
Can you recommend a good University?
[6 Replies]
13-Jan-2012 07:30 PM
Forum:
General Discussion
I graduated
in Industrial Design
.
I will continue
with a Master
or a
Postgraduate.
Now
I am studying
Processing
alone (with books).
Do you know
a school
where they
use P
rocessing
in Europe
?
Thanks
«Prev
Next »
Moderate user : jackno
Forum