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

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Sample Quartic { file
  4. // by Alexander Enzmann
  5.  
  6. // Bicorn 
  7.  
  8. #include "shapes.inc"
  9. #include "colors.inc"
  10. #include "textures.inc"
  11. #include "shapesq.inc"
  12.  
  13. // Get the declaration of the coordinate axes 
  14. #include "axisbox.inc"
  15.  
  16. // Declare the orientation of the surface 
  17. #declare Orient = <-20 -60 0>
  18.  
  19. // Bicorn 
  20. composite {
  21.    object {
  22.       quartic { Bicorn
  23.          texture { color Red phong 1.0 }
  24.          sturm
  25.       }
  26.       scale <3 3 3>
  27.       bounded_by {
  28.          sphere { <0 0 0> 3 }
  29.       }
  30.       clipped_by {
  31.          plane { < 1 0 0> 0.5 }
  32.          plane { <-1 0 0> 0.5 }
  33.       }
  34.    }
  35.    object {
  36.       quartic { Bicorn
  37.          texture { color Blue phong 1.0 }
  38.          sturm
  39.       }
  40.       scale <2.99 2.99 2.99>
  41.       translate <0 0.01 0>
  42.       bounded_by {
  43.          sphere { <0 0 0> 2.99 }
  44.       }
  45.       clipped_by {
  46.          plane { < 1 0 0> 0.49 }
  47.          plane { <-1 0 0> 0.49 }
  48.       }
  49.    }
  50.    translate <0 -1.5 0 >
  51.    rotate Orient
  52. }
  53.  
  54. // Show coordinate axes 
  55. composite { Axes
  56.    rotate Orient
  57. }
  58.  
  59. // The viewer is eight units back along the z-axis. 
  60. camera {
  61.    location  <0.0  0.0 -8.0>
  62.    right     <1.3333  0.0  0.0>
  63.    up        <0.0  1.0  0.0>
  64.    direction <0.0  0.0  1.0>
  65. }
  66.  
  67. // Put in some light sources so that highlighting can give visual clues
  68. //  as to the shape of the surface.
  69. object {
  70.    light_source { <200 100 -300>
  71.       colour White
  72.    }
  73. }
  74.  
  75. object {
  76.    light_source { <-200 100 -300>
  77.       colour White
  78.    }
  79. }
  80.