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 & HelpSyntax Questions › Processing+Fiducials+Rotation
Page Index Toggle Pages: 1
Processing+Fiducials+Rotation (Read 482 times)
Processing+Fiducials+Rotation
Jul 9th, 2009, 10:02am
 
Hello,

we are working with fiducials(react_tevision)marker and want to know, how ROTATION of a marker is recognized by processing!
For example, we got a sketch with boids, which number of individuals should be increased by ROTATING the marker (the fiducial).
Do we have to work with the angle?

Anybody knows and can help us by posting sketches concerning this prob.?

GRACIAS
Cheesy
wunner
Re: Processing+Fiducials+Rotation
Reply #1 - Jul 10th, 2009, 4:05am
 
I am not sure to understand the full request (how rotating a symbol can increase a number of elements?).
But well, I can answer 'yes' to your question: "Do we have to work with the angle?"
In Processing, rotation (see rotate()) is done at low level (unless you use a PShape): you have to use pushMatrix (to save current state), translate, rotate, translate to center the mark, and popMatrix...
Page Index Toggle Pages: 1