hello, why [pix_crop] y is offsetting from the lower left, when [gemmouse] (or logic) is starting from the highest left?
Patrice Colet - 06 32 66 03 57
It is due to the OpenGL Standard. OpenGL coords start at the lower left and 'screen' coords start at higher left. ++
Jack
Le dimanche 06 juin 2010 à 22:29 +0200, patko a écrit :
hello, why [pix_crop] y is offsetting from the lower left, when [gemmouse] (or logic) is starting from the highest left?
Patrice Colet - 06 32 66 03 57
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ok, so what is the difference between "screen" and "openGL coords" [gemmouse] isn't openGL?
Patrice Colet - 06 32 66 03 57
----- "Jack" jack@rybn.org a écrit :
It is due to the OpenGL Standard. OpenGL coords start at the lower left and 'screen' coords start at higher left. ++
Jack
Le dimanche 06 juin 2010 à 22:29 +0200, patko a écrit :
hello, why [pix_crop] y is offsetting from the lower left, when
[gemmouse] (or logic) is starting from the highest left?
Patrice Colet - 06 32 66 03 57
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
Le dimanche 06 juin 2010 à 23:22 +0200, patko a écrit :
ok, so what is the difference between "screen" and "openGL coords" [gemmouse] isn't openGL?
With OpenGL, there is no function to manage the keyboard, the mouse, etc. You have to use an other API to manage the mouse which use (often) the higher left point for the mouse coords. ++
Jack
Patrice Colet - 06 32 66 03 57
----- "Jack" jack@rybn.org a écrit :
It is due to the OpenGL Standard. OpenGL coords start at the lower left and 'screen' coords start at higher left. ++
Jack
Le dimanche 06 juin 2010 à 22:29 +0200, patko a écrit :
hello, why [pix_crop] y is offsetting from the lower left, when
[gemmouse] (or logic) is starting from the highest left?
Patrice Colet - 06 32 66 03 57
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
On Sun, 6 Jun 2010, patko wrote:
hello, why [pix_crop] y is offsetting from the lower left, when [gemmouse] (or logic) is starting from the highest left?
For the same reason that GridFlow usually uses (y x) and sometimes (x y) : it's because of conflicting standards.
There's worse : if you've read books involving spherical coordinates, you'll see that there are perhaps at least five different conventions in concurrent use... varying according to whether latitude is signed or unsigned ("colatitude") and the six possible orderings of three variables. It's crazy.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801