home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 2 / pacman.pov < prev    next >
Text File  |  1994-08-10  |  6KB  |  268 lines

  1. // Persistence Of Vision raytracer version 1.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>    ; left eye
  23.  
  24. //   location <-90.0 35.0 -140.0>    // left eye
  25.    location <-70.0 35.0 -140.0>    // right eye
  26.  
  27.    direction <0.0 0.0 1.0>
  28.    up  <0.0  1.0  0.0>
  29.    right <1.244 0.0 0.0>
  30.  
  31.    sky <0.0 1.0 0.0>
  32.    look_at <40.0 10.0 0.0>
  33. }
  34.  
  35. object { /* The maze-textured ground */
  36.    plane { <0.0 1.0 0.0> 0.0 }
  37.    texture {
  38.       image_map { <1.0 0.0 -1.0> iff "pacman.iff"
  39.          interpolate 2.0
  40.       }
  41.       scale <1600.0 1600.0 1600.0>
  42.       translate <-196.0 0.0 160.0>
  43.       ambient 0.15
  44.       diffuse 0.7
  45.       reflection 0.5
  46.    }
  47. }
  48.  
  49. composite { /* And now the world famous... Ta Da! ... pac man */
  50.  
  51.    object { /* Body */
  52.       intersection {
  53.          sphere { <0.0 0.0 0.0>  30.0 }
  54.          sphere { <0.0 0.0 0.0>  28.0 inverse }
  55.          union {
  56.             plane { <0.0 1.0 0.0> 0.0 rotate <-35.0 0.0 0.0> }
  57.             plane { <0.0 -1.0 0.0> 0.0 rotate <10.0 0.0 0.0> }
  58.          }
  59.          sphere { <0.0 0.0 -29.0> 1.5
  60.             inverse
  61.             rotate <16.0 -4.0 0.0>
  62.          }
  63.          sphere { <0.0 0.0 -29.0> 1.5
  64.             inverse
  65.             rotate <16.0 4.0 0.0>
  66.          }
  67.       }
  68.  
  69.       texture {
  70.          colour red 0.9 green 0.8
  71.          ambient 0.15
  72.          diffuse 0.7
  73.          specular 0.5
  74.          roughness 0.1
  75.       }
  76.    }
  77.  
  78.    object { /* Mouth */
  79.       intersection {
  80.          sphere { <0.0  0.0  0.0>  28.0 }
  81.          union {
  82.             plane { <0.0 2.0 0.0> -2.0 rotate <-35.0 0.0 0.0> }
  83.             plane { <0.0 -2.0 0.0> -2.0 rotate <10.0 0.0 0.0> }
  84.          }
  85.       }
  86.  
  87.       texture {
  88.          ambient 0.25
  89.          diffuse 0.75
  90.          colour red 0.5
  91.       }
  92.    }
  93.  
  94.    object { /* Tongue */
  95.       union {
  96.          sphere { <3.0 0.0 -15.0> 10.0 }
  97.          sphere { <-3.0 0.0 -15.0> 10.0 }
  98.       }
  99.       rotate <-45.0 0.0 0.0>
  100.  
  101.       texture {
  102.          colour red 1.0
  103.          wrinkles 0.5
  104.          scale <0.5 0.5 0.5>
  105.          ambient 0.15
  106.          diffuse 0.7
  107.          reflection 0.5
  108.       }
  109.    }
  110.  
  111.    composite { /* Right eye */
  112.       object {
  113.          sphere { <0.0 0.0 0.0> 6.0 }
  114.          texture {
  115.             colour red 1.0 green 1.0 blue 1.0
  116.             ambient 0.15
  117.             diffuse 0.7
  118.             reflection 0.5
  119.          }
  120.       }
  121.       object {
  122.          sphere { <0.0 0.0 -2.3> 4.0 }
  123.          texture {
  124.             colour red 0.3 green 0.4 blue 0.8
  125.             ambient 0.15
  126.             diffuse 0.7
  127.             reflection 0.5
  128.          }
  129.       }
  130.       object {
  131.          sphere { <0.0 0.0 -5.5> 1.0 }
  132.          texture {
  133.             colour red 0.0 green 0.0 blue 0.0 
  134.             ambient 0.15
  135.             diffuse 0.7
  136.             reflection 0.5
  137.          }
  138.       }
  139.       object {
  140.          quadric { Ellipsoid }
  141.          scale <9.0 2.0 9.0>
  142.          translate <0.0 8.0 6.0>
  143.          rotate <0.0 0.0 -10.0>
  144.          texture {
  145.             colour red 0.0 green 0.0 blue 0.0 
  146.          }
  147.       }
  148.  
  149.       rotate <-25.0 -20.0 0.0>
  150.       translate <0.0 0.0 -26.0>
  151.       rotate <25.0 20.0 0.0>
  152.    }
  153.  
  154.    composite { /* Left eye */
  155.       object {
  156.          sphere { <0.0 0.0 0.0> 6.0 }
  157.          texture {
  158.             colour red 1.0 green 1.0 blue 1.0
  159.             ambient 0.15
  160.             diffuse 0.7
  161.             reflection 0.5
  162.          }
  163.       }
  164.       object {
  165.          sphere { <0.0 0.0 -2.3> 4.0 }
  166.          texture {
  167.             colour red 0.3 green 0.4 blue 0.8
  168.             ambient 0.15
  169.             diffuse 0.7
  170.             reflection 0.5
  171.          }
  172.       }
  173.       object {
  174.          sphere { <0.0 0.0 -5.5> 1.0 }
  175.          texture {
  176.             colour red 0.0 green 0.0 blue 0.0 
  177.             ambient 0.15
  178.             diffuse 0.7
  179.             reflection 0.5
  180.          }
  181.       }
  182.       object {
  183.          quadric { Ellipsoid }
  184.          scale <9.0 2.0 9.0>
  185.          translate <-0.0 8.0 6.0>
  186.          rotate <0.0 0.0 10.0>
  187.          texture {
  188.             colour red 0.0 green 0.0 blue 0.0 
  189.          }
  190.       }
  191.  
  192.       rotate <-25.0 20.0 0.0>
  193.       translate <0.0 0.0 -26.0>
  194.       rotate <25.0 -20.0 0.0>
  195.    }
  196.  
  197.    bounded_by {
  198.       sphere { <0.0 0.0 -2.0> 32.0 }
  199.    }
  200.  
  201.    translate <0.0 32.0 0.0>
  202.  
  203. }
  204.  
  205. object { /* Food... */
  206.    sphere { <0.0 27.0 -25.0> 4.0 }
  207.  
  208.    texture {
  209.       colour red 1.0 green 1.0 blue 1.0
  210.       ambient 0.15
  211.       diffuse 0.7
  212.       specular 2.0
  213.       roughness 0.01
  214.       reflection 0.6
  215.    }
  216. }
  217.  
  218. object { /* ... more food ... */
  219.    sphere { <0.0 27.0 -45.0> 4.0 }
  220.  
  221.    texture {
  222.       colour red 1.0 green 1.0 blue 1.0
  223.       ambient 0.15
  224.       diffuse 0.7
  225.       reflection 0.5
  226.    }
  227. }
  228.  
  229. object { /* ... and even more ... */
  230.    sphere { <0.0 27.0 -65.0> 4.0 }
  231.  
  232.    texture {
  233.       colour red 1.0 green 1.0 blue 1.0
  234.       ambient 0.15
  235.       diffuse 0.7
  236.       reflection 0.5
  237.    }
  238. }
  239.  
  240. object { /* ... uh ... yet more food ... */
  241.    sphere { <0.0 27.0 -85.0> 4.0 }
  242.  
  243.    texture {
  244.       colour red 1.0 green 1.0 blue 1.0
  245.       ambient 0.15
  246.       diffuse 0.7
  247.       reflection 0.5
  248.    }
  249. }
  250.  
  251. object { /* ... Yuck! ... no more please! */
  252.    sphere { <0.0 27.0 -105.0> 4.0 }
  253.  
  254.    texture {
  255.       colour red 1.0 green 1.0 blue 1.0
  256.       ambient 0.15
  257.       diffuse 0.7
  258.       reflection 0.5
  259.    }
  260. }
  261.  
  262. object { /* Click */
  263.    light_source { <60.0  120.0  -170.0>
  264.       colour red 1.0 green 1.0 blue 1.0
  265.    }
  266. }
  267.