How can I have space coordinates of the point I'm clicking in jit.window ??

May 25, 2012 at 8:35pm

How can I have space coordinates of the point I'm clicking in jit.window ??

I want to be able to create object by clicking on the screen and I need coordinates in order to fire a message to my JS core to push a new object in an array + to instantiate that object on the screen.

For this, I need space coordinates

anyone?
I tried to work with jit.gl.handle, picker but they are object related so .. I may miss something..

#57428
May 25, 2012 at 9:14pm

hi! check out this thread: http://cycling74.com/forums/topic.php?id=39782, i was doing something quite simmilar. here is raw and dirty version done using jit.gen, for modifying jit.gl.multiple object positions

– Pasted Max Patch, click to expand. –
#205790
May 25, 2012 at 9:15pm

oh i think, i didnt understand you :)
sorry :)

#205791
May 25, 2012 at 9:25pm

Not sure what you need, but here is one way to get glworld coordinates:

– Pasted Max Patch, click to expand. –
#205792
May 25, 2012 at 9:32pm

I’m just a nerd who doesn’t know how to communicate :-0
indeed, it isn’t the thing I’m looking for :-/

I guess the best way will be to create an external helper (I mean external to that patch) and to proceed with it

#205793
May 25, 2012 at 9:34pm

@Ben thanks to you too for your answwer.

ok it works, it is what I need.
I didn’t get the mouse x y z message from the info outlet of jit.window :)

#205794

You must be logged in to reply to this topic.