Forums > Jitter

Using cv.jit.faces to control camera

October 8, 2011 | 5:08 am

i’m trying to combine zachary seldess’ version of faces and 3d rotation (patch at the bottom- ) with camera controls…

i’m a bit stuck… should i link them?


  1. ScreenShot20111008at12.03.35AM.png


October 8, 2011 | 6:34 pm

Hi synthaswinger,

What are you trying to do? That patch already had "camera controls" of a sort, so if you could be a bit more specific I might be able to help.


October 8, 2011 | 8:20 pm

I am trying to have the camera move the same way for using 3d objects but with image plane/depth map…i’m also trying to find a way to be able to set the camera axis at 0 at any given angle to use different angles for rotating.

i just threw your patch into this one without even taking any stupid leaps. i’d like to do it right. do i need to convert to char to use faces?
thankyou very much,

— Pasted Max Patch, click to expand. —
October 8, 2011 | 8:35 pm

If you want to use the depth matrix from the kinect in tandem with cv.jit.faces for what you describe, I’d recommend grabbing the center coordinate of the face (see [p getCenterCoords]) and looking up the depth value for that coordinate in the depth matrix (see the tutorials on how to look up cell values in a jit.matrix). You can use that depth value in the right inlet of [p z.3Dportocar].

Setting the camera axis at 0 at any given angle is just a matter of modifying the azimuth and elevation values going into the 1st two inlets of [p z.3Dpoltocar] (translation via addition or subtraction, etc.). This assumes you want an up vector of 0. 1. 0. (the default). If not, you shouldn’t use my poltocar solution.


October 11, 2011 | 3:09 pm

From your screen shot it looks like your Quat objects aren’t installed properly. Do you have the cosm objects installed?

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

Forums > Jitter