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