OPTICAL FLOW. 3D Rotation Help_Urgency, Desperation… Have most of it set up.

May 4, 2011 at 7:53am

OPTICAL FLOW. 3D Rotation Help_Urgency, Desperation… Have most of it set up.

I've been reviewing a lot of patches couple past days, and I can seem to make sense of using optical flow to connect to a jit.gl.handle in order to move a just a primitive 3D cube.

i have a patch set up with optical flow detecting left – right and up – down detection.
the movement goes from 0 – 1. and that can be detected,
but
how do i connect these to jit.gl.handle in order for it to link up???

thank you very much for your time.

attached is a screenshot and the patch…

[attachment=161223,2185]

Attachments:
  1. motionfinal.maxpat
#56845
May 4, 2011 at 10:01am

im really unsure how/where i detect the amount of L-R and U-D to sent to the jit.gl.handle

how do u send things to jit.gl.handle in order for something else besides the mouse to control the rotation or movement of the object???

#203771
May 4, 2011 at 10:03am

is it the inlets and outlets from the movementprocessing???

#203772
May 4, 2011 at 6:18pm

here is a patch that I have used in the past. it’s a bit messy and needs a lot of work, but it should point you in the right direction.

– Pasted Max Patch, click to expand. –
#203773
May 4, 2011 at 7:03pm

ummm ok this is a big n00b QUESTION but HOW do i get that code into maxmsp so i can see the patcher…

thank you so much

#203774
May 4, 2011 at 8:31pm
#203775

You must be logged in to reply to this topic.