[Papervision3D] camera - strange movement

grizu grizuuu at gmx.at
Fri Jun 5 08:16:08 PDT 2009


Hello!

I'm sorry, I know there are a lot of topics on quaternion cameras, but I
could not find a solution.
I try to make a simple camera, which follows a target, rotating free on all
three axes.

This is my code - in the render loop:

var qStart : Quaternion = Quaternion.createFromMatrix (this.transform);
var qEnd : Quaternion = Quaternion.createFromMatrix (_targetDo3d.transform);
			
var qAct : Quaternion = Quaternion.slerp (qStart, qEnd, EASING);
			
this.transform.copy3x3 (qAct.matrix);
			
copyPosition (_targetDo3d);
moveBackward (_distance);


It was working, I was really happy :) - until now... I don't know why, but
sometimes I get some really strange camera movements, for example the camera
is not performing all rotations any more, distance to my target gets bigger,
etc.

Maybe something needs to be updated first in the transform of my target? or
of the camera?
I tried to render befor calling this function, but it did not help.
Thanks in advance for any help!

Chris


-- 
View this message in context: http://www.nabble.com/camera---strange-movement-tp23890185p23890185.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list