// Aluna : Carina Marques Silva ra001427 #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" #declare Fin = finish { phong 0.9 metallic 1 } // ====================================================================== // CÂMERA camera { location < 5.00, 8.00, 1.00 > // Posição do observador. right -0.6*x // Largura RELATIVA da imagem. up 0.8*z // Altura RELATIVA da imagem. sky z // Qual direção é "para cima"? look_at < 0.00, 0.00, 0.00 > // Para onde a câmera está apontando. } // ====================================================================== // FONTES DE LUZ light_source { < -10.0, -15.0, +30.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.9 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } background { color rgb <0.5 , 0.5, 0.7> } // ====================================================================== // DESCRIÇÃO DA CENA #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color Yellow filter 1} } # declare tx_espelho = texture { pigment { color Green } finish{ ambient 0.05 diffuse 0.05 reflection color Green specular 0.2 roughness 0.05 } } #declare raio = 2.000; #declare taca = union{ difference{ cone { <2, 2, 2.1> 0 <2, 2, 0>, 0.9 texture { tx_espelho normal { ripples 2.0 } } no_shadow interior {ior 1.5} } box { <-3, -3 , 3.8> < 3, 3, 1.1> pigment { color Blue } no_shadow } box { <2.8 , 2.8, -0.02> <2.3 , 2.3, 0.5> pigment { color rgb <0.5,0.7,0.6> } } } difference{ torus { 0.75 ,0.17 pigment { Gray40 } rotate 90*x translate <2, 2, 0> no_shadow hollow interior{ior 1.3} texture { tx_cristal} } box { <2.8 , 2.8, -0.02> <2.3 , 2.3, 0.5> pigment { color rgb <0.5,0.7,0.6> } } } } #declare topo = union{ sphere { <2,2,1.5> 0.3 texture {tx_cristal} pigment {color Gray filter 0.2 } } cylinder { <2,2,1.5> <2,2,1.1> 0.3 texture {tx_cristal} pigment {color Gray filter 0.2 } } cylinder { <2,2,1.7> <2,2,2.0> 0.03 texture {tx_cristal} pigment {color Gray filter 0.2 } } triangle { <2,2 ,1.8> ,<2,2,2.0> ,<2,2.3,1.85> pigment {color Red} } } #declare fundo = union { plane { z,-2 pigment { color Aquamarine } finish { metallic 0.3 } } plane { x, -10 pigment { checker Blue , White} finish { metallic 0.3 } } sphere { <3,3,-1.0> 0.08 pigment {checker Magenta ,White } } sphere { <2.5,3.7,-1.0> 0.08 pigment {checker Magenta ,White } } sphere { <4,2,-1.0> 0.08 pigment {checker Magenta ,White } } } #declare cilindroX = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.01 pigment { color Red } } #declare cilindroY = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.01 pigment { color Blue } } #declare cilindroZ = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.01 pigment { color Green} } union { object { fundo } object { taca } object { topo} translate <0.8 ,2 ,0> }