Jump to content

Transformation Matrix To Vector


B.Walters

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...