Jit.pwindow

Joao Ferreira's icon

Joao Ferreira

9月 02 2024 | 8:54 午後

Hello,

How can I send mouse positions directly to a jit.pwindow, without using the mouse, as if I used jit.gl.handle?

Thank you. Best regards

Joao Ferreira

TFL's icon

TFL

9月 03 2024 | 9:23 午前

You could use the 11mouse external I guess.

However, if you want to trigger rotation, translation, zoom, as you would do with the mouse and jit.gl.handle, but programaticaly, I would better look into [jit.anim.drive].

Joao Ferreira's icon

Joao Ferreira

9月 04 2024 | 2:41 午後

Hello,

Thank you for your answer, unfortunately it seems very difficult to use 11mouse. Do you have some tutorial?

Best regards

Joao Ferreira

TFL's icon

TFL

9月 04 2024 | 2:54 午後

I actually never used 11mouse myself but the image in the link I posted is pretty self-explanatory.

What seem very difficult is to mimic the mouse gestures of someone using jit.gl.handle to manipulate a 3D shape. You need to get the size and position of your rendering window, move the cursor to a given position in that rendering window, press the button, hold your click, move the mouse, possibly with a modifier key pressed, then release the click. You can do all that with 11mouse (with the help of 11strokes if you want to simulate the modifier keys to translate and zoom).

That's a lot to figure out, and seems very unpractical. That's why I suggested the other approach of using jit.anim.drive instead. It's just a more practical way to rotate, translate and zoom objects.

Joao Ferreira's icon

Joao Ferreira

9月 05 2024 | 5:54 午前

Thank you,

I will try jit.anim.drive and see if enough easy to use.

Best regards