Forums > MaxMSP

jit.anim.drive active turn message when mouse on window ?

February 20, 2013 | 3:31 pm

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


February 20, 2013 | 4:23 pm

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.

– Pasted Max Patch, click to expand. –

February 20, 2013 | 5:16 pm

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

– Pasted Max Patch, click to expand. –

February 21, 2013 | 10:34 pm

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.

– Pasted Max Patch, click to expand. –

February 21, 2013 | 10:39 pm

also check out the following example, for a more advanced camera animation technique:
Max6/examples/jitter-examples/render/anim/anim.camera.advanced.maxpat


February 22, 2013 | 3:10 am

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?

– Pasted Max Patch, click to expand. –

February 25, 2013 | 7:54 pm

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).

– Pasted Max Patch, click to expand. –

February 26, 2013 | 2:45 am

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.


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