home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / surfaces / warp2.pov < prev    next >
Text File  |  1997-12-12  |  931b  |  53 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Texture warp example
  3.  
  4. #version 3
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera { 
  11.   location <0,3,-29>
  12.   direction 3*z
  13.  
  14. plane {  y,-1.01  pigment {checker Yellow,White}}
  15.  
  16. plane {  z, 4.01  pigment {checker Yellow,White}}
  17.  
  18. light_source { <300, 500, -500> color Gray65}
  19. light_source { <-50,  10, -500> color Gray65}
  20.  
  21. #declare Thing = plane{z,0.1 clipped_by{box{<-2.75,-2,-2>,<2.75,2,2>}}}
  22.  
  23. #declare Tree = pigment{DMFWood4 scale 2 translate <1/2,0,1> 
  24.                         rotate x*85 translate 10*y}
  25.  
  26. object{Thing
  27.   pigment{ Tree }
  28.   translate <-3,5.5,0>
  29. }
  30.  
  31. object{Thing
  32.   pigment{ Tree 
  33.     warp{repeat x*2}
  34.   }
  35.   translate <3,5.5,0>
  36. }
  37.  
  38. object{Thing
  39.   pigment{ Tree 
  40.     warp{repeat x*2 offset z*0.25}
  41.   }
  42.   translate <-3,1,0>
  43. }
  44.  
  45. object{Thing
  46.   pigment{ Tree 
  47.     warp{repeat x*2 flip y}
  48.   }
  49.   translate <3,1,0>
  50. }
  51.  
  52.