home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / CLOCKMOD.ZIP / ANIM2.POV < prev    next >
Encoding:
Text File  |  1997-06-24  |  967 b   |  29 lines

  1. // CLOCK MODIFIER: EXAMPLE ANIMATION 2
  2. // ***********************************
  3. // This animation shows how the modified clock can be used to
  4. // scale, rotate, and translate objects in various ways.
  5.  
  6. // CAMERA AND LIGHTS
  7.    camera {location <0, 0, -20> look_at <0, 0, 0> angle 40}
  8.    light_source {<50, 50, -50> rgb 1}
  9.  
  10. // PULSATING LEFT SPHERE
  11.    sphere {<0, 0, 0>, 1
  12.       pigment {rgb <1, .4, .7>} finish {phong .5}
  13.       #declare clock_type = "Triangle" #include "ClockMod.inc"
  14.       scale .5 + mclock
  15.       translate -x * 4}
  16.  
  17. // BOUNCING MIDDLE SPHERE
  18.    sphere {<0, -3, 0>, .5
  19.       pigment {rgb <.2, 1, .3>} finish {phong .5}
  20.       #declare clock_type = "Bounce" #include "ClockMod.inc"
  21.       translate y * mclock * 6}
  22.  
  23. // ROTATING RIGHT CONE
  24.    cone {-y, .5, y * 2, 0
  25.       pigment {rgb <1, .5, 0>} finish {phong .5}
  26.       #declare clock_type = "Oscillate" #include "ClockMod.inc"
  27.       rotate z * mclock * 90
  28.       translate x * 4}
  29.