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

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Sample quartic file
  4. // by David Mason (of DTA fame!)
  5.  
  6. #include "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapesq.inc"
  10.  
  11. #declare Steel = texture {
  12.    color SteelBlue
  13.    phong 1.0
  14.    phong_size 20
  15.    ambient 0.2
  16.    diffuse 0.8
  17. }
  18.  
  19. #declare Fin = object {
  20.    difference {
  21.       intersection {
  22.          quadric { Ellipsoid scale <2 4 0.5> }
  23.          plane { <0.0 1.0 0.0> -0 inverse }
  24.          plane { <1.0 0.0 0.0> -0 }
  25.       }
  26.       quadric { Ellipsoid scale <2 2 2> }
  27.    }
  28.    translate <-1.2 0 0>
  29.    texture { Steel }
  30. }
  31.  
  32. #declare Fins = composite {
  33.    object { Fin rotate <0 0 0>   }
  34.    object { Fin rotate <0 90 0>  }
  35.    object { Fin rotate <0 180 0> }
  36.    object { Fin rotate <0 270 0> }
  37.    bounded_by {
  38.       intersection {
  39.          quadric { Cylinder_Y scale <3.5 1 3.5> }
  40.          plane { <0.0 1.0 0.0> 4 }
  41.          plane { <0.0 1.0 0.0> 0 inverse }
  42.       }
  43.    }
  44. }
  45.  
  46. composite { Fins rotate <0 25 0> translate <0 6 0> }
  47.  
  48.  
  49. object {
  50.    intersection {
  51.       union {
  52.          intersection {
  53.             quartic { Piriform
  54.                translate <-0.75 0 0>
  55.                rotate <0 0 -90>
  56.                scale <2 6 2>
  57.                texture { Steel }
  58.             }
  59.             quadric { QCone_Y
  60.                scale <1.8 5.0 1.8>
  61.                rotate <180 0 0>
  62.                translate <0 5 0>
  63.                color Clear
  64.             }
  65.             plane { <0.0 1.0 0.0> 5 color Clear }
  66.             plane { <0.0 1.0 0.0> 0 inverse color Clear }
  67.          }
  68.          intersection {
  69.             quartic { Piriform
  70.                translate <-0.75 0 0>
  71.                rotate <0 0 90>
  72.                scale <2 18 2>
  73.                texture { Steel }
  74.             }
  75.             quadric { QCone_Y
  76.                scale <1.8 15.0 1.8>
  77.                translate <0 -15 0>
  78.                color Clear
  79.             }
  80.             plane { <0.0 1.0 0.0> 0 color Clear }
  81.             plane { <0.0 1.0 0.0> -8 inverse color Clear }
  82.          }
  83.          intersection {
  84.             quartic { Piriform
  85.                translate <-0.40 0 0>
  86.                rotate <0 0 90>
  87.                scale <2 6 2>
  88.                texture { Steel }
  89.             }
  90.             plane { <0.0 1.0 0.0> 0 inverse }
  91.             translate <0 -11 0>
  92.          }
  93.       }
  94.       quadric { Cylinder_Y scale <1.45 1.0 1.45> color Clear }
  95.    }
  96.    bounded_by {
  97.       intersection {
  98.          quadric { Cylinder_Y scale <1.45 1.0 1.45> }
  99.          plane { <0.0 1.0 0.0> 5 }
  100.          plane { <0.0 1.0 0.0> -11 inverse }
  101.       }
  102.    }
  103.    translate <0 18 0>
  104. }
  105.  
  106. object {
  107.    union {
  108.       intersection {
  109.          quartic { Piriform
  110.             texture { Luminous color Yellow alpha 0.7 }
  111.          }
  112.          quadric { Cylinder_Y scale <0.8 1.0 0.8> }
  113.       }
  114.       light_source { <0 0 0> color Yellow }
  115.    }
  116.  
  117.    translate <-0.40 0 0>
  118.    rotate <0 0 90>
  119.    scale <0.8 5 0.8>
  120.  
  121.    bounded_by {
  122.       intersection {
  123.          quadric { Cylinder_Y scale <0.8 1.0 0.8> }
  124.          plane { <0.0 1.0 0.0> 6 }
  125.          plane { <0.0 1.0 0.0> -8 inverse }
  126.       }
  127.    }
  128.    translate <0 4 0>
  129. }
  130.  
  131. camera {
  132.    location  <3.0  30 -20.0>
  133.    up        <0.0  1.0  0.1>
  134.    right     <1.33 0.0  0.0>
  135.    look_at   <0.0  12 0>
  136. }
  137.  
  138. object {
  139.    light_source { <100 100 -100>
  140.       colour White
  141.    }
  142. }
  143.  
  144. object {
  145.    plane { <0.0 1.0 0.0> 0 }
  146.    texture {
  147.       checker
  148.       colour Gold
  149.       colour Aquamarine
  150.       scale < 5 5.1 5 >
  151.       reflection 0.5
  152.       ambient 0.1
  153.       diffuse 0.8
  154.    }
  155. }
  156.  
  157. object {
  158.    sphere { <0.0  0.0  0.0> 300.0 }
  159.    texture {
  160.       gradient <0.0  1.0  0.0>
  161.       colour_map { [0.0 0.8  colour red 1.0 green 0.3 blue 0.0
  162.          colour red 0.7 green 0.7 blue 1.0]
  163.          [0.8 1.0 colour red 0.7 green 0.7 blue 1.0
  164.          colour red 0.7 green 0.7 blue 1.0]
  165.       }
  166.       scale <300.0  300.0  300.0>
  167.       ambient 0.7
  168.       diffuse 0.0
  169.    }
  170.    colour red 0.7  green 0.7 blue 1.0
  171. }
  172.  
  173. object {
  174.    sphere { <0.0  0.0  0.0> 259.0 }
  175.    texture {
  176.       bozo
  177.       turbulence 0.5
  178.       colour_map {
  179.          [0.0 0.6  colour red 1.0 green 1.0 blue 1.0 alpha 1.0
  180.          colour red 1.0 green 1.0 blue 1.0 alpha 1.0]
  181.          [0.6 0.8 colour red 1.0 green 1.0 blue 1.0 alpha 1.0
  182.          colour red 1.0 green 1.0 blue 1.0]
  183.          [0.8 1.001 colour red 1.0 green 1.0 blue 1.0
  184.          colour red 0.8 green 0.8 blue 0.8]
  185.       }
  186.       scale <100.0  20.0  100.0>
  187.       ambient 0.7
  188.       diffuse 0.0
  189.    }
  190.    colour red 0.7 green 0.7 blue 1.0
  191. }
  192.