//Leandro Brioschi de Oliveira //MC 930 09-11-2000 Exercicio Pov_Ray - Professor Stolfi #include "colors.inc" #include "textures.inc" background { SkyBlue } light_source { <18, 15, 15> White } plane { y, -20 texture { pigment { checker color Green color White } } } camera { location < -12.00, 15.00, -15.00 > look_at < 9.00, 0.0 , 0.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, 2.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, 28> <30, -1, 24> 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 } } union { 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} }