Advertisement

Slerp I'm I using i correctly

Started by April 10, 2001 06:00 AM
-1 comments, last by Kestrel 23 years, 7 months ago
Ok I''m trying to figure out how to use Slerp rotations. I have it working except for one major problem. It doesn''t work unless I''m looking down the Z axis. If I rotate the view then use my Slerp function to bring my target in to view, the camera either rotates to much or not enough. I figure the problem is in how I''m setting up my arguments. first I make an axis angle for the rotation I want to make. Turn that into a quaternion=q1 A quaternion for my current view=q2 some small number for t and one quaternion for the result=q3 and I pass that to the Slerp function. then set my view equal to q3 I keep call it with the same unchanged quaternions q1 and q2

This topic is closed to new replies.

Advertisement