Setting up Rotation Matrix
3114 2 1-
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
-
- jsmack
- Member
- 8177 posts
- Joined: Sept. 2011
- Offline
Are you trying to build the matrix from the normal and two basis vectors, which are not orthogonal?
You can try making orthogonal basis vectors with makebasis(), using the normal for the z-axis, and one of your other vectors that is not coaxial to the normal as the up-vector.
http://www.sidefx.com/docs/houdini/vex/functions/makebasis [www.sidefx.com]
Then it's just a matter of building the matrix from vectors, which you can do with the set() function or the vector to matrix3 vop.
You can try making orthogonal basis vectors with makebasis(), using the normal for the z-axis, and one of your other vectors that is not coaxial to the normal as the up-vector.
http://www.sidefx.com/docs/houdini/vex/functions/makebasis [www.sidefx.com]
Then it's just a matter of building the matrix from vectors, which you can do with the set() function or the vector to matrix3 vop.
-
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
-
- Quick Links

