home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / scenes / advanced / quilt1.pov < prev    next >
Encoding:
Text File  |  2000-04-06  |  1.6 KB  |  74 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Demonstrates quilted normals
  3.  
  4.  
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7.  #include "colors.inc"
  8.  #include "textures.inc"
  9.  #include "shapes.inc"
  10.  
  11.  camera {
  12.    location <-5, 6, -13>
  13.    direction <0, 0, 2>
  14.    right <1.3333, 0, 0>
  15.    look_at <0, 0, 0>
  16.  }
  17.  
  18.  light_source { < -10, 0.5, -4> colour SkyBlue }
  19.  light_source { < 10, 20, -2> colour Gray90
  20.      area_light <4 0 0> <0 0 4> 10 10
  21.      adaptive 1
  22.      jitter
  23.  
  24.  }
  25.  
  26.  // Sky
  27.  sphere {
  28.    <0, 0, 0>, 1
  29.    hollow on
  30.    texture {
  31.      pigment {
  32.        gradient y
  33.        color_map {[0, 1 color White color SkyBlue]}
  34.      }
  35.      finish {ambient 1 diffuse 0}
  36.    }
  37.    scale 100000
  38.  }
  39.  
  40.  #declare X_Scale = 100;
  41.  union {
  42.      plane { z, 0 hollow on}
  43.      plane { y, 0 inverse }
  44.      cylinder { <-2*X_Scale, 1, -1>,<2*X_Scale, 1, -1>, 1
  45.          clipped_by { box { <-X_Scale, 0, -1> <X_Scale, 1, 0> }}
  46.      }
  47.      texture {
  48.          normal { quilted 1 }
  49.          pigment { checker color SkyBlue color Wheat }
  50.          finish {  Shiny }
  51.      scale <0.5,0.5,0.5>
  52.      translate y*100
  53.      translate .1
  54.      }
  55.      clipped_by { box { <-X_Scale+0.1, -0.1, -10000> <X_Scale+0.1, 1000, 1> }}
  56.      rotate -y*2
  57.  }
  58.  
  59.  sphere { <0, 1, 0>, 2
  60.      texture {
  61.          pigment { White }
  62.          finish { Mirror }
  63.          normal { quilted 1  control0 0.5  control1 1
  64.              scale 0.45
  65.              turbulence 0.5
  66.              lambda 0.5
  67.              omega 0.707
  68.              octaves 4
  69.          }
  70.      }
  71.      translate <-2, 1, -4>
  72.  }
  73.  
  74.