// Last edited on 2003-10-22 03:17:54 by stolfi global_settings { max_trace_level 10 } #declare ctr = < 1.50, 1.50, 2.00 >; #declare camdir = < 8.00, 16.00, 8.00 >; camera { location ctr + 0.60*camdir right -1.00*x up 0.75*y sky z look_at ctr } #include "colors.inc" background{ color rgb<1,1,0.8> } // ====================================================================== // FONTES DE LUZ light_source { 100 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 100 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== #declare cor_cristal_rosa = color rgb <1,0.8,0.8> ; #declare tx_cristal_rosa = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_cristal_rosa filter 1} } #declare cor_cristal_white = color White; #declare tx_cristal_white = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_cristal_white filter 1} } #declare cor_espelho = <0,0,1>; #declare tx_espelho = texture{ pigment { rgb cor_espelho } finish { ambient 0.05 diffuse 0.05 reflection Gray specular 0.20 roughness 0.05 } } //eixos #declare eixox = cylinder { < -5.00, 0.00, 0.00 >, < 5.00, 0.00, 0.00 >, 0.05 pigment { color Black } } #declare eixoy = cylinder { < 00, -5.00, 0.00 >, < 00, 5.00, 0.00 >, 0.05 pigment { color Black } } #declare eixoz = cylinder { < 0.0, 00, -5.00 >, < 0.0, 00, 5.00 >, 0.05 pigment { color Black } } #declare caixa = box { < 00, 00, 00 >, < 3.00, 3.00, 4.00 > texture{ tx_espelho } } #declare porta = torus { 0.9, 0.1 texture{ tx_cristal_white } } #declare porta1 = object{porta translate <1.5,3.05,0.4> } #declare porta2 = object{porta translate <1.5,3.25,0.3> } #declare porta3 = object{porta translate <1.5,3.45,0.2> } #declare porta4 = object{porta translate <1.5,3.65,0.1> } #declare porta5 = object{porta translate <1.5,3.85,0> } #declare porta5 = object{porta translate <1.5,4.05,0.5> } #declare porta6 = object{porta translate <1.5,4.25,0.6> } #declare emcima = difference { torus { 2.34, 0.15 translate <0,0,-0.9> } box { < -5.00, -5.00, 00 >, < 5.00, 5.00, -4.00 > } texture{ tx_cristal_white } hollow interior{ior 1.5} } #declare aboboda1= object{emcima rotate z*45 translate <1.5,1.5,4> } #declare aboboda2 = object{ emcima rotate z*-45 translate <1.5,1.5,4> } #declare emcima2 = difference{ torus { 1.38, 0.15 translate <0,0,-0.1> } box { < -5.00, -5.00, 00 >, < 5.00, 5.00, -4.00 > } texture{ tx_cristal_rosa } hollow interior{ior 3} } #declare aboboda3 = object{emcima2 rotate z*90 translate <1.5 ,1.5,4> } #declare aboboda4 = object{emcima2 rotate z*180 translate <1.5 ,1.5,4> } #declare haste = union{ cylinder { <0,0,1> <0,0,4>,0.15 hollow interior{ior 3} texture{ tx_cristal_white } } cone{ <0,0,0> 0.35 <0,0,1>0.15 hollow interior{ior 3} texture{ tx_cristal_white } } } #declare haste1 = object{ haste translate<3.1,3.1,0> } #declare haste2 = object{ haste translate<0,3.1,0> } #declare haste3 = object{ haste translate<3.1,0,0> } #declare haste4 = object{ haste } #declare chao = plane {z,0 color pigment {checker color rgb<1,1,1> color rgb<1,.9,0.9> } } // Aqui está a cena, finalmente: union { object{caixa} object{chao} object{porta1} object{porta2} object{porta3} object{porta4} object{aboboda1} object{aboboda2} object{aboboda3} object{aboboda4} object{haste1} object{haste2} object{haste3} object{haste4} }