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

Apr 23, 2012 at 10:54am

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

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

#63156
Apr 23, 2012 at 5:57pm

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

#227884
Apr 23, 2012 at 8:37pm

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

#227885
Apr 24, 2012 at 10:38am
– Pasted Max Patch, click to expand. –
#227886
Apr 26, 2012 at 10:13am

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?

#227887
Apr 29, 2012 at 10:27am

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

– Pasted Max Patch, click to expand. –
#227888
Apr 29, 2012 at 11:27am

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)…?

#227889
Apr 30, 2012 at 8:11am

check autohandle patch in jit.gl.handle :)

#227890
May 5, 2012 at 9:03am

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!!!

#227891
May 24, 2012 at 11:15pm

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.

#227892

You must be logged in to reply to this topic.