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
4513 5 0-
- jerry7
- Member
- 680 posts
- Joined: 11月 2013
- オフライン
-
- animatrix_
- Member
- 5142 posts
- Joined: 2月 2012
- オフライン
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
- 680 posts
- Joined: 11月 2013
- オフライン
-
- Aizatulin
- Member
- 504 posts
- Joined: 7月 2005
- オフライン
-
- jerry7
- Member
- 680 posts
- Joined: 11月 2013
- オフライン
-
- Aizatulin
- Member
- 504 posts
- Joined: 7月 2005
- オフライン
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

