Interacting by mouse on jitter Objects (i.e. select a sphere by clicking on it)

Jan 6, 2014 at 6:54am

Interacting by mouse on jitter Objects (i.e. select a sphere by clicking on it)

Hello,

I would like to have three spheres in a 3D view, connected 2-2 (connection = a line between the sphere), for example :
- sphere A is connected to B and C ;
- B connected to A and C ;
- C connected to A and B.

I would like to have connections visible only if the mouse is on one of the sphere, such as :
- if mouse is not on A, B or C, I just see the spheres
- if mouse is on A, I see the three spheres + B and C connections.

I would also like to have this made only in Max (no java or external langage used).

Do you think it’s possible ?

By the moment I used jit.gl.gridshape for the sphere, put in a jit.gl.render space. But I can’t find a way to “interact” with GL objects with the mouse.

Thank you !

#277520
Jan 6, 2014 at 10:01am

check the [jit.gl.picker] object.

#277548
Jan 7, 2014 at 1:07am

Thanks, perfect ! :)
I should be able to do what I want with that…

Bye

#277615

You must be logged in to reply to this topic.