home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Ville Saari
- // Copyright (c) 1991 Ferry Island Pixelboys
- {
- *
- * PvRay scene description for 'Pac Man doing his favourite job'
- *
- * Created: 03-Jan-91
- * Updated: 05-Jan-91
- *
- * You will need maze.iff which is included in this package.
- *
- * If you do some nice modifications or additions to this file, please send
- * me a copy. My Internet address is:
- *
- * vsaari@niksula.hut.fi
- }
-
- #include "shapes.dat"
-
- view_point
- location <-80.0 35.0 -140.0>
-
- direction <0.0 0.0 1.0>
- up <0.0 1.0 0.0>
- right <1.244 0.0 0.0>
-
- sky <0.0 1.0 0.0>
- look_at <40.0 10.0 0.0>
- end_view_point
-
- object { The maze-textured ground }
- plane <0.0 1.0 0.0> 0.0 end_plane
- texture
- imagemap <1.0 0.0 -1.0> iff "maze.iff"
- interpolate 2.0
- end_map
- scale <1600.0 1600.0 1600.0>
- translate <-196.0 0.0 160.0>
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- composite { And now the world famous... Ta Da! ... pac man }
-
- object { Body }
- intersection
- sphere <0.0 0.0 0.0> 30.0 end_sphere
- sphere <0.0 0.0 0.0> 28.0 inverse end_sphere
- union
- plane <0.0 1.0 0.0> 0.0 rotate <-35.0 0.0 0.0> end_plane
- plane <0.0 -1.0 0.0> 0.0 rotate <10.0 0.0 0.0> end_plane
- end_union
- sphere <0.0 0.0 -29.0> 1.5
- inverse
- rotate <16.0 -4.0 0.0>
- end_sphere
- sphere <0.0 0.0 -29.0> 1.5
- inverse
- rotate <16.0 4.0 0.0>
- end_sphere
- end_intersection
-
- texture
- colour red 0.9 green 0.8
- ambient 0.3
- diffuse 0.7
- specular 0.5
- roughness 0.1
- end_texture
- end_object
-
- object { Mouth }
- intersection
- sphere <0.0 0.0 0.0> 28.0 end_sphere
- union
- plane <0.0 2.0 0.0> -2.0 rotate <-35.0 0.0 0.0> end_plane
- plane <0.0 -2.0 0.0> -2.0 rotate <10.0 0.0 0.0> end_plane
- end_union
- end_intersection
-
- texture
- ambient 0.25
- diffuse 0.75
- colour red 0.5
- end_texture
- end_object
-
- object { Tongue }
- union
- sphere <3.0 0.0 -15.0> 10.0 end_sphere
- sphere <-3.0 0.0 -15.0> 10.0 end_sphere
- end_union
- rotate <-45.0 0.0 0.0>
-
- texture
- colour red 1.0
- wrinkles 0.5
- scale <0.5 0.5 0.5>
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- composite { Right eye }
- object
- sphere <0.0 0.0 0.0> 6.0 end_sphere
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- sphere <0.0 0.0 -2.3> 4.0 end_sphere
- texture
- colour red 0.3 green 0.4 blue 0.8
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- sphere <0.0 0.0 -5.5> 1.0 end_sphere
- texture
- colour red 0.0 green 0.0 blue 0.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- quadric QSphere end_quadric
- scale <9.0 2.0 9.0>
- translate <0.0 8.0 6.0>
- rotate <0.0 0.0 -10.0>
- texture
- colour red 0.0 green 0.0 blue 0.0
- end_texture
- end_object
-
- rotate <-25.0 -20.0 0.0>
- translate <0.0 0.0 -26.0>
- rotate <25.0 20.0 0.0>
- end_composite
-
- composite { Left eye }
- object
- sphere <0.0 0.0 0.0> 6.0 end_sphere
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- sphere <0.0 0.0 -2.3> 4.0 end_sphere
- texture
- colour red 0.3 green 0.4 blue 0.8
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- sphere <0.0 0.0 -5.5> 1.0 end_sphere
- texture
- colour red 0.0 green 0.0 blue 0.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
- object
- quadric QSphere end_quadric
- scale <9.0 2.0 9.0>
- translate <-0.0 8.0 6.0>
- rotate <0.0 0.0 10.0>
- texture
- colour red 0.0 green 0.0 blue 0.0
- end_texture
- end_object
-
- rotate <-25.0 20.0 0.0>
- translate <0.0 0.0 -26.0>
- rotate <25.0 -20.0 0.0>
- end_composite
-
- bounded_by
- sphere <0.0 0.0 -2.0> 32.0 end_sphere
- end_bound
-
- translate <0.0 32.0 0.0>
-
- end_composite
-
- object { Food... }
- sphere <0.0 27.0 -25.0> 4.0 end_sphere
-
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- specular 2.0
- roughness 0.01
- reflection 0.6
- end_texture
- end_object
-
- object { ... more food ... }
- sphere <0.0 27.0 -45.0> 4.0 end_sphere
-
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- object { ... and even more ... }
- sphere <0.0 27.0 -65.0> 4.0 end_sphere
-
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- object { ... uh ... yet more food ... }
- sphere <0.0 27.0 -85.0> 4.0 end_sphere
-
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- object { ... Yuck! ... no more please! }
- sphere <0.0 27.0 -105.0> 4.0 end_sphere
-
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 0.3
- diffuse 0.7
- reflection 0.5
- end_texture
- end_object
-
- object { Click }
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <60.0 120.0 -170.0>
- texture
- colour red 1.0 green 1.0 blue 1.0
- ambient 1.0
- diffuse 0.0
- end_texture
- colour red 1.0 green 1.0 blue 1.0
- light_source
- end_object
-