// ANIMATION 1000 //specifies the animation total time as 1 second #include "AutoClck.mcr" // thehours.pov // for compatibility with povray, ignore .inc files // also, when you are saving to a pov file, remember to put "#include "shapes.inc"" on header #include "shapes.inc" #include "thehours-anim-declare.pov" camera { location <0, 0, 10> look_at <0, 0, 0> right <0, 1.33, 0> up <0, 1, 0> // note that camera coordinate system is scaling, not the world coordinate system scale <1, 1, 1> rotate <0, 45, 0> scale From (0, <2, 2, 2>) Using ( "", 1, 1, "") To (0.5, <1, 1, 1>) scale From (0.5, <1, 1, 1>) Using ( "", 1, 1, "") To (1, <2, 2, 2>) } // create a regular point light source light_source { <10 ,0, 10> color rgb <1,1,1> // white light } union { object { myclock } object { clock_hour rotate <0, 0, -80> } object { clock_minute rotate <0, 0, 40> } object { clock_second rotate <0, 0, 65> } translate <5, 0, 0> } union { object { myclock } object { clock_hour rotate <0, 0, 80> } object { clock_minute rotate <0, 0, -40> } object { clock_second rotate <0, 0, 165> } translate <-5, 0, 0> } union { object { myclock } object { clock_hour rotate <0, 0, 130> } object { clock_minute rotate <0, 0, -124> } object { clock_second rotate <0, 0, -65> } translate <-15, 0, 0> } union { object { myclock } object { clock_hour rotate <0, 0, 30> } object { clock_minute rotate <0, 0, 140> } object { clock_second rotate <0, 0, 165> } translate <-25, 0, 0> } cylinder { <50, 5, 0>, <-50, 5, 0>, 0.1 pigment {color rgb <1, 1, 0>} // yellow translate From (0, <0, 0, 0>) Using ("A", 1, 1, "") To (1, <0, -10, 0>) } cylinder { <50, -5, 0>, <-50, -5, 0>, 0.1 pigment {color rgb <1, 1, 0>} // yellow // two animation translates are inverse of each other, which cause the object not to move translate From (0.5, <0, 0, 0>) Using ("", 1, 1, "") To (1, <0, -10, 0>) translate From (0.5, <0, 0, 0>) Using ("", 1, 1, "") To (1, <0, 10, 0>) }