home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 11
/
CD_ASCQ_11_0294.iso
/
voxrom
/
images
/
kerleau
/
cafet
/
cafet.pov
next >
Wrap
Text File
|
1994-01-09
|
5KB
|
148 lines
// Sample File by J. KERLEAU 12-93
// ----- COLORS
// ------------
#declare White = color rgb <1,1,1>
#declare Black = color rgb <0,0,0>
#declare Red = color rgb <1,0,0>
#declare Green = color rgb <0,1,0>
#declare Blue = color rgb <0,0,1>
#declare Yellow = color rgb <1,1,0>
// ----- TEXTURES
// --------------
#declare Std = finish { ambient 0.3 diffuse 0.7 }
#declare PB_T = texture {
pigment { Black }
finish { specular 0.5 roughness 0.15 }
}
#declare PC_T = texture {
pigment { Black }
finish {
ambient 0.3 diffuse 0.2 reflection 0.5 brilliance 15
specular 1 roughness 0.001 phong 1
}
}
#declare Glass2 = texture {
pigment { White filter 1 }
finish {
ambient 0 diffuse 0 reflection 0.5 refraction 0.85 ior 1.5
phong 0.3 phong_size 60
}
}
#declare Plane_T = texture {
pigment { Blue }
finish { ambient 0.3 diffuse 0.7 phong 1 phong_size 250 }
}
#declare Wall_T = texture {
pigment { White }
finish { ambient 0.5 diffuse 0.5 phong 1 phong_size 100 }
normal { bump_map { gif "carreau.gif" bump_size 10 } }
scale 2
}
#declare Red_Button_T = texture {
pigment { Red }
finish { ambient 1 diffuse 0 }
}
#declare Green_Button_T = texture {
pigment { Green }
finish { ambient 1 diffuse 0 }
}
#declare Cup_T = texture {
pigment { White }
finish { Std }
}
// ----- SHAPES
// ------------
#declare Sphere = sphere { <0,0,0>,1 }
#declare PT = union {
cylinder { <0,11,0>,<0,9,0>,2 texture { PB_T } }
cylinder { <0,9,0>,<0,7,0>,1.8 texture { PC_T } }
cylinder { <0,7,0>,<0,5,0>,2 texture { PB_T } }
}
#declare ST0 = intersection { torus { 2.75,0.25 rotate 90*x } plane { -y,0 } }
#declare Struct = union {
object { ST0 scale <1,1/3,4> translate 11*y }
cylinder { <-2.75,0,0>,<-2.75,11,0>,0.25 scale <1,1,4> }
cylinder { <2.75,0,0>,<2.75,11,0>,0.25 scale <1,1,4> }
box { <-3,5.9,-0.5> <3,6.1,0.5> }
box { <-3,9.9,-0.5> <3,10.1,0.5> }
}
#declare Coffee_Pot_Top = intersection {
torus { 1.5,0.5 } torus { 1.5,0.4 inverse }
cylinder { <0,-1,0>,<0,1,0>,1.5 inverse }
plane { -y,0 }
}
#declare Coffee_Pot_Base = object { Coffee_Pot_Top rotate 180*x }
#declare Handle = intersection {
cylinder { <-0.5,2,-2>,<0.5,2,-2>,1 }
cylinder { <-1,2,-2>,<1,2,-2>,0.8 inverse }
cylinder { <0,0,0>,<0,4,0>,2 inverse }
}
#declare Coffee_Pot_Body = intersection {
cylinder { <0,0.5,0>,<0,3,0>,2 }
cylinder { <0,0,0>,<0,4,0>,1.9 inverse }
}
#declare Coffee_Pot = union {
object { Coffee_Pot_Top translate 3*y texture { Glass2 } }
object { Coffee_Pot_Base translate 0.5*y texture { Glass2 } }
object { Coffee_Pot_Body texture { Glass2 } }
cylinder { <0,0.5,0>,<0,1,0>,2.0001 open texture { PC_T } }
cylinder { <0,2.5,0>,<0,3,0>,2.0001 open texture { PC_T } }
object { Handle translate -0.25*y texture { PB_T } }
cylinder { <0,0,0>,<0,0.1,0>,1.5 texture { Glass2 } }
bounded_by { box { <-2.1,-0.1,-3.1> <2.1,3.6,2.1> } }
}
#declare Base0 = cylinder { <0,0,0>,<0,1,0>,4 }
#declare Base1 = union {
torus { 2.5,0.125 translate y }
cylinder { <0,1,0>,<0,0.075,0>,2.5 }
}
#declare Coffee_Machine = union {
object { Struct texture { PC_T } }
object { PT }
object { Base0 texture { PB_T } }
sphere { <0,8.5,-1.8>,0.15 texture { Green_Button_T } }
sphere { <0,7.5,-1.8>,0.15 texture { Red_Button_T } }
object { Base1 texture { PC_T } }
bounded_by { box { <-4.1,-0.1,-4.1> <4.1,13,4.1> } }
}
#declare T0 = intersection {
cylinder { <0,0.125,0>,<0,1.5,0>,0.875 }
cylinder { <0,-1,0>,<0,2,0>,0.625 inverse }
}
#declare Handle_Cup = intersection {
torus { 0.5,0.1 rotate 90*x }
plane { -x,0 }
}
#declare Cup = union {
torus { 0.75,0.125 translate 1.5*y }
object { T0 }
torus { 0.75,0.125 translate 0.125*y }
object { Handle_Cup translate <0.7,0.75,0> }
}
// ----- SCENE
// -----------
object { Coffee_Machine rotate -20*y translate -2*x }
object { Coffee_Pot rotate -65*y translate <-2,1,0> }
object { Cup texture { Cup_T } translate <4,0,-2> }
box { <-50,-1,-15> <50,0,10> texture { Plane_T } }
plane { z,6 texture { Wall_T } }
// ----- CAMERA & LIGHTS
// ---------------------
camera { location <0,8,-15> look_at <0,5.5,0> }
//light_source { <20,20,-20> color White }
light_source {
<20,20,-20> color White
spotlight
point_at <-2,5,0>
radius 35
falloff 45
tightness 20
}
light_source { <-30,20,-10> color rgb <0.5,0.5,0.5> }