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

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Bezier patch example
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9.  
  10. object {
  11.    bicubic_patch { 1 5 5
  12.       // bicubic_patch { 3 0.05 5 5 
  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 {
  18.          checker
  19.          color red 1.0 color blue 1.0
  20.          rotate <90 0 0>
  21.          phong 1
  22.       }
  23.    }      /* end_bicubic */
  24.    color red 1.0
  25.    translate <-1.5 -1.5 0>
  26.    scale <2 2 2>
  27.    rotate <30 -70 0>
  28. }
  29.  
  30. // The viewer is eight units back along the z-axis. 
  31. camera {
  32.    location  <0.0  0.0 -15.0>
  33.    right     <1.3333  0.0  0.0>
  34.    up        <0.0  1.0  0.0>
  35.    direction <0.0  0.0  1.0>
  36. }
  37.  
  38. // Light source 
  39. object {
  40.    light_source { <100 100 0>
  41.       colour White
  42.    }
  43. }
  44.  
  45.