I'm creating a quaternion from an @N and @up vector by converting it first to a matrix with the `quaternion(maketransform(@N, @up))` expression. However, the result is different when I put it into a copy to points sop. I've added a hip file, would be thankful if you could give me some advice.
With N and Up:
With orient:
Hip File is attached
Up and N different result then orient with maketransform
2761 5 0- schiho
- Member
- 101 posts
- Joined: Dec. 2012
- Offline
- probiner
- Member
- 339 posts
- Joined: June 2013
- Online
- schiho
- Member
- 101 posts
- Joined: Dec. 2012
- Offline
- probiner
- Member
- 339 posts
- Joined: June 2013
- Online
lookat() makes orthonormal matrices (normalized, perpendicular axes), I also use it instead of the cross product precisely because of the situations you mentioned, because it always returns something. The only drawback is requiring you to negate the forward axis. Which is not consistent with other functions.
Edited by probiner - May 15, 2019 05:54:52
- schiho
- Member
- 101 posts
- Joined: Dec. 2012
- Offline
Yeah the negation might cause trouble, especially in my case if i need to export the transforms to a third party application, but so far it works. Wish maketransform would behave as expected. Btw can you share you hip and in your previous comment you have a type ‘missing comma’ fix that for other readers?
Thanks
Thanks
- probiner
- Member
- 339 posts
- Joined: June 2013
- Online
-
- Quick Links