Forums > Jitter

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

January 6, 2014 | 6:54 am

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 !


January 6, 2014 | 10:01 am

check the [jit.gl.picker] object.


January 7, 2014 | 1:07 am

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

Bye


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