Hello,
how can I extract only the orientation from this matrix , without shear and scale? The quaternion function seems not to ignore the scales and shears that are stored in the matrix and this leads to different rotations.
I get strange mblur result when I try te calclate the w attribute from this.
thanks
Martin
MPM | Deformation gradient F to orientation
993 2 0-
- sanostol
- Member
- 614 posts
- Joined: 11月 2005
- オフライン
-
- animatrix_
- Member
- 5143 posts
- Joined: 2月 2012
- オンライン
Hi Martin,
You can do this using the polardecomp [www.sidefx.com] VEX function:
You can do this using the polardecomp [www.sidefx.com] VEX function:
matrix3 R, S; polardecomp ( F, R, S ); vector4 q = quaternion ( R );
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- sanostol
- Member
- 614 posts
- Joined: 11月 2005
- オフライン
-
- Quick Links

