- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need show the phalange of thumb finger.
I have rotation value (Quaternion) for joints see attached picture. But my graphics 3D engine (Ogre3D) allow set the graphics object only by position of center and rotation.
Center position of phalange I getting so:
thumbPhalanget->setPosition( (JointA.x+JointB.x)/2, (JointA.y+JointB.y)/2, (JointA.z+JointB.z)/2 );
Question: But how to get the rotation in center of phalange? In other words, how get quaternion for center phalange if I have quaternions of joints?
thumbPhalanget->setRotation( ? );
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Qualification: The Havok Physics engine allow set objects position in same maner by set position central point and set rotation. Therefore this question is actual non only for Ogre3D engine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found the solution, but I not test it yet. http://lolengine.net/blog/2013/09/18/beautiful-maths-quaternion-from-vectors
This solution uses coordinates of joint for getting the quaternion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The rotation value of "thumb joint B" is the rotation of the bone between "thumb joint A" and "thumb joint B". Please let me know if you still have issue. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> David Lu (Intel)
Thanks, you are right. I did not understand it, because I was confused with convert the RealSense world coordinate to Ogre3D world coordinate. For now I start understanding ;)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page