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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Weighted averaged normals example
  3.  
  4. #version 3.0
  5. global_settings { 
  6.  assumed_gamma 2.2
  7.  number_of_waves 1
  8. }
  9.  
  10. #include "colors.inc"
  11. #include "textures.inc"
  12.  
  13. camera { 
  14.   location <0,3,-31>
  15.   direction 3*z
  16.  
  17. plane {  y,-1.01  pigment {checker Yellow,White}}
  18.  
  19. plane {  z, 4.01  pigment {checker Yellow,White}}
  20.  
  21. light_source { < 500, 500, -500> White*.75}
  22. light_source { <-500,  50, -500> White*.3}
  23.  
  24. #declare Thing = plane{z,0.1 clipped_by{box{-2,2}}}
  25.  
  26. #default {pigment{White} finish{phong 1  phong_size 100}}
  27.  
  28. object{Thing
  29.   normal {
  30.     average
  31.     normal_map {
  32.       [gradient x, -1.0 scallop_wave scale 0.5]
  33.       [gradient y, -1.0 scallop_wave scale 0.5]
  34.     }
  35.   }
  36.   translate <-3,5.5,0>
  37. }
  38.  
  39. object{Thing
  40.   normal {
  41.     average
  42.     normal_map {
  43.       [gradient x, 1.0 triangle_wave scale 0.5]
  44.       [gradient y, 1.0 triangle_wave scale 0.5]
  45.     }
  46.   }
  47.   translate <3,5.5,0>
  48. }
  49.  
  50. object{Thing
  51.   normal {
  52.     average
  53.     normal_map {
  54.       [3.0 gradient x, 1.0 triangle_wave scale 0.5]
  55.       [1.0 gradient y, 1.0 triangle_wave scale 0.5]
  56.     }
  57.   }
  58.   translate <-3,1,0>
  59. }
  60.  
  61. object{Thing
  62.   normal {
  63.     average
  64.     normal_map {
  65.       [waves 1.0 frequency 3 translate < 1, 1,0>]
  66.       [waves 1.0 frequency 3 translate <-1,-1,0>]
  67.     }
  68.   }
  69.   translate <3,1,0>
  70. }
  71.