smoothly interpolating positions/rotations -- hermite preferably..

Blitz3D Forums/Blitz3D Programming/smoothly interpolating positions/rotations -- hermite preferably..

drake - This is the code you found (in the archives) yeah?

http://www.blitzbasic.com/codearcs/codearcs.php?code=651

To make this a constant speed is easy. Since its already a constant speed. the line is 1 unit long (0 being the start, 1 being the end) so you just use a constant value to get the position of the camera (the same way the points are drawn.

 st#=0.01
 mu=0.0

 Repeat

  Bezier4 p,ve(0),ve(1),ve(2),ve(3),mu ;Only 4 Points

  ;Bezier p,mu  ;All Points

  Plot3D p

  mu=mu+st
  If mu>1.0 Then Exit
 Forever


stu is the step unit so you just increase or decrease that value to speed up or slow down the camera position