home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / PACMAN.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  6.3 KB  |  271 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Ville Saari
  4. // Copyright (c) 1991 Ferry Island Pixelboys
  5. {
  6. *
  7. * PvRay scene description for 'Pac Man doing his favourite job'
  8. * Created: 03-Jan-91
  9. * Updated: 05-Jan-91
  10. *
  11. * You will need maze.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.dat"
  20.  
  21. view_point
  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. end_view_point
  31.  
  32. object { The maze-textured ground }
  33.    plane <0.0 1.0 0.0> 0.0 end_plane
  34.    texture
  35.       imagemap <1.0 0.0 -1.0> iff "maze.iff" 
  36.        interpolate 2.0
  37.       end_map
  38.       scale <1600.0 1600.0 1600.0>
  39.       translate <-196.0 0.0 160.0>
  40.       ambient 0.3
  41.       diffuse 0.7
  42.       reflection 0.5
  43.    end_texture
  44. end_object
  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 end_sphere
  51.          sphere <0.0 0.0 0.0>  28.0 inverse end_sphere
  52.          union
  53.             plane <0.0 1.0 0.0> 0.0 rotate <-35.0 0.0 0.0> end_plane
  54.             plane <0.0 -1.0 0.0> 0.0 rotate <10.0 0.0 0.0> end_plane
  55.          end_union
  56.          sphere <0.0 0.0 -29.0> 1.5
  57.             inverse
  58.             rotate <16.0 -4.0 0.0>
  59.          end_sphere
  60.          sphere <0.0 0.0 -29.0> 1.5
  61.             inverse
  62.             rotate <16.0 4.0 0.0>
  63.          end_sphere
  64.       end_intersection
  65.  
  66.       texture
  67.          colour red 0.9 green 0.8
  68.          ambient 0.3
  69.          diffuse 0.7
  70.          specular 0.5
  71.          roughness 0.1
  72.       end_texture
  73.    end_object
  74.    
  75.    object { Mouth }
  76.       intersection
  77.          sphere <0.0  0.0  0.0>  28.0 end_sphere
  78.          union
  79.             plane <0.0 2.0 0.0> -2.0 rotate <-35.0 0.0 0.0> end_plane
  80.             plane <0.0 -2.0 0.0> -2.0 rotate <10.0 0.0 0.0> end_plane
  81.          end_union
  82.       end_intersection
  83.    
  84.       texture
  85.          ambient 0.25
  86.          diffuse 0.75
  87.          colour red 0.5
  88.       end_texture
  89.    end_object
  90.    
  91.    object { Tongue }
  92.       union
  93.          sphere <3.0 0.0 -15.0> 10.0 end_sphere
  94.          sphere <-3.0 0.0 -15.0> 10.0 end_sphere
  95.       end_union
  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.3
  103.          diffuse 0.7
  104.          reflection 0.5
  105.       end_texture
  106.    end_object
  107.  
  108.    composite { Right eye }
  109.       object
  110.          sphere <0.0 0.0 0.0> 6.0 end_sphere
  111.          texture
  112.             colour red 1.0 green 1.0 blue 1.0
  113.             ambient 0.3
  114.             diffuse 0.7
  115.             reflection 0.5
  116.          end_texture
  117.       end_object
  118.       object
  119.          sphere <0.0 0.0 -2.3> 4.0 end_sphere
  120.          texture
  121.             colour red 0.3 green 0.4 blue 0.8
  122.             ambient 0.3
  123.             diffuse 0.7
  124.             reflection 0.5
  125.          end_texture
  126.       end_object
  127.       object
  128.          sphere <0.0 0.0 -5.5> 1.0 end_sphere
  129.          texture
  130.             colour red 0.0 green 0.0 blue 0.0 
  131.             ambient 0.3
  132.             diffuse 0.7
  133.             reflection 0.5
  134.          end_texture
  135.       end_object
  136.       object
  137.          quadric QSphere end_quadric
  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.          end_texture
  144.       end_object
  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.    end_composite
  150.    
  151.    composite { Left eye }
  152.       object
  153.          sphere <0.0 0.0 0.0> 6.0 end_sphere
  154.          texture
  155.             colour red 1.0 green 1.0 blue 1.0
  156.             ambient 0.3
  157.             diffuse 0.7
  158.             reflection 0.5
  159.          end_texture
  160.       end_object
  161.       object
  162.          sphere <0.0 0.0 -2.3> 4.0 end_sphere
  163.          texture
  164.             colour red 0.3 green 0.4 blue 0.8
  165.             ambient 0.3
  166.             diffuse 0.7
  167.             reflection 0.5
  168.          end_texture
  169.       end_object
  170.       object
  171.          sphere <0.0 0.0 -5.5> 1.0 end_sphere
  172.          texture
  173.             colour red 0.0 green 0.0 blue 0.0 
  174.             ambient 0.3
  175.             diffuse 0.7
  176.             reflection 0.5
  177.          end_texture
  178.       end_object
  179.       object
  180.          quadric QSphere end_quadric
  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.          end_texture
  187.       end_object
  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.    end_composite
  193.  
  194.    bounded_by
  195.       sphere <0.0 0.0 -2.0> 32.0 end_sphere
  196.    end_bound
  197.  
  198.    translate <0.0 32.0 0.0>
  199.  
  200. end_composite
  201.  
  202. object { Food... }
  203.    sphere <0.0 27.0 -25.0> 4.0 end_sphere
  204.  
  205.    texture
  206.       colour red 1.0 green 1.0 blue 1.0
  207.       ambient 0.3
  208.       diffuse 0.7
  209.       specular 2.0
  210.       roughness 0.01
  211.       reflection 0.6
  212.    end_texture
  213. end_object
  214.  
  215. object { ... more food ... }
  216.    sphere <0.0 27.0 -45.0> 4.0 end_sphere
  217.  
  218.    texture
  219.       colour red 1.0 green 1.0 blue 1.0
  220.       ambient 0.3
  221.       diffuse 0.7
  222.       reflection 0.5
  223.    end_texture
  224. end_object
  225.  
  226. object { ... and even more ... }
  227.    sphere <0.0 27.0 -65.0> 4.0 end_sphere
  228.  
  229.    texture
  230.       colour red 1.0 green 1.0 blue 1.0
  231.       ambient 0.3
  232.       diffuse 0.7
  233.       reflection 0.5
  234.    end_texture
  235. end_object
  236.  
  237. object { ... uh ... yet more food ... }
  238.    sphere <0.0 27.0 -85.0> 4.0 end_sphere
  239.  
  240.    texture
  241.       colour red 1.0 green 1.0 blue 1.0
  242.       ambient 0.3
  243.       diffuse 0.7
  244.       reflection 0.5
  245.    end_texture
  246. end_object
  247.  
  248. object { ... Yuck! ... no more please! }
  249.    sphere <0.0 27.0 -105.0> 4.0 end_sphere
  250.  
  251.    texture
  252.       colour red 1.0 green 1.0 blue 1.0
  253.       ambient 0.3
  254.       diffuse 0.7
  255.       reflection 0.5
  256.    end_texture
  257. end_object
  258.  
  259. object { Click }
  260.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  261.    translate <60.0  120.0  -170.0>
  262.    texture
  263.       colour red 1.0 green 1.0 blue 1.0
  264.       ambient 1.0
  265.       diffuse 0.0
  266.    end_texture
  267.    colour red 1.0 green 1.0 blue 1.0
  268.    light_source
  269. end_object
  270.