home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / TEXTURES / SURFACES / NORMAVG.POV < prev    next >
Text File  |  1999-10-30  |  1KB  |  71 lines

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