Adding jit.gl.handle to jit.gl.sketch in java

Lee's icon

Hi, not sure how to go about this using Java - anyone any experience of this or point me at the docs on how to link these objs together?

thx Lee

Lee's icon

Hi. Anyone know how to do this?

Rob Ramirez's icon

you can add a jit.gl.handle object to a context in java, and then query it's position and rotatexyz attributes every frame, and send those values to the jit.gl.sketch object.

Lee's icon

ah ok, i thought there maybe some way of linking outputs of objects to inputs of others (i.e. like plugging them together in max) rather than having to manually do this... thx

Rob Ramirez's icon

you can also enable auto_handle mode for gl.handle (handle.auto_handle=1;)
might work for your needs.