// Quarto Exercicio de MC930 // Editado em 26/10 // Fabio Yuasa Niizu RA:962325 background{ color rgb < 1,1, 1 > } light_source { < 5.00, -20.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 0.00, -14.00, 0.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare raio = 2.000; #declare tinta_red = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_blue = texture { pigment { color rgb < 0, 0, 1 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_green = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_white = texture { pigment { color rgb < 1, 1, 1 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bolaSuperior = sphere { < 0, 0.00, 5.00 >, 1.00 texture { tinta_green } } #declare bolaInferior = sphere { < 0, 0.00, -5.00 >, 1.00 texture { tinta_green } } #declare cilindro = cylinder { < 0.00, 0.00, 5.00 >, < 0.00, 0.00, -5.00 >, 0.50 texture { tinta_red } } #declare bolaEsquerda = sphere { < -5.00, 0.00, 0.00 >, 1.00 texture { tinta_green } } #declare bolaDireita = sphere { < 5.00, 0.00, 0.00 >, 1.00 texture { tinta_green } } #declare cilindroDeitado = cylinder { < -5.00, 0.00, 0.00 >, < 5.00, 0.00, 0.00 >, 0.50 texture { tinta_red } } #declare Caixa = box { < -2, -2, -2>, // Near lower left corner < 2, 2, 2> texture { tinta_blue } } #declare Logo = union { object { bolaSuperior } object { bolaInferior } object { cilindro } object { Caixa } object { bolaEsquerda } object { bolaDireita } object { cilindroDeitado } text { ttf "arial.ttf" "FYN" 1.00, 0.00 texture { tinta_white } rotate <90, 0, 0> translate <-0.85, -2, -0.25> } } // Aqui está a cena, finalmente: object { Logo translate }