home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilsp
/
povray
/
!POVscene
/
level2
/
pov
/
pacman
< prev
next >
Wrap
Text File
|
1992-09-27
|
6KB
|
265 lines
// Persistence Of Vision raytracer version 1.0 sample file.
// By Ville Saari
// Copyright (c) 1991 Ferry Island Pixelboys
/*
*
* POV-Ray scene description for 'Pac Man doing his favourite job'
*
* Created: 03-Jan-91
* Updated: 05-Jan-91
*
* You will need pacman.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"
camera {
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>
}
object { /* The maze-textured ground */
plane { <0.0 1.0 0.0> 0.0 }
texture {
image_map { <1.0 0.0 -1.0> iff "<POViff$Dir>.pacman"
interpolate 2.0
}
scale <1600.0 1600.0 1600.0>
translate <-196.0 0.0 160.0>
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
composite { /* And now the world famous... Ta Da! ... pac man */
object { /* Body */
intersection {
sphere { <0.0 0.0 0.0> 30.0 }
sphere { <0.0 0.0 0.0> 28.0 inverse }
union {
plane { <0.0 1.0 0.0> 0.0 rotate <-35.0 0.0 0.0> }
plane { <0.0 -1.0 0.0> 0.0 rotate <10.0 0.0 0.0> }
}
sphere { <0.0 0.0 -29.0> 1.5
inverse
rotate <16.0 -4.0 0.0>
}
sphere { <0.0 0.0 -29.0> 1.5
inverse
rotate <16.0 4.0 0.0>
}
}
texture {
colour red 0.9 green 0.8
ambient 0.15
diffuse 0.7
specular 0.5
roughness 0.1
}
}
object { /* Mouth */
intersection {
sphere { <0.0 0.0 0.0> 28.0 }
union {
plane { <0.0 2.0 0.0> -2.0 rotate <-35.0 0.0 0.0> }
plane { <0.0 -2.0 0.0> -2.0 rotate <10.0 0.0 0.0> }
}
}
texture {
ambient 0.25
diffuse 0.75
colour red 0.5
}
}
object { /* Tongue */
union {
sphere { <3.0 0.0 -15.0> 10.0 }
sphere { <-3.0 0.0 -15.0> 10.0 }
}
rotate <-45.0 0.0 0.0>
texture {
colour red 1.0
wrinkles 0.5
scale <0.5 0.5 0.5>
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
composite { /* Right eye */
object {
sphere { <0.0 0.0 0.0> 6.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
sphere { <0.0 0.0 -2.3> 4.0 }
texture {
colour red 0.3 green 0.4 blue 0.8
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
sphere { <0.0 0.0 -5.5> 1.0 }
texture {
colour red 0.0 green 0.0 blue 0.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
quadric { Ellipsoid }
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
}
}
rotate <-25.0 -20.0 0.0>
translate <0.0 0.0 -26.0>
rotate <25.0 20.0 0.0>
}
composite { /* Left eye */
object {
sphere { <0.0 0.0 0.0> 6.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
sphere { <0.0 0.0 -2.3> 4.0 }
texture {
colour red 0.3 green 0.4 blue 0.8
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
sphere { <0.0 0.0 -5.5> 1.0 }
texture {
colour red 0.0 green 0.0 blue 0.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object {
quadric { Ellipsoid }
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
}
}
rotate <-25.0 20.0 0.0>
translate <0.0 0.0 -26.0>
rotate <25.0 -20.0 0.0>
}
bounded_by {
sphere { <0.0 0.0 -2.0> 32.0 }
}
translate <0.0 32.0 0.0>
}
object { /* Food... */
sphere { <0.0 27.0 -25.0> 4.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
specular 2.0
roughness 0.01
reflection 0.6
}
}
object { /* ... more food ... */
sphere { <0.0 27.0 -45.0> 4.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object { /* ... and even more ... */
sphere { <0.0 27.0 -65.0> 4.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object { /* ... uh ... yet more food ... */
sphere { <0.0 27.0 -85.0> 4.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object { /* ... Yuck! ... no more please! */
sphere { <0.0 27.0 -105.0> 4.0 }
texture {
colour red 1.0 green 1.0 blue 1.0
ambient 0.15
diffuse 0.7
reflection 0.5
}
}
object { /* Click */
light_source { <60.0 120.0 -170.0>
colour red 1.0 green 1.0 blue 1.0
}
}