// ==== POV-Ray Includes ==== #include "colors.inc" #include "transforms.inc" #include "car.inc" camera { location <0.0, 5.0, -10.0> look_at <0.0, 1.0, 0.0> } light_source { <5.0, 20.0, -15.0> 2*White } // The ground. plane { y, -0.1 pigment { Blue } } // Define the spline. #declare MySpline = spline { linear_spline 0, <5,0,0> .1, <3,0,-4> .2, <0,0,-4> .3, <-3,0,-4> .4, <-5,0,0> .5, <-3,0,4> .6, <0,0,4> .8, <3,0,4> 1., <5,0,0> } // Draw squashed spheres along spline path. #declare myrad = 1; sphere_sweep { linear_spline 9 //<3,0,4>, myrad <5,0,0>, myrad <3,0,-4> , myrad <0,0,-4> , myrad <-3,0,-4> , myrad <-5,0,0> , myrad <-3,0,4>, myrad <0,0,4>, myrad <3,0,4>, myrad <5,0,0>, myrad // <3,0,-4> , myrad pigment { color Yellow } scale <1,.2,1> } // have car follow along the spline object { car scale .4 rotate -90*y translate .4*y Spline_Trans(MySpline, clock, y, 0.1, 0.01) }