
TVPath.CameraSpline( fTime As Single, Delta As Single)
Moves the camera along the spline. Very good for demo or non-interactive scenes.
Arguments :
fTime Time on the spline (in node), can be between 1 and TVPath.getNodeCount()
Delta Delta is the difference of path time between camera position and camera lookat (see remark)
Remark:
The camera spline functions actually uses twice the GetSplinePoint functions, to return :
. The camera position (GetSplinePoint(fTime))
. The camera lookat point (GetSplinePoint(fTime + Delta))
This is a TV6.3 example
Code Sample :
//Add 3 nodes to 3 diffrent positions.
TVPath.AddPathNode(Vector3(14,2,42))
TVPath.AddPathNode(Vector3(35,124,64))
TVPath.AddPathNode(Vector3(32,34,12))
// typical game loop for demo
Do
Doevents
TV.Clear
RenderAll()
TV.RenderToScreen
Time = Time + TV.AccurateTimeElapsed * 0.002
TVpath.CameraSpline Time, 1
Loop
Also read this thread it talks about some changes in TV65.
http://www.truevision3d.com/forums/tv3d_sdk_65/camera_path_command-t10130.0.html;msg70999#msg70999