MPM | Deformation gradient F to orientation

   993   2   0
User Avatar
Member
614 posts
Joined: 11月 2005
オフライン
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
User Avatar
Member
5143 posts
Joined: 2月 2012
オンライン
Hi Martin,

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]
User Avatar
Member
614 posts
Joined: 11月 2005
オフライン
thank You, as always a helping hand
Edited by sanostol - 2025年4月17日 05:59:13
  • Quick Links