B.Walters Posted November 18, 2006 Share Posted November 18, 2006 How can I take a transformation matrix and turn that into a vector? E.g. How can I figure out what direction (expressed as a vector) my camera is pointing in? Quote Link to comment Share on other sites More sharing options...
Jens Posted November 18, 2006 Share Posted November 18, 2006 How can I take a transformation matrix and turn that into a vector?E.g. How can I figure out what direction (expressed as a vector) my camera is pointing in? I think the default direction of a camera is the -z direction. So your initial vector should be (0,0,-1). If your transformation matrix is of type 4 x 4 there exists an 'extract transform' VOP and all you should have to do is multiply the rotation matrix you get from this with your vector (0,0,-1). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.