home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / anim / wheel / wheel.pov < prev   
Text File  |  1997-12-12  |  2KB  |  54 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3. //
  4. // This small animation shows the advantage of being able to create
  5. // cyclic animations using the +KC command line switch or the
  6. // equivalent INI-file setting.
  7. //
  8. // Trace this animation with and without the cyclic animation option
  9. // to see the difference. Without the cyclic animation flag set the
  10. // first and the last frames are the same.
  11. //
  12.  
  13. #version 3.0
  14. global_settings { assumed_gamma 2.2 }
  15.  
  16. camera {
  17.   location <0, 0, -100>
  18.   look_at <0, 0, 0>
  19.   angle 46
  20. }
  21.  
  22. #declare Wheel_Texture = texture {
  23.   pigment { color rgb<1, 0.2, 0.2> }
  24.   normal { radial 2 frequency 72 scallop_wave }
  25. }
  26. #declare Spoke_Texture = texture {
  27.   pigment { color rgb<1, 0.2, 0.2> }
  28. }
  29.  
  30. #declare Wheel = union {
  31.   torus { 20, 2 texture { Wheel_Texture } rotate 90*x }
  32.   cylinder { <0, 0, -1.25> <0, 0, 0>, 5
  33.      pigment { rgb 0.75 }
  34.      normal { radial 2 frequency 12 scallop_wave rotate 90*x }
  35.   }
  36.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate   0*z texture { Spoke_Texture } }
  37.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate  30*z texture { Spoke_Texture } }
  38.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate  60*z texture { Spoke_Texture } }
  39.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate  90*z texture { Spoke_Texture } }
  40.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate 120*z texture { Spoke_Texture } }
  41.   cylinder { <-20, 0, 0>, <20, 0, 0>, 1 rotate 150*z texture { Spoke_Texture } }
  42. }
  43.  
  44. object {
  45.   Wheel
  46.   rotate 30*clock*z
  47.   translate -10*z
  48. }
  49.  
  50. plane { z, 0 pigment { color rgb<0.2, 1, 0.2> } }
  51.  
  52. light_source { <100, 100, -100> color rgb<1, 1, 1> }
  53.  
  54.