Jump to content

Converting a matrix3 to euler


meshsmooth

Recommended Posts

In VOPS or VEX how do I Convert a matrix3 to a matrix 4... well what i really want to do is convert quaternion to Euler but this proves to be a non trivial affair. any ideas? it is being outputted to chops that is why the output is Euler.

14113[/snapback]

You might want to look at the cracktransform() function. Since you're also looking at quaternions, you might want to check out qconvert(), and quaternion().

Link to comment
Share on other sites

In the Help browser, go to Vex > Vex language reference > The Runtime Function Library.

But here's one VOP method:

- Append Quaternion to Matrix3 VOP

- Append Matrix3 to Float VOP

- Append Float to Matrix VOP. Be careful to wire them with all the correctly matching names. Basically, all the inputs that contain the number 4 should be left unwired.

- Append Extract Transform VOP

This would make a handy custom VOP subnet I guess unless there's an easier way ...

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