Документ взят из кэша поисковой машины. Адрес оригинального документа : http://hea-www.harvard.edu/~fine/POV/src/mag_mirror.anim.pov
Дата изменения: Thu Nov 11 03:20:41 2004
Дата индексирования: Tue Oct 2 07:32:47 2012
Кодировка:
#default {
finish { ambient 0.4 }
}

camera
{
up <0, 1, 0>
right <1, 0, 0>
location <-30,9,4>
look_at <0,1,5>
angle 20
//excellent view of mirror hinge detailing, and light bulb access panel
//look_at <0,0.65,6.13>
//angle 5.5
//excellent view of base hinge detailing and nut/swtich knurling
//location <-30,-15,4>
//look_at <0,0,1>
//angle 3
}

#include "colors.inc"


#declare whitepaint = texture { pigment { color rgb <1,1,1> } finish { diffuse 0.8 specular 0.2 } }
#declare redpaint = texture { pigment { color rgb <1,0,0> } finish { diffuse 0.8 specular 0.2 } }
#declare greenpaint = texture { pigment { color rgb <0 1 0> } finish { specular
0 reflection 0 diffuse 0.7 } }
#declare offwhitepaint = texture { pigment { color rgb <0.9 0.9 0.8> } finish { specular 0 reflection 0 diffuse 0.7 } }
#declare blackrubber = texture { pigment { color rgb <0.2 0.2 0.2> } finish { specular 0 reflection 0 diffuse 0.7 } }
#declare blackplastic = texture { pigment { color rgb <0.2 0.2 0.2> } finish { specular 0.4 reflection 0 diffuse 0.5 } }

background { color Black }

light_source { <10,10,10> color rgb <0.4,0.4,0.4> }
light_source { <-5,10,3> color rgb <0.7,0.7,0.7> }
//lights the base well
//light_source { <-5,-10,3> color rgb <0.7,0.7,0.7> }
//lights the back of the mirror well, when back is turned 90 degrees
//light_source { <-10,8,13> color rgb <0.7,0.7,0.7> }

//back wall
//box { <-15,-15,15> <15,15,15> texture { offwhitepaint } }
//x-y plane wall, if facing from -z
//box { <-15,-15,0> <15,15,1> texture { offwhitepaint } }
//x-y plane wall, if facing from +z
box { <-45,-45,0> <45,45,-1> texture { offwhitepaint } }
//x-z plane wall (horizontal)
//box { <-15,0,-15> <15,-1,15> texture { offwhitepaint } }

#declare AXIS_DIAM=0.02;
//x-axis
cylinder { <-45,0,0> <45,0,0> AXIS_DIAM texture { greenpaint } }
//y-axis
cylinder { <0,-45,0> <0,45,0> AXIS_DIAM texture { greenpaint } }
//z axis
//cylinder { <0,0,-45> <0,0,45> AXIS_DIAM texture { greenpaint } }
//text {
//ttf "cyrvetic.ttf" "Z" 0.1 0
//scale 0.5
//translate <-0.5,0,12>
//texture { greenpaint }
//}
text {
ttf "cyrvetic.ttf" "X" 0.1 0
scale 0.7
rotate 90*y
translate <9,0,0.9>
texture { greenpaint }
}
text {
ttf "cyrvetic.ttf" "Y" 0.1 0
scale 0.5
rotate 90*y
translate <0,4,0.6>
texture { greenpaint }
}

#include "mag_mirror.pov"

#declare BANG=60;
#declare MANG=120;
#declare HANG=60;
#declare UPANG=90;

#if (clock<10)
object { mag_mirror(clock/10*BANG,0,0,0) }
#end
#if (clock>=10 & clock<20)
object { mag_mirror(BANG,-(clock-10)/10*MANG,0,0) }
#end
#if (clock>=20 & clock<30)
object { mag_mirror(BANG,-MANG,(clock-20)/10*HANG,0) }
#end
#if (clock>=30 & clock<40)
object { mag_mirror(BANG,-MANG,HANG,-(clock-30)/10*UPANG) }
#end
#if (clock>=40 & clock<=50)
object { mag_mirror((50-clock)/10*BANG,-(50-clock)/10*MANG,(50-clock)/10*HANG,-(50-clock)/10*UPANG) }
#end