home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level2 / pacman.pov < prev    next >
Text File  |  1993-09-28  |  5KB  |  247 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Ville Saari
  4. // Copyright (c) 1991 Ferry Island Pixelboys
  5. /*
  6. *
  7. * POV-Ray scene description for 'Pac Man doing his favourite job'
  8. * Created: 03-Jan-91
  9. * Updated: 05-Jan-91
  10. *
  11. * You will need pacman.iff which is included in this package.
  12. *
  13. * If you do some nice modifications or additions to this file, please send 
  14. * me a copy. My Internet address is:
  15. *
  16. *         vsaari@niksula.hut.fi
  17. */
  18.  
  19. #include "shapes.inc"
  20.  
  21. camera {
  22.    location <-80.0, 35.0, -140.0>
  23.    direction <0.0, 0.0, 1.0>
  24.    up  <0.0, 1.0, 0.0>
  25.    right <1.244, 0.0, 0.0>
  26.    sky <0.0, 1.0, 0.0>
  27.    look_at <40.0, 10.0, 0.0>
  28. }
  29.  
  30. /* The maze-textured ground */
  31. plane { y, 0.0
  32.    pigment {
  33.       image_map { iff "pacman.iff" interpolate 2.0 }
  34.       rotate 90*x
  35.       scale 1600
  36.       translate <-196.0, 0.0, 160.0>
  37.    }
  38.    finish {
  39.       ambient 0.15
  40.       diffuse 0.7
  41.       reflection 0.5
  42.    }
  43. }
  44.  
  45. union { /* And now the world famous... Ta Da! ... pac man */
  46.    /* Body */
  47.    intersection {
  48.       sphere { <0.0, 0.0, 0.0>, 30.0 }
  49.       sphere { <0.0, 0.0, 0.0>, 28.0 inverse }
  50.  
  51.       union {
  52.          plane { <0.0, +1.0, 0.0>, 0.0 rotate -35*x }
  53.          plane { <0.0, -1.0, 0.0>, 0.0 rotate 10.0*x }
  54.       }
  55.  
  56.       sphere { <0.0, 0.0, -29.0>, 1.5
  57.          inverse
  58.          rotate <16.0, -4.0, 0.0>
  59.       }
  60.  
  61.       sphere { <0.0, 0.0, -29.0>, 1.5
  62.          inverse
  63.          rotate <16.0, 4.0, 0.0>
  64.       }
  65.  
  66.       pigment { colour red 0.9 green 0.8 }
  67.       finish {
  68.          ambient 0.15
  69.          diffuse 0.7
  70.          specular 0.5
  71.          roughness 0.1
  72.       }
  73.    }
  74.  
  75.    intersection {
  76.       sphere { <0.0, 0.0, 0.0>, 28.0 }
  77.       union {
  78.          plane { +2*y, -2.0 rotate -35*x }
  79.          plane { -2*y, -2.0 rotate 10*x }
  80.       }
  81.  
  82.       pigment { colour red 0.5 }
  83.       finish { ambient 0.25 diffuse 0.75 }
  84.    }
  85.  
  86.    /* Tongue */
  87.    union {
  88.       sphere { <3.0, 0.0, -15.0>, 10.0 }
  89.       sphere { <-3.0, 0.0, -15.0>, 10.0 }
  90.  
  91.       pigment { colour red 1.0 }
  92.       normal {
  93.          wrinkles 0.5
  94.          scale 0.5
  95.       }
  96.       finish {
  97.          ambient 0.15
  98.          diffuse 0.7
  99.          reflection 0.5
  100.       }
  101.  
  102.       rotate -45*x
  103.    }
  104.  
  105.    union { /* Right eye */
  106.       sphere { <0.0, 0.0, 0.0>, 6.0
  107.          pigment { colour red 1.0 green 1.0 blue 1.0 }
  108.          finish {
  109.             ambient 0.15
  110.             diffuse 0.7
  111.             reflection 0.5
  112.          }
  113.       }
  114.  
  115.       sphere { <0.0, 0.0, -2.3>, 4.0
  116.          pigment { colour red 0.3 green 0.4 blue 0.8 }
  117.          finish {
  118.             ambient 0.15
  119.             diffuse 0.7
  120.             reflection 0.5
  121.          }
  122.       }
  123.  
  124.       sphere { <0.0, 0.0, -5.5>, 1.0
  125.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  126.          finish {
  127.             ambient 0.15
  128.             diffuse 0.7
  129.             reflection 0.5
  130.          }
  131.       }
  132.  
  133.       sphere { <0, 0, 0>, 1
  134.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  135.  
  136.          scale <9.0, 2.0, 9.0>
  137.          translate <0.0, 8.0, 6.0>
  138.          rotate -10.0*z
  139.       }
  140.  
  141.       rotate <-25.0, -20.0, 0.0>
  142.       translate -26.0*z
  143.       rotate <25.0, 20.0, 0.0>
  144.    }
  145.  
  146.    union { /* Left eye */
  147.       sphere { <0.0, 0.0, 0.0>, 6.0
  148.          pigment { colour red 1.0 green 1.0 blue 1.0 }
  149.          finish {
  150.             ambient 0.15
  151.             diffuse 0.7
  152.             reflection 0.5
  153.          }
  154.       }
  155.  
  156.       sphere { <0.0, 0.0, -2.3>, 4.0
  157.          pigment { colour red 0.3 green 0.4 blue 0.8 }
  158.          finish {
  159.             ambient 0.15
  160.             diffuse 0.7
  161.             reflection 0.5
  162.          }
  163.       }
  164.  
  165.       sphere { <0.0, 0.0, -5.5>, 1.0
  166.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  167.          finish {
  168.             ambient 0.15
  169.             diffuse 0.7
  170.             reflection 0.5
  171.          }
  172.       }
  173.  
  174.       sphere { <0, 0, 0>, 1
  175.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  176.  
  177.          scale <9.0, 2.0, 9.0>
  178.          translate <-0.0, 8.0, 6.0>
  179.          rotate 10*z
  180.       }
  181.  
  182.       rotate <-25.0, 20.0, 0.0>
  183.       translate -26.0*z
  184.       rotate <25.0, -20.0, 0.0>
  185.    }
  186.  
  187.    bounded_by { sphere { <0.0, 0.0, -2.0>, 32.0 } }
  188.  
  189.    translate 32*y
  190. }
  191.  
  192. /* Food... */
  193. sphere { <0.0, 27.0, -25.0>, 4.0
  194.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  195.    finish {
  196.       ambient 0.15
  197.       diffuse 0.7
  198.       specular 2.0
  199.       roughness 0.01
  200.       reflection 0.6
  201.    }
  202. }
  203.  
  204. /* ... more food ... */
  205. sphere { <0.0, 27.0, -45.0>, 4.0
  206.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  207.    finish {
  208.       ambient 0.15
  209.       diffuse 0.7
  210.       reflection 0.5
  211.    }
  212. }
  213.  
  214. /* ... and even more ... */
  215. sphere { <0.0, 27.0, -65.0>, 4.0
  216.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  217.    finish {
  218.       ambient 0.15
  219.       diffuse 0.7
  220.       reflection 0.5
  221.    }
  222. }
  223.  
  224. /* ... uh ... yet more food ... */
  225. sphere { <0.0, 27.0, -85.0>, 4.0
  226.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  227.    finish {
  228.       ambient 0.15
  229.       diffuse 0.7
  230.       reflection 0.5
  231.    }
  232. }
  233.  
  234. /* ... Yuck! ... no more please! */
  235. sphere { <0.0, 27.0, -105.0>, 4.0
  236.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  237.    finish {
  238.       ambient 0.15
  239.       diffuse 0.7
  240.       reflection 0.5
  241.    }
  242. }
  243.  
  244. /* Click */
  245. light_source { <60.0, 120.0, -170.0> colour red 1.0 green 1.0 blue 1.0 }
  246.