Hello list,
What´s for the inlet of Gemmouse object?
Thanks.
Carlos Caires
som e imagem wrote:
Hello list,
What´s for the inlet of Gemmouse object?
for historical reasons :-)
the Gem-framework makes it a bit complicated to create objects without inlets.
mfg.ad.r IOhannes
Thanks.
Carlos Caires
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi, Is there a way to use several GEMMOUSE objects on the same GemWin?
(For instance, I' d like to move separetly more than one [square] object, using the mouse).
Thanks, Carlos Caires
De: IOhannes m zmoelnig [mailto:zmoelnig@iem.at] Date: ven. 17/02/2006 20:04 À: Carlos Caires Cc: pd-list@iem.at Objet : Re: [PD] Gemmouse inlet?
som e imagem wrote:
Hello list,
What´s for the inlet of Gemmouse object?
for historical reasons :-)
the Gem-framework makes it a bit complicated to create objects without inlets.
mfg.ad.r IOhannes
Thanks.
Carlos Caires
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Quoting Carlos Caires ccaires@porto.ucp.pt:
Hi, Is there a way to use several GEMMOUSE objects on the same GemWin?
(For instance, I' d like to move separetly more than one [square] object, using the mouse).
hmm, i don't think i understand your question. nobody keeps you from trying adding several [gemmouse] objects to your patch, however, they will all report the coordinates of your primary system pointer within the gem-window. so the output will be the same. just like connecting [gemmouse] to [send] and putting in various [receive]s.
mfg.a.sdr IOhannes
Hi Carlos,
If I get what your doing you want to be able to use the gemhouse to drag around multiple squares on the screen right? I have done this, if you REALLY want it I can try and find the patch..
basically each square is in its own abstraction, and the abstraction knows how bit the square is in gem units. [square 1] is 1 unit from the center to the edges, so its actually 2 units wide. Then you convert the gemmouse coords into gem coords (depends on the aspect ratio of the window), then pack the scaled version and send it to all the abstractions. inside each square you have moses or >= objects to check if the mouse is indeed in the square, then that controls a spigot so when the mouse is over the square the square will move with the mouse. Oh of course you should use that value and the mouse-press together with [&&] otherwise you'll collect all the squares as you pass over them...
Its simpler than it sounds...
.b.
Carlos Caires wrote:
Hi, Is there a way to use several GEMMOUSE objects on the same GemWin?
(For instance, I' d like to move separetly more than one [square] object, using the mouse).
Thanks, Carlos Caires
De: IOhannes m zmoelnig [mailto:zmoelnig@iem.at] Date: ven. 17/02/2006 20:04 À: Carlos Caires Cc: pd-list@iem.at Objet : Re: [PD] Gemmouse inlet?
som e imagem wrote:
Hello list,
What´s for the inlet of Gemmouse object?
for historical reasons :-)
the Gem-framework makes it a bit complicated to create objects without inlets.
mfg.ad.r IOhannes
Thanks.
Carlos Caires
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Dear Carlos,
You cannot have more than one gemmouse object, or even if you can they will output the same values. But I suspect that is not what you want - you want the mouse pointer to be able to pick up different objects depending on where it is clicked. The trick is to know where your objects are, both in 3D space and in the 2D representation. Then you set up the output of [gemmouse] to work on different objects depending on where it is clicked.
You will need to use trigonometry to work out where the 3D virtual space corresponds to your 2D space, so that when you click on the gem window, the patch finds the nearest object in 2D that may not be the nearest in 3D. For example, suppose we have two objects in the gemwindow, one at x=y=0, z=8 and another at x=y=2, z=0. at mouse position 0, 0 the first object is closer in 2D, but the other object is closer in 3D and if you were to only move the closest object in 3D, some objects would be immovable. So, basically you have to use Pythagoras' theorem, in order to work out which object is nearest the mouse on the screen when the button is clicked. It's a bit tricky, but after all, you only have one mouse!
By the way, did you mean to send this directly to me? Best, Ed
res ccaires@porto.ucp.pt wrote: Hi, Is there a way to use several GEMMOUSE objects on the same GemWin?
(For instance, I' d like to move separetly more than one [square] object, using the mouse).
Thanks, Carlos Caires
De: IOhannes m zmoelnig [mailto:zmoelnig@iem.at] Date: ven. 17/02/2006 20:04 Ã: Carlos Caires Cc: pd-list@iem.at Objet : Re: [PD] Gemmouse inlet?
som e imagem wrote:
Hello list,
WhatŽs for the inlet of Gemmouse object?
for historical reasons :-)
the Gem-framework makes it a bit complicated to create objects without inlets.
mfg.ad.r IOhannes
Thanks.
Carlos Caires
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-> -> --> ---> -----> --------> -------------> --------------------->
"Genius is attention to detail" Louis Pasteur