Forums > Jitter

Extract values to rotate the cube!!

June 22, 2010 | 8:37 pm

I am making a cube with a texture video and want it to run on all sides with
computer vision! I’ve been researching and what better way to do it was arranged with the object cv.jitHSflow.It output a matrix of two pair up and down and one to the left and right (red and green values visually move left and right and yellow, and blue values up and down) Now I want to use these figures to rotate the cube and then use an object "line" to soften the rotações. My problem is that i can´t extract the king of values that can allow me to play whit the cube and to do what i want!! Can somebody help me whit this?
I send my patch attach:
Thanks



MIB
June 23, 2010 | 1:44 am

I did some tests on something similar some time ago. this is what I came up with, with a lot of help form the forum.

You will have to change the jit.qt.grab back to jit.dx.grab since you seem to be on a windows machine…

– Pasted Max Patch, click to expand. –

June 23, 2010 | 2:26 am

Hi!!
Thanks a lot !!
Can you please tell me how to use this patcher ,made whit text of letters and numbers?



efe
June 23, 2010 | 5:20 am

open a new max patcher and copy and paste(!)


June 24, 2010 | 1:22 am

Hello!! MIB You are the greatest!! ; )

I just want to thank you for the help you gave me it was very important to me! I have been working hard but your patch was a gift to me. And even the cube can have difrent videos on their faces that was something that i wanted to do but didn´t know it was possible!
thanks very much
Tiago


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