// Last edited on 2007-07-22 21:31:32 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 tinta_C = texture { pigment { color rgb < 0.75, 0.80, 0.85 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare tinta_D = texture { pigment { color rgb < 0.10, 0.10, 1.00 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare caixa = box { <0.00, 0.00, 0.00>, <2.0, 2.0, 1.0> texture { tinta_A } } #declare cilindro1 = cylinder{ < +1.00, +1.00, 0.00 >, < 1.00, 1.00, 2.00 > 0.50 texture { tinta_C } } #declare cilindro2 = cylinder{ < +1.00, +1.00, 0.00 >, < 1.00, 1.00, -4.00 > 0.50 texture { tinta_B } } #declare cone1 = cone{ < 1.00, 1.00, -4.00 >,0.50 < 1.00, 1.00, -2.5 >,0.00 texture {tinta_D } } // Aqui está a cena, finalmente: difference { union { difference { object { caixa } object { cilindro1 } } object {cilindro2} } object {cone1} box { < 1, -10, -10 >, < 3, +1, +10 > texture { tinta_B } } // [js] } #include "camlight.inc" camlight(<1,1,-1>,<10,-10,+15>,0.40,z,1.0)