home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / anim / scurve2 / scurvb.pov < prev   
Text File  |  1997-12-12  |  807b  |  38 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dan Farmer
  3. // Smooth camera motion demonstration using SCurve function
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. #declare T = clock
  11.  
  12. // This S-Curve function gives a nice fade-in/fade-out blend
  13. #declare SCurve = (T*T) * (3-(2*T))
  14.  
  15. camera {
  16.     location <0.3, 0.75, -(5 + (10 * SCurve)) >
  17.     up y
  18.     right x*1.3333
  19.     direction z
  20.     look_at <0.3, 0, 0>
  21.     #if(clock = 1)
  22.         rotate  -y*90
  23.     #end
  24. }
  25.  
  26. background { Gray40 }
  27. light_source { <0, 20, -25> rgb 1 }
  28.  
  29. plane { y, 0  pigment { Plum }}
  30.  
  31. sphere { <0, 0.4, 0>, 0.4
  32. //     translate -y*1.8
  33. //     rotate z * ((140 * SCurve) - 70)
  34. //     translate y*1.8
  35.     pigment { MandarinOrange }
  36.     finish { specular 1 roughness 0.015 diffuse 0.85 }
  37. }
  38.