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 › coordinates in processing
Page Index Toggle Pages: 1
coordinates in processing? (Read 388 times)
coordinates in processing?
May 6th, 2006, 3:41am
 
hello people, im using pure data for tracking the movement of people in a public space... then im sending those coordinates to a processing program using osc protocol to create a graphic reprepesentation of the people in my processing program... the problem im having is that it seems x,y coordinates in puredata (gem) is not the same as the x,y coordinates in processing... in processing [0, 0] is the coordinate in the upper left of the window and in puredata(gem) [0, 0] is at lower left, so when i send the coordinates to processing from puredata it doenst fit.... my question how can i fix this? is there any math operation or trick ?

many thanx for the help

punchik
Re: coordinates in processing?
Reply #1 - May 6th, 2006, 8:00am
 
processing_y = height - pd_y;

this assumes that both have the same "window"-size .. otherwise just flip them right in PD before sending.

best,
F
Page Index Toggle Pages: 1