//Leandro Brioschi de Oliveira //MC 930 21-12-2000 Exercicio Pov_Ray - Professor Stolfi #include "colors.inc" #include "textures.inc" #declare grama = texture { pigment { color Green } normal { bumps 0.9 scale 0.005 } finish { phong 1} } background { SkyBlue } light_source { <18, 15, -15> White } plane { y, 0 texture { grama} } camera { location < 12.00, 12.00, -10.00 > look_at < 18.00, 0 , 15.00 > } #declare RedX = texture { pigment { color Red } normal { bumps 0.6 scale 0.2 } finish { phong 1} } #declare YellowX = texture { pigment { color Yellow } normal { bumps 0.6 scale 0.2 } finish { phong 1} } #declare BlueX = texture { pigment { color Blue } normal { bumps 0.6 scale 0.2 } finish { phong 1} } #declare cilindro_corpo = cylinder { <4.00, 15.00, 0.00> <4.00, 15.00, 6.00> 4.00 pigment { Blue } } #declare cilindro_corpo_dentro = cylinder { <2.25, 0.50, 3.5> <2.25, 7.6, 3.5> 1.75 pigment { color Red } } #declare muro_da_frente = box { < 0.00, 0.00, 0.00 >, < 8.0, 2.00, 0.20 > pigment { Blue } } #declare muro_do_fundo = box { < 0.00, 0.00, 30 >, < 36 , 2.00, 30.2 > pigment { Blue } } #declare muro_lateral_esquerda = box { < 0.00, 0.00, 0.00 >, < .2, 2.00, 30 > pigment { Blue } } #declare muro_lateral_direita = box { < 36.00, 0.00, 30.00 >, < 36.2, 4.00, 0 > pigment { Blue } } #declare base_portao = box { <8, 0, 0>, <9, 2, 0.1> pigment { Gray } } #declare superior_portao = cylinder { <8.5, 2 , 0.0> <8.5, 2 , 0.1> 0.5 pigment { Gray } } #declare portao = union { difference {object {superior_portao} object {base_portao} } object {base_portao} } #declare portao2 = box { <17, 0 ,0.2> <20, 2, 0.3 > pigment { Brown} } #declare piscina = box { <20, 0, 27> <30, -1, 23> texture {Water} } #declare vermelhorugoso = texture { pigment { color Red } normal { bumps 0.6 scale 0.2 } finish { phong 1} } #declare esfera_corpo = sphere { < 10.50, 7.5, -4.50 >, 3.0 texture { YellowX } } #declare esfera_corpo_dentro = sphere { < 10.50, 7.5, -4.50 >, 2.50 pigment { color Yellow } } #declare corte_esfera = box { < 7.50, 7.5, -7.5 >, < 14.0, 11.50, 7.0 > pigment { color Yellow } } #declare solar = box { < 36.0, 0, 30 >, < 33.0, 1.5, 22 > pigment {Gray} } #declare escada_solar = union { box { < 33.0, 0, 30 >, < 32.7, 1.5, 29 > pigment {Yellow} } box { < 32.7, 0, 30 >, < 32.4, 1.3, 29 > pigment {Yellow} } box { < 32.4, 0, 30 >, < 32.1, 1.1, 29 > pigment {Yellow} } box { < 32.1, 0, 30 >, < 31.8, 0.8, 29 > pigment {Yellow} } box { < 31.8, 0, 30 >, < 31.5, 0.5, 29 > pigment {Yellow} } box { < 31.5, 0, 30 >, < 31.2, 0.2, 29 > pigment {Yellow} } } #declare pilar_churras = box { < 19, 0, 23.6 >, < 18.6, 2.5, 24 > pigment {Gray} } #declare pilar2_churras = box { < 19, 2.5, 23.6>, < 13.6,3.1, 24> pigment {Gray} } #declare teto_churras = box { < 0, 0, 30>, < 4,0.2, 23.1> pigment {Gray} } #declare casa = box { < 2,0, 2>, < 12,2.5,28> pigment {Red} } union { object {casa} object {teto_churras rotate <0,0,21> translate <12.67,2.5,0>} object {teto_churras scale <-1,0,0> rotate <0,0,-21> translate <20.2, 2.5,0>} object {pilar_churras} object {pilar2_churras} object {pilar_churras translate <-5,0,0> } object {solar} object {escada_solar} object {muro_da_frente } object {piscina} object {muro_do_fundo } object {muro_lateral_esquerda } object {muro_lateral_direita } object {portao} object {muro_da_frente translate <9, 0 , 0> } object {muro_da_frente scale < 2, 1, 1> translate <20, 0 , 0>} object {portao2} }