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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Example of wood normal perturbance using various waveforms.
  3.  
  4. #version 3
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8.  
  9. camera { 
  10.   location <0,1,-11>
  11.   direction 3*z
  12.  
  13. plane {
  14.   y, -1.01
  15.   pigment {checker color White color Magenta}
  16. }
  17.  
  18. plane {
  19.   z, 3.01
  20.   pigment {checker color White color Magenta}
  21. }
  22.  
  23. light_source { <300, 500, -500> color Gray65}
  24. light_source { <-100, 10, -500> color Gray65}
  25.  
  26. #declare N1=
  27.    normal{
  28.      wood  0.6
  29.      scale 0.24
  30.    }
  31.  
  32. #default {
  33.   texture{
  34.    pigment{White}
  35.    finish{phong 0.8 phong_size 200}
  36.   }
  37.  }
  38.  
  39. box{<-1,-1,-1>,<1,1,1>
  40.   scale .75
  41.   normal{N1 ramp_wave}
  42.   rotate <20,20,0>
  43.   translate <-1,2,0>
  44. }
  45.  
  46. box{<-1,-1,-1>,<1,1,1>
  47.   scale .75
  48.   normal{N1 triangle_wave}
  49.   rotate <20,20,0>
  50.   translate <1,2,0>
  51. }
  52.  
  53. box{<-1,-1,-1>,<1,1,1>
  54.   scale .75
  55.   normal{N1 sine_wave}
  56.   rotate <20,20,0>
  57.   translate <-1,0,0>
  58. }
  59.  
  60. box{<-1,-1,-1>,<1,1,1>
  61.   scale .75
  62.   normal{N1 scallop_wave}
  63.   rotate <20,20,0>
  64.   translate <1,0,0>
  65. }
  66.  
  67.