Hi,
I want align two direction vectors(blue) to another two(red). The source and target vectors has same angle. They are all in 3d space ,not 2d.
How to get the transfrom matrix?
Thanks!
Calc two pairs vectors align matrix
3992 5 0-
- jerry7
- Member
- 663 posts
- Joined: 11月 2013
- Offline
-
- animatrix_
- Member
- 4901 posts
- Joined: 2月 2012
- Offline
matrix3 m = dihedral ( from1, to1 );
from1 *= m;
from2 *= m;
from1 *= m;
from2 *= m;
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]

-
- jerry7
- Member
- 663 posts
- Joined: 11月 2013
- Offline
-
- Aizatulin
- Member
- 502 posts
- Joined: 7月 2005
- Offline
-
- jerry7
- Member
- 663 posts
- Joined: 11月 2013
- Offline
-
- Aizatulin
- Member
- 502 posts
- Joined: 7月 2005
- Offline
Hi,
here is another example, where I used the orthogonal systems from two vectors (V,W):
V, VxW, Vx(VxW) which are defined, if V and W are not collinear.
So you can make the matrix from the system. I made some quick and dirty functions in VEX, but I would always replace them by standard functions, if exists and yes I hadn't used this forum for a long while, but if i am posting more, I will lose my Lurker status ^^.
here is another example, where I used the orthogonal systems from two vectors (V,W):
V, VxW, Vx(VxW) which are defined, if V and W are not collinear.
So you can make the matrix from the system. I made some quick and dirty functions in VEX, but I would always replace them by standard functions, if exists and yes I hadn't used this forum for a long while, but if i am posting more, I will lose my Lurker status ^^.
-
- Quick Links