// MC930 - Exemplo de main.pov para o trabalho final // Last edited on 2000-12-14 09:07:40 by mc726 // MONUMENTO #include "colors.inc" #include "textures.inc" #include "woods.inc" #include "stones1.inc" #include "glass.inc" #include "metals.inc" #include "finish.inc" #include "stoneold.inc" camera { location <-20, 5, 7.5> look_at <7.5, 5, 7.5> // focal_point < -5, 5, 10> // aperture 1 // a nice compromise menor = maior abertura de foco // blur_samples 20 // more samples, higher quality image } light_source { <30, 30, 30> color White media_attenuation on } light_source { <-30, 30, 30> color White media_attenuation on } light_source { <-30, 0, 15> color White media_attenuation on } #declare grama = texture { pigment { bozo colour_map { [ 0.00 color rgb <0.7, 0.9, 0.3> ] [ 0.33 color rgb <0.6, 0.8, 0.3> ] [ 0.66 color rgb <0.6, 0.95, 0.3> ] [ 1.00 color rgb <0.65, 0.7, 0.3> ] } } normal { bumps 0.9 scale 0.005 } finish { phong 1} } background { color rgb <0.2, 0.2, 0.3> } sky_sphere { pigment { gradient y color_map { [0 color Red] [1 color Blue] } scale 2 translate -1 } pigment { bozo turbulence 0.65 octaves 6 omega .6 //0.7 lambda 2 color_map { [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>] [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>] [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>] } scale <0.1, 0.1, 0.1> //scale <0.2, 0.5, 0.2> } rotate -135*x } #declare plano = plane { y,0 texture {grama} normal{bumps 0.6} } fog { distance 40 //distancia da neblina color rgbf<1, 1, 1, 1> fog_type 2 fog_offset 5 //altura da neblina fog_alt 5 // velocidade que a neblina fica menos densa ao se aproximar de y=0 } // declare rainbow's colors #declare r_violet1 = color rgbf<1.0, 0.5, 1.0, 1.0>; #declare r_violet2 = color rgbf<1.0, 0.5, 1.0, 0.8>; #declare r_indigo = color rgbf<0.5, 0.5, 1.0, 0.8>; #declare r_blue = color rgbf<0.2, 0.2, 1.0, 0.8>; #declare r_cyan = color rgbf<0.2, 1.0, 1.0, 0.8>; #declare r_green = color rgbf<0.2, 1.0, 0.2, 0.8>; #declare r_yellow = color rgbf<1.0, 1.0, 0.2, 0.8>; #declare r_orange = color rgbf<1.0, 0.5, 0.2, 0.8>; #declare r_red1 = color rgbf<1.0, 0.2, 0.2, 0.8>; #declare r_red2 = color rgbf<1.0, 0.2, 0.2, 1.0>; rainbow { angle 40 //42.5 width 4 //5 distance 1e7 //distance 1e7 direction <.5, -.2, .15> //direction <-0.2, -0.2, -1> jitter 0.01 color_map { [0.000 color r_violet1 transmit 0.96] [0.100 color r_violet2 transmit 0.94] [0.214 color r_indigo transmit 0.92] [0.328 color r_blue transmit 0.90] [0.442 color r_cyan transmit 0.88] [0.556 color r_green transmit 0.90] [0.670 color r_yellow transmit 0.92] [0.784 color r_orange transmit 0.94] [0.900 color r_red1 transmit 0.96] } } #declare eixos_cartesianos = union { cylinder { <0,0,0>, <15,0,0>, 1 pigment { color rgb <1,0,0> } } // cylinder { <0,11,0>, <0,15,0>, 1 pigment { color rgb <0,1,0> } } cylinder { <0,0,0>, <0,0,15>, 1 pigment { color rgb <0,0,1> } } } #declare pilastra = box{<.5,0,12>, <1,4,12.2> texture{T_Wood32} // texture { Glossy } } #declare pilastras = union { object{pilastra translate<4,0,0>} object{pilastra translate<6,0,0>} object{pilastra translate<8,0,0>} object{pilastra translate<10,0,0>} object{pilastra translate<12,0,0>} // object{pilastra} object{pilastra translate<4,0,2>} object{pilastra translate<6,0,2>} object{pilastra translate<8,0,2>} object{pilastra translate<10,0,2>} object{pilastra translate<12,0,2>} } #declare telhado = box {<3,0,0>, <14,.5,3> // rotate<15,0,0> translate<0,4,12> texture{T_Grnt1} // texture { Glossy } } #declare caixa = difference { box{<0,0,-5>, <15.25,5,10> pigment {White} texture{T_Grnt16} // texture { Glossy } } box{<-0.5,-0.5,0>, <4.3,5.3,5> pigment {color rgb<1,1,1,1>} } } #declare caixa2 = merge { object{caixa} box{<4,0,0>, <7,7,5> texture{T_Grnt16} // texture { Glossy } } } #declare coca = box{<2.5,0,.5>, <3.5,2.5,1.5> pigment {P_Chrome1} // texture { Glossy } } #declare janela1 = box {<0,1,-4.75>, <-0.2,3.5,-3.75> texture {T_Glass2} // texture { Glossy } } #declare janela2 = box {<-.5,-1.25,-0.1>, <.5,1.25,0.1> texture {T_Glass2} // texture { Glossy } } #declare janela1B = union {object{janela1 translate<0,0,.25>} object{janela1 translate<0,0,1.75>} object{janela1 translate<0,0,3.25>} object{janela1 translate<0,0,10.25>} object{janela1 translate<0,0,11.75>} object{janela1 translate<0,0,13.25>} object{janela2 translate<1.25,2.25,10>} object{janela2 translate<2.75,2.25,10>} object{janela2 translate<4.25,2.25,10>} object{janela2 translate<6.25,2.25,10>} object{janela2 translate<7.75,2.25,10>} object{janela2 translate<9.25,2.25,10>} object{janela2 translate<11.25,2.25,10>} object{janela2 translate<12.75,2.25,10>} object{janela2 translate<14.25,2.25,10>} object{janela2 translate<1.25,2.25,-5>} object{janela2 translate<2.75,2.25,-5>} object{janela2 translate<4.25,2.25,-5>} object{janela2 translate<6.25,2.25,-5>} object{janela2 translate<7.75,2.25,-5>} object{janela2 translate<9.25,2.25,-5>} object{janela2 translate<11.25,2.25,-5>} object{janela2 translate<12.75,2.25,-5>} object{janela2 translate<14.25,2.25,-5>} object{janela2 translate<1,2.25,5.3>} object{janela2 translate<2.2,2.25,5.3>} object{janela2 translate<3.4,2.25,5.3>} } #declare porta = merge{ object{caixa2} box {<4.2,0,1.75>, <3.8,4,4> pigment {P_Brass3} // texture { Glossy } } } #declare toldo = prism { linear_sweep linear_spline -1.125, // sweep the following shape from here ... 2, // ... up through here 4, // the number of points making up the shape ... <-1,-1>, <0,-1>, <-1,1>, <-1,-1> pigment { Blue } rotate<-90,0,90> translate<4,5,4> // texture { Glossy } } #declare exaustor = merge{ box{ <-1,-1.3,-1>, <1,-.75,1> pigment{Yellow} } prism { conic_sweep linear_spline 0, // sweep the following shape from here ... 1, // ... up through here 5, // the number of points making up the shape ... <-1,-1>, <1,-1>, <1,1>, <-1,1>, <-1,-1> pigment { Yellow } rotate<180,0,0> scale <0,.75,0> } //texture { Glossy } } #declare exaustor2 = union { object{exaustor translate<2,6.1,7.7>} object{exaustor translate<2,6.1,-2.3>} object{exaustor translate<13,6.1,7.7>} object{exaustor translate<13,6.1,-2.3>} } #declare piso = box{<-3,0,-8>, <20.25,.2,16> pigment {White} // texture { Glossy } texture{Grnt0} } #declare placa = merge{ box{<-2,1,-5> <-1.8,2.5,-3> pigment{P_Chrome1} } cylinder{<-1.9,0,-4.5>, <-1.9,1.2,-4.5>, .1 pigment{P_Chrome1} } cylinder{<-1.9,0,-3.5>, <-1.9,1.2,-3.5>, .1 pigment{P_Chrome1} } text { ttf "timrom.ttf" "IC3" .2,0 texture {Bright_Bronze} rotate<0,90,0> translate<-2.1,1.5,-3.2> }} #declare ic3 = union{ //object{eixos_cartesianos translate<-5,0,-10>} object{plano} object{pilastras} object{telhado} object{janela1B} object{porta} object{toldo} object{coca} object{exaustor2} object{piso} object{placa} finish {ambient .2 diffuse .8 reflection .15 specular 1 roughness .001} finish { phong 1 } } object{ic3 translate<0,0,2>}