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