home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 0 / bezier.pov < prev    next >
Text File  |  1992-07-21  |  1KB  |  48 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Simpler Bezier patch example
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. object {
  12.    bicubic_patch { 1 8 8
  13.       < 0.0  0.0  2.0>  < 1.0  0.0  0.0>  < 2.0  0.0  0.0>  < 3.0  0.0 -2.0>
  14.       < 0.0  1.0  0.0>  < 1.0  1.0  0.0>  < 2.0  1.0  0.0>  < 3.0  1.0  0.0>
  15.       < 0.0  2.0  0.0>  < 1.0  2.0  0.0>  < 2.0  2.0  0.0>  < 3.0  2.0  0.0>
  16.       < 0.0  3.0  2.0>  < 1.0  3.0  0.0>  < 2.0  3.0  0.0>  < 3.0  3.0 -2.0>
  17.       texture { checker color red 1.0 color blue 1.0 rotate <90 0 0>
  18.          ambient 0.1 diffuse 0.9 phong 1 }
  19.    }      /* end_bicubic */
  20.    translate <-1.5 -1.5 0>
  21.    scale <2 2 2>
  22.    rotate <30 -60 0>
  23.    bounded_by { sphere { <0 0 0> 6 } }
  24. }
  25.  
  26. // Back wall 
  27. object {
  28.    plane { <0 0 1> 500 }
  29.    texture {
  30.       color red 0.4 green 0.4 blue 0.4
  31.       // color White 
  32.    }
  33. }
  34.  
  35. camera {
  36.    location  <0.0  0.0 -15.0>
  37.    right     <1.3333  0.0  0.0>
  38.    up        <0.0  1.0  0.0>
  39.    direction <0.0  0.0  1.0>
  40. }
  41.  
  42. // Light source 
  43. object {
  44.    light_source { <5 7 -5>
  45.       colour White
  46.    }
  47. }
  48.