home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / scenes / animate / clockd.pov
Encoding:
Text File  |  2000-04-06  |  726 b   |  28 lines

  1. // Persistence of Vision Ray Tracer POV-Ray 3.1 Sample Scene
  2. // by Chris Young
  3. // CLOCKD.POV demonstrates basic use of the clock_delta identifier.
  4. // Run this scene with various start & end clock values or frames.  
  5.  
  6. #include "colors.inc"
  7.  
  8. light_source { <100,1000,-1000>, White}
  9.  
  10. camera { location <0,1,-16> direction 2*z look_at <0,1,0>}
  11.  
  12. union{
  13.  cylinder{0,z,2 pigment{radial color_map{[0.5 Green][0.5 Cyan]} frequency 12 rotate x*90}}
  14.  cone{0,0.25,y*2,0 pigment{Blue} rotate -z*clock*360}
  15.  translate y*3
  16. }
  17.  
  18. text{ttf "timrom.ttf" concat("clock_delta=",str(clock_delta,8,4)),0.1,0 
  19.  pigment{Red}
  20.  translate -5*x
  21. }
  22.  
  23. union { 
  24.  plane{y,-2} plane{-z,-10} plane{x,-10}
  25.  pigment{checker Cyan,Yellow}
  26. }
  27.  
  28.