hi,
guys my question is how can we get the orientation vectors of a mesh in 3D (i.e how can we know which its facing)?
2. Wat exactly is gimbal lock ?
Thanks............:yes:
Orientation vectors of Mesh
Started by i_robot, Oct 18 2006 03:27 PM
3 replies to this topic
#1
Posted 18 October 2006 - 03:27 PM
#2
Posted 18 October 2006 - 03:38 PM
1. You have to know which way the mesh is facing in its original, local coordinate system. Then you just multiply that vector with the local-to-world transformation to get the facing direction in world coordinates.
2. Google (and correct spelling) is your friend.
2. Google (and correct spelling) is your friend.
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 19 October 2006 - 10:17 AM
Thanx,.. i've solved the problem now .
#4
Posted 24 October 2006 - 12:02 AM
Just a FYI if you haven’t stumbled upon this in your solution. If you use rotation matrices, each row (or column depending on how you order them) contains the direction vector. So the first row contains the X-axis vector, second row contains the Y-axis vector, and the third row contains the Z-axis vector, which is also the object direction vector. You just need to extract that row and voila.
This is a technique most commonly learned and used when you develop a “look at” feature for cameras or objects.
This is a technique most commonly learned and used when you develop a “look at” feature for cameras or objects.
http://www.nutty.ca - Being a nut has its advantages.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












