iDevGames Forums

Full Version: Calculate face direction from bvh or 3d skeleton data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
take the Z column of the matrix?
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
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.
Reference URL's