Forums > Jitter

moving more than one 3d object using jit.gl.handle

April 23, 2012 | 10:54 am

Hi!
I’m making a 3D interface in a window with a cube and a sphere inside. I would like to move these two figures using the the jit.gl.handle. The problem is that the handle function controls the movement of only one object.
I don’t know how to solve this.
Any ideas?
Thanks


April 23, 2012 | 5:57 pm

perhaps connecting the jit.gl.handle to both objects?


April 23, 2012 | 8:37 pm

I’ve already tried your solution but it doesn’t work.
Thank you anyway


April 24, 2012 | 10:38 am
– Pasted Max Patch, click to expand. –

April 26, 2012 | 10:13 am

I don’t explained my problem clearly.
I want to control the move of a single object separately.
If i move one object, the other one must stay fixed.
Do you have any suggestions?


April 29, 2012 | 10:27 am

just connect ji.gl.handle to that object :)

– Pasted Max Patch, click to expand. –

April 29, 2012 | 11:27 am

And how do you control the other one? Let’s say first you want to rotate the left hand sphere (without rotating the right hand one) and afterwards you want to rotate the right hand sphere (without rotating the left hand one)…?


April 30, 2012 | 8:11 am

check autohandle patch in jit.gl.handle :)


May 5, 2012 | 9:03 am

I solved the problem using a gswitch2. I’ve connetcted the jit.gl.handle object to the gswitch2 and i’ve created two buttons to choose which object i want to move. And then in this way.. it works!!!


May 24, 2012 | 11:15 pm

I’m interested by that for a dynamic number of objects.
In my case, I cannot use gswitch2 solution because there is a huge number of objects instantiated using Javascript.

would I have to dynamically create & connect one jit.gl.handle … per object …?? sounds crazy.


Viewing 10 posts - 1 through 10 (of 10 total)