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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Demonstrates various new float math functions.
  3. // Animate this scene with clock values +ki0.0 to +kf1.0
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #declare F = clock*10-5
  9. #declare G = floor(F)
  10. #declare H = ceil(F)
  11. #declare I = int(F)
  12. #declare J = abs(F)
  13.  
  14. #include "colors.inc"
  15.  
  16. #declare Rad=1/3
  17. #declare TFudge=<-6,0,0.2>
  18. #declare Font="cyrvetic.ttf"
  19.  
  20. camera {
  21.    location  <0, 0, -120>
  22.    direction <0, 0,  12>
  23.    look_at   <0, 0,   0>
  24. }
  25.  
  26. light_source { <5000, 10000, -20000> color White}
  27. plane { z, Rad pigment {checker color rgb <1,.8,.8> color rgb <1,1,.8>}}
  28.  
  29. union{
  30.  text{ttf Font concat("F=clock*10-5=",str(F,0,2)),0.1,0 translate TFudge}
  31.  sphere {<F,-0.5,0>,Rad}
  32.  pigment{Red} translate 4*y
  33. }
  34.  
  35. union{
  36.  text{ttf Font concat("G=floor(F)=",str(G,0,2)),0.1,0 translate TFudge}
  37.  sphere {<G,-0.5,0>,Rad}
  38.  pigment{Green} translate 2*y
  39. }
  40.  
  41. union{
  42.  text{ttf Font concat("H=ceil(F)=",str(H,0,2)),0.1,0 translate TFudge}
  43.  sphere {<H,-0.5,0>,Rad}
  44.  pigment{Blue} translate 0*y
  45. }
  46.  
  47. union{
  48.  text{ttf Font concat("I=int(F)",str(I,0,2)),0.1,0 translate TFudge}
  49.  sphere {<I,-0.5,0>,Rad}
  50.  pigment{Cyan} translate -2*y
  51. }
  52.  
  53. union{
  54.  text{ttf Font concat("J=abs(F)=",str(J,0,2)),0.1,0 translate TFudge}
  55.  sphere {<J,-0.5,0>,Rad}
  56.  pigment{Magenta} translate -4*y
  57. }
  58.  
  59.