- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Balises:
- Intel® RealSense™ Technology
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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!
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
> 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 ;)

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable