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".

Reply via email to