jit.anim.drive active turn message when mouse on window ?
is it possible to automatically affect the "turn" message with jit.anim.drive when mouse on window ?
(according that mouse is mapped in the internal dictionnary )
-> to be clear, it turn when i CLIK and move my mouse on the window but i want that it turn when my mouse is on without cliking
sure thing. check out the "Discussion" section of the anim.drive reference for more info on formatting the ui-dict to animate using the mouse.
you simply want to double-click the anim.drive to open the ui mapping dictionary, and change the mouse commands to mouse_v and mouse_h (instead of mouse_down_*). the mapping will be saved when you save the patch.
Thanks for your reply,
so can you give me advice on what im trying to do.
I want to create a movement of camera based on video games and the first person view.
-- given limit position on X and Z axis, Y will stay the same
--when i "look" around me , get a good orientation of the camera
you will want to enable @tripod mode on your jit.gl.camera for a first-person type view.
if you attach your jit.gl.camera to an external jit.anim.node, you get the ability to lock position transformations from anim.drive, on a specific plane. eg, if you set @lockplane 2 (y-plane) any animations along the y-axis will be zeroed out.
also check out the following example, for a more advanced camera animation technique:
Max6/examples/jitter-examples/render/anim/anim.camera.advanced.maxpat
New to jitter world so please bare with me as i alter the patch already pasted in this forum...i would like to, if possible, be able to change the parameters within an attrui inspector, here specifically the position. How do i alter each 3 parameters individually?
you want the pak (or pack) object. study the help files to learn their use.
please make sure you understand the difference between integers and floats (and how providing an integer argument turns the output into an integer, even if you send the input floats).
Rob,
Thank you for your help! i was looking at the attrui help file to guide me but apparently i was looking at the wrong thing.