Hier ein Beispiel für einen Animation. Als Clock wurde Werte zwischen 1/2*PI und 1,5*PI
ausgewählt. Dadurch lässt sich die Sinus Schwingung des pendel erzeugen.
Ergebnis:
#include "colors.inc"
global_settings { ambient_light color White }
object {
cylinder { < 0 , 0 , -1 >,< 0, 0 , 1 >,.1 texture { pigment { color Blue } } }
}
object {
box { < -.4 , .4 , -.4 >,< .4 , -5 , .4 >
texture {
pigment{ color Red }
finish { ambient 0.4 }
}
rotate<0, 0, sin(clock)*45>
}
}
camera { location <-1,-1,-6> look_at <0,-2,0> }
light_source { <-2,4,-4> color White}
[ 80x60, No AA]
Output_to_File=1
Buffer_Output=1
Buffer_Size=30
Output_File_Type=T
Output_File_Name=e:\Film\Film.tga
Initial_Frame=0
Final_Frame=180
Initial_Clock=1.57
Final_Clock=7.85
Width=80
Height=60
Antialias=Off