Calculate face direction from bvh or 3d skeleton data - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Graphics & Audio Programming (/forum-9.html) +--- Thread: Calculate face direction from bvh or 3d skeleton data (/thread-10619.html) Calculate face direction from bvh or 3d skeleton data - harisz - May 28, 2013 11:59 AM Hi, i have a 3d skeleton with Head joint and neck joint , and i want to caculate where the face is looking at. Face direction vector. Any ideas? thanks RE: Calculate face direction from bvh or 3d skeleton data - OneSadCookie - May 28, 2013 06:19 PM take the Z column of the matrix? RE: Calculate face direction from bvh or 3d skeleton data - harisz - May 29, 2013 10:33 AM I have Rx=-13, Ry=-3, Rz=4 for the rotations of the head in local cordinates. Do you mean that i should calculate the transformation matrixes for all axes and multiply them to create R=Rx*Ry*Rz and take the 3rd column of matrix R? Thanks RE: Calculate face direction from bvh or 3d skeleton data - OneSadCookie - May 29, 2013 10:50 AM Once you've turned the bones into matrices and multiplied them all together to get the final matrix for the transformation of the head, one of the columns of the matrix will represent the head's direction.