// Last edited on 2004-12-11 17:05:19 by stolfi background { color rgb < 1.00, 0.98, 0.95 > } #declare cam_ctr = <0,0,0>; #declare cam_dir = <4,3,3>; camera { location cam_ctr + 3.5*cam_dir // Posição do observador. right -1.00*x // Largura RELATIVA da imagem. up 0.75*y // Altura RELATIVA da imagem. sky z // Qual direção é "para cima"? look_at cam_ctr // Para onde a câmera está apontando. } #declare tinta_A = texture { pigment { color rgb < 0.10, 1.00, 0.30 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } light_source { 10 * < +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 { 10 * < +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. } // Eixos de coordenadas: #declare axis_R = 0.1; #declare axis_L = 5.0; #macro arrow(dir) union { cylinder { <0,0,0>, axis_L*dir, axis_R } cone { axis_L*dir, 3*axis_R, (axis_L+5*axis_R)*dir, 0 } } #end #declare axes = union { sphere { <0,0,0>, 2*axis_R pigment { color rgb <0,0,0> }} object { arrow(x) pigment { color rgb <1,0.2,0.2> }} object { arrow(y) pigment { color rgb <0,1,0> }} object { arrow(z) pigment { color rgb <0.3,0.3,1> }} } object{axes} // Caixas box { < 1.0, 1.0, 1.0 >, < 2.0, 3.0, 4.0 > texture { tinta_A } } box { < 0.1, 3.1, 4.1 > < 1.0, 5.0, 5.0 > texture { tinta_B } } box { < 2.1, 1.1, 1.1 > < 3.0, 2.0, 3.0 > texture { tinta_B } }