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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Normal_map example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8.  
  9.  camera {
  10.      location <0,3,-31>
  11.      direction 3*z
  12.  }
  13.  
  14. #declare Amt=<0,0,0>
  15.  
  16.  light_source { <200, 200, -500> color White}
  17.  
  18.  #default {
  19.      pigment { White }
  20.      normal { bump_size 1.0 }
  21.      finish { phong 0.8 phong_size 200 }
  22.  }
  23.  
  24. box{<-2,-2,0>,<2,2,1>
  25.   normal {
  26.     gradient x
  27.     normal_map{
  28.       [0.3 marble turbulence 0.5]
  29.       [0.7 gradient y scallop_wave scale .3]
  30.     }
  31.     translate -3*x
  32.     scale 2
  33.   }
  34.   translate <-3,5.50>
  35. }
  36.  
  37. box{<-2,-2,0>,<2,2,1>
  38.   normal {
  39.     wood
  40.     normal_map{
  41.       [0.5 marble turbulence 0.5]
  42.       [0.5 radial sine_wave frequency 10 rotate x*90]
  43.     }
  44.   }
  45.   translate <3,5.50>
  46. }
  47. box{<-2,-2,0>,<2,2,1>
  48.   normal {
  49.     checker
  50.       normal { marble turbulence 0.5 }
  51.       normal { radial sine_wave frequency 10 rotate x*90}
  52.   }
  53.   translate <-3,1,0>
  54. }
  55. box{<-2,-2,0>,<2,2,1>
  56.   normal {
  57.     radial frequency 10 
  58.     normal_map{
  59.       [0.5 gradient x triangle_wave scale .3]
  60.       [0.5 gradient z scallop_wave scale .3]
  61.     }
  62.     rotate x*90
  63.   }
  64.   translate <3,1,0>
  65. }
  66.