To orient the cone, we have used the Point_At_Trans(X) transformation found in transforms.inc. It orients an object along the direction X. We have also used the #debug command to print out information about the clock to the messages window. See Povray documentation for more details on both of these.
To understand splines, please read "3.4.1.1 Understanding The Concept of Splines " in the Povray documentation (to find, look up splines in the index). In the example below we use a cubic spline although other types would also work. In the code, we create a spline, we draw spheres along the spline, and then we animate the cone along the spline. We have placed spheres along the spline path so that one can see the path.
This is the same as Example 2 except that we have made the camera follow the cone. The location of the camera is kept fixed but the look_at value is set to the location of the cone. We have also set the Banking and the Foresight of the cone to zero.
[top]
[Home]