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
3373 5 0- jerry7
- Member
- 617 posts
- Joined: Nov. 2013
- Offline
- animatrix_
- Member
- 4458 posts
- Joined: Feb. 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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- jerry7
- Member
- 617 posts
- Joined: Nov. 2013
- Offline
- Aizatulin
- Member
- 470 posts
- Joined: July 2005
- Offline
- jerry7
- Member
- 617 posts
- Joined: Nov. 2013
- Offline
- Aizatulin
- Member
- 470 posts
- Joined: July 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