home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilsp
/
povray
/
!POVscene
/
level3
/
inc
/
s-head3
< prev
next >
Wrap
Text File
|
1992-07-21
|
48KB
|
2,044 lines
// Persistence of Vision Raytracer Version 1.0
#include "lizard.inc"
/*---This dat is the top "head" half of snake------*/
/***********************************************************************/
/*------------------------------THE HEAD-------------------------------*/
#declare Dot = quadric {
< 1.0 1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
-1.0
}
#declare Connector_1a =
object {
quadric {
< 0.0 1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
-1.0
}
clipped_by {
plane { < 1.0 0.0 0.0> 1.0 }
plane { <-1.0 0.0 0.0> 0.0 }
}
}
#declare Connector_2a =
quadric {
< 1.0 -1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
0.0
rotate < 0.0 0.0 90.0>
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*---------------------THE NOSE---------------------------------------*/
#declare Connector_1b =
object {
quadric {
< 0.0 1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
-1.0
}
clipped_by {
plane { < 1.0 0.0 0.0> 1.0 }
plane { <-1.0 0.0 0.0> 0.0 }
}
}
#declare Connector_2b =
quadric {
< 1.0 -1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
0.0
rotate < 0.0 0.0 90.0>
}
#declare c3 = intersection {
quadric { Connector_2b }
plane { < 1.000000 0.000000 0.000000> 4.898979 }
plane { < 1.000000 0.000000 0.000000> 3.919184 inverse }
translate <-3.919184 0.000000 0.000000>
scale < 4.898979 1.010000 1.010000>
translate < 0.800000 0.000000 0.000000>
}
#declare nose =
union {
difference {
union {
quadric { Dot scale < 2.300000 4.000000 4.000000> }
quadric { Ellipsoid scale <2.5 3.98 3.98> translate <0.3 0 0> }
intersection { c3 }
quadric { Dot scale < 4.000000 5.000000 5.000000>
translate < 5.000000 0.000000 0.000000>
}
/*-------------Cleff Palette------------------------------------------*/
quadric { Ellipsoid scale <3 2 3> translate <1 1.7 -2> }
quadric { Ellipsoid scale <3 3 3> translate <1 0.7 -2> }
}
quadric { Ellipsoid scale <2.2 1.7 7> translate <-0.5 -0.5 0> }
} /*----------MOUTH OPENING--------------*/
}
/*-------------------GUMS------------------------------*/
#declare gum = union {
intersection { Disk_Y scale <3 0.7 3.5> translate <-1 1.3 0> }
intersection { Disk_Y scale <3 0.7 3.5> translate <-0.3 -1.2 0> }
}
/*-----------Poodle Chew - Poodle Bite-----------------------------------*/
#declare choppers = object {
union {
intersection { Disk_Y scale <2.8 0.7 3.6> translate <-1 1.1 0> }
intersection { Disk_Y scale <2.8 0.7 3.6> translate <-0.5 -0.95 0> }
}
texture { color Firebrick phong 1.0 }
}
#declare fangs = object {
union {
intersection { DCone scale <0.5 1.9 0.5> translate <-2.5 -0.5 -2.5> }
intersection { DCone scale <0.5 1.9 0.5> translate <-2.5 -0.5 2.5> }
}
texture { color White phong 1.0 }
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*----------------THE SKULL---------------------------------------------*/
#declare Connector_1c =
object {
quadric {
< 0.0 1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
-1.0
}
clipped_by {
plane { < 1.0 0.0 0.0> 1.0 }
plane { <-1.0 0.0 0.0> 0.0 }
}
}
#declare Connector_2c =
quadric {
< 1.0 -1.0 1.0>
< 0.0 0.0 0.0>
< 0.0 0.0 0.0>
0.0
rotate < 0.0 0.0 90.0>
}
#declare skull =
union {
difference {
union {
quadric { Dot scale < 3.200000 6.200000 6.200000> }
quadric { Dot scale < 6.500000 6.500000 6.500000>
translate < 3.000000 -0.100000 0.000000>
}
/*------SOCKET MOUND-----------------------------------------*/
quadric { Ellipsoid scale <2 2 2> translate <1 3.2 -4> }
/*
{--------------JAW----------------------------------------------------}
quadric { Ellipsoid SCALE <4 4 2> tranlate <2.3 -0.5 -4.7> }
*/
}
/*
{----------------Eye Sockets------------------------------------------}
quadric Cylinder_X scale <1 1.3 1.3> translate <0 3.1 3.9> }
quadric Cylinder_X scale <1 1.3 1.3> translate <0 3.1 -3.9> }
*/
}
}
#declare c4 = intersection {
quadric { Connector_2c }
plane { < 1.000000 0.000000 0.000000> 6.467455 }
plane { < 1.000000 0.000000 0.000000> 6.168957 inverse }
translate <-6.168957 0.000000 0.000000>
scale < 9.955456 1.000000 1.000000>
translate < 0.619656 0.000000 0.000000>
rotate < 0.000000 0.000000 -1.909152>
}
#declare eye = /*---------------EYE BALL----------------*/
object {
quadric { Ellipsoid scale <1.5 1.5 1.5> }
texture {
/*
image_map <1 -1.0 0> gif "s-eye.gif" }
scale <3 3 3> translate <-1.5 -1.5 -1> phong 1.0
rotate <0 25 0>
*/
color Black phong 1.0
}
}
#declare ear = difference { /*-----EAR------*/
quadric { Ellipsoid scale <1.75 3.5 1.75> }
quadric { Ellipsoid scale <1.25 3.5 1.25> translate <-0.7 -0.5 0> }
rotate <0 -65 0>
}
/*---------------------------A Matching set---------------------------------*/
#declare ears =
union {
difference { ear rotate <0 0 -30> rotate <30 0 0> translate <0 0 6> }
difference { ear rotate <0 0 -30> rotate <-30 0 0> translate <0 0 -6> }
}
#declare bridge = /*----------NOSE & BRIDGE------*/
union {
intersection { Disk_X scale <6.5 1.2 1.2> }
quadric { Ellipsoid scale <1 1.5 1.5> }
quadric { Ellipsoid scale <1.3 1.3 1.3> translate <0.2 0 0> }
}
#declare ed =
object {
union {
union { nose scale <1 1 1.4> rotate <0 0 7> translate <-42.5 24.3 0> }
union { skull scale <1.2 1 1.2> rotate <0 0 4> translate <-38 26 0> }
intersection { c4 scale <1.2 1 1.2> rotate <0 0 4> translate <-38 26 0> }
union { ears translate <-33 29 0> }
union { bridge scale <1 1 3> rotate <0 0 16> translate <-44 27.4 0> }
union { gum translate <-41 23.2 0> }
}
texture {
shead
}
bounded_by {
intersection { Cube scale <18 11 11> translate <-28.8 24.2 0> }
}
}
#declare head =
composite {
object { ed }
object { eye translate <-39 28.3 -6.3> }
object { eye translate <-39 28.3 6.3> }
object { choppers translate <-41 23.2 0> }
object { fangs translate <-41 23.2 0> }
bounded_by {
intersection { Cube scale <18 11 11> translate <-28.8 24.2 0> }
}
translate <38 -26 0>
}
/*-----STRIPPED CTDS DATA / MOVED TEXTURE STATEMENT BEFORE SCALE/TRANS.--*/
#declare top =
composite {
object {
quadric {
Dot } texture { bones }
scale < 9.000000 9.000000 9.000000>
translate < 23.000000 0.000000 0.000000>
}
object {
quadric {
Connector_2 } texture { skin }
clipped_by {
plane { < 1.000000 0.000000 0.000000> 8.998481 }
plane { < 1.000000 0.000000 0.000000> 8.922304 inverse }
}
translate <-8.998481 0.000000 0.000000>
scale < 54.415615 1.000000 1.000000>
translate <-0.165366 0.000000 0.000000>
rotate < 0.000000 180.000000 0.000000>
rotate < 0.000000 0.000000 7.920896>
rotate < 0.000000 -99.646625 0.000000>
translate < 23.000000 0.000000 0.000000>
}
object {
quadric {
Dot } texture { bones }
scale < 8.923810 8.923810 8.923810>
translate < 22.311775 0.571429 4.048990>
}
object {
quadric {
Connector_2 } texture { skin }
clipped_by {
plane { < 1.000000 0.000000 0.000000> 8.922261 }
plane { < 1.000000 0.000000 0.000000> 8.846083 inverse }
}
translate <-8.922261 0.000000 0.000000>
scale < 53.662584 1.000000 1.000000>