I can't understand something about maketransform VEX function in docs.

   1415   1   0
User Avatar
Member
7 posts
Joined: Dec. 2017
Offline
http://houdinihelp.ru/vex/functions/maketransform [houdinihelp.ru]

“The vectors passed in are not normalized meaning that scales should be preserved in construction of the transform.”

What does this means?
User Avatar
Member
192 posts
Joined: Nov. 2008
Offline
hi garry. if non-normalized vectors are used to build a matrix ie

vector n_n = { 0.5, 0.5, 0 };
vector n_up = { 0.5, 0, 1 };
mtx = maketransform(n_n, n_up);

the non-one length of the vectors will result in a scale effect of the matrix in addition to the rotation. since the lengths of these vectors are not the same, this results in a shear.

normalizing the vectors results in a rotation-only matrix.

here's an example showing the effect

Attachments:
bb_build_a_matrix_and_rotate.hip (111.8 KB)

  • Quick Links