// Aluna : Carina Marques Silva ra001427 // Last edited on 2003-10-22 04:12:49 by stolfi global_settings { max_trace_level 10 } // ====================================================================== // CÂMERA #declare ctr = < 2.80, 4.00, 0.75 >; #declare camdir = < 5.00, 8.00, 1.00 >; camera { location ctr + 0.38*camdir // Posição do observador. right -1.00*x up 0.75*y sky z // Qual direção é "para cima"? look_at ctr // Para onde a câmera está apontando. } // ====================================================================== // FONTES DE LUZ light_source { 100 * < 20.0, 15.0, +10.0 > // Posição da lâmpada. color rgb 0.6 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 100 * < 20.0, 50.0, +80.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" #declare Fin = finish { phong 0.9 metallic 1 } 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,0 pigment { color Aquamarine } finish { diffuse 0.9 ambient 0.1 } } plane { x, -10 pigment { checker color rgb <0.50,0.75,1.00>, White} finish { diffuse 0.5 ambient 0.5 } } 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> }