// Last edited on 2007-03-31 19:10:33 by stolfi background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare caixa = box { < -1.00, -1.00, -1.00 >, < 1.00, 1.00, 1.00 > texture { tinta_A } } #declare chapeu = cone { < 0.00, 0.00, 0.00 >, 2.00, < 2.00, 2.00, 2.00 >, 1.00 texture { tinta_A } } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 2.00 texture { tinta_B } } #declare furo = cylinder { < -1.00, -2.00, -2.00 >, < +1.00, +2.00, +2.00 >, 1.50 texture { tinta_B } } #declare pino = cylinder { < -2.00, +2.00, -1.00 >, < +2.00, -2.00, +1.00 >, 0.75 texture { tinta_B } } // Aqui está a cena, finalmente: #declare base = union { box { < -1, -1, 6 >, < 1, 1, -8.00 > texture { tinta_A } } sphere { < 0.00, 0.00, 6.00>, 2.00 texture { tinta_B } } } #declare misturador = cylinder{ <0,0,-8>, <1,2,-9>, 0.5 texture {tinta_B} } union{ object {base} object {misturador} object { misturador translate <0,-2,0> rotate 45*z rotate -5*x rotate 10*y } } #include "camlight.inc" camlight(<0,0,-2>,<15.00,5.00,-8.00>,1.25,z,1.0)