Hi,
I think you wanted to write
rotPos.setQuart(0,qt1);
rotPos.setQuat(1,qt2);
and not
> rotPos.setQuart(0,qt1);
> rotPos.setQuat(0,qt2);
but anyway I think your problem can be fixed with two rotations of pi
radiants. I far as I know one rotation cannot work because the shortest way
from qt1 to qt2 on the four-dimensional union-sphere is taken. But I am
really not sure about that... Marco.
----- Original Message -----
From: Pascal Christian Fenkam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 22, 1999 2:49 PM
Subject: [JAVA3D] Using Quaternions and RotPosPathInterpolator
> Hi Folks !
>
> I�m trying to use the RotPosPathInterpolator to make an animation. The
> problem is that I can�t achive a complete rotation (2pi rad) using
> quaternions.
> I think the problem is due to the fact that the function to compute the
> quaternion of a rotation is pi-periodic. That means the quaternion of a
>
> rotation with angle alpha around an axis delta will be equal to the
> quaternion of the rotation with angle alpha+pi around the same axis.
>
> Does somebody has an idea of how to solve this problem?
>
> An example is, I have a function computing the quaternion of an euler
> sytem ( roll, pitch, yaw) named euler2quat, I want for example to make a
>
> 2pi rotation around the Y-axis. I would expect to do it like this:
>
> RotPosPathInterpolator rotPos= new RotPosPathInetrpolator();
> Quat4f qt1= euler2quat(0.0,0.0,0.0);
> Quat4f qt2= euler2quat(0.0,0.0,6.28);
> rotPos.setQuart(0,qt1);
> rotPos.setQuat(0,qt2);
>
> Actually this code will compute no rotation since my euler2Quat produce
> the same quaternion.
>
> Thnak you in advance.
>
> Pascal.
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".