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

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Quilted pattern example
  3.  
  4. global_settings { assumed_gamma 2.2 }
  5.  
  6. #include "colors.inc"
  7.  
  8. camera {
  9.      location <0,0,-20>
  10.      direction 3*z
  11.  }
  12.  
  13.  light_source { <300, 500, -500> color Gray65}
  14.  light_source { <-50,  10, -500> color Gray45}
  15.  
  16.  #default {
  17.      pigment { White }
  18.      finish { phong 0.8 phong_size 200 }
  19.  }
  20.  
  21.  #declare Bump_Value = 1;
  22.  #declare Pattern_Scale = .75;
  23.  
  24.  #declare Thing =
  25.  box{ <-1,-1,-1>,<1,1,1> scale .8 }
  26.  
  27.  // top row, left to right
  28.  object { Thing
  29.      normal{
  30.          quilted Bump_Value 
  31.          control0 0 control1 0
  32.          scale Pattern_Scale
  33.      }
  34.      rotate <-30,30,0>
  35.      translate <-3,2,0>
  36.  }
  37.  object { Thing
  38.      normal{
  39.          quilted Bump_Value 
  40.          control0 0 control1 0.5
  41.          scale Pattern_Scale
  42.      }
  43.      rotate <-30,30,0>
  44.      translate <0,2,0>
  45.  }
  46.  object { Thing
  47.      normal{
  48.          quilted Bump_Value 
  49.          control0 0 control1 1
  50.          scale Pattern_Scale
  51.      }
  52.      rotate <-30,30,0>
  53.      translate <3,2,0>
  54.  }
  55.  
  56.  // middle row, left to right
  57.  object { Thing
  58.      normal{
  59.          quilted Bump_Value 
  60.          control0 0.5 control1 0
  61.          scale Pattern_Scale
  62.      }
  63.      rotate <-30,30,0>
  64.      translate <-3,0,0>
  65.  }
  66.  object { Thing
  67.      normal{
  68.          quilted Bump_Value 
  69.          control0 0.5 control1 0.5
  70.          scale Pattern_Scale
  71.      }
  72.      rotate <-30,30,0>
  73.      translate <0,0,0>
  74.  }
  75.  
  76.  object { Thing
  77.      normal{
  78.          quilted Bump_Value 
  79.          control0 0.5 control1 1
  80.          scale Pattern_Scale
  81.      }
  82.      rotate <-30,30,0>
  83.      translate <3,0,0>
  84.  }
  85.  
  86.  // bottom row, left to right
  87.  object { Thing
  88.      normal{
  89.          quilted Bump_Value 
  90.          control0 1 control1 0
  91.          scale Pattern_Scale
  92.      }
  93.      rotate <-30,30,0>
  94.      translate <-3,-2,0>
  95.  }
  96.  
  97.  object { Thing
  98.      normal{
  99.          quilted Bump_Value 
  100.          control0 1 control1 0.5
  101.          scale Pattern_Scale
  102.      }
  103.      rotate <-30,30,0>
  104.      translate <0,-2,0>
  105.  }
  106.  object { Thing
  107.      normal{
  108.          quilted Bump_Value 
  109.          control0 1 control1 1
  110.          scale Pattern_Scale
  111.      }
  112.      rotate <-30,30,0>
  113.      translate <3,-2,0>
  114.  }
  115.  
  116.