// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2001-07-31 00:47:27 by stolfi #include "colors.inc" background {color rgb <0.50, 1.00, 1.00> } camera { location 1.2*< 0.00, 0.00, 20.00> right <-0.80, 0.00, 0.00> up < 0.00, 0.00, 0.60> sky < 0.00, 1.00, 0.00> look_at < 0.00, -1.20*clock, 0.00> } light_source { <30, 20, 30> color White } #declare tinta_Azul = texture { pigment { color rgb < 0, 0, 1 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Verde = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Vermelho = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Amarelo = texture { pigment { color rgb < 1, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cor_espelho = <0.8, 0.8, 1.0> #declare tx_espelho = texture { pigment{ rgb cor_espelho} finish{ ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare cor_cristal = <1.0, 1.0, 1.0> #declare tx_cristal = texture { finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 0.1 roughness 0.001 } pigment { color cor_cristal filter 1} } // Os tres cilindros e somente para mostrar os eixos das coordenada #declare cilX_vm = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.1 texture { tinta_Vermelho } } #declare cilY_az = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.1 texture { tinta_Azul } } #declare cilZ_vd = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.1 texture { tinta_Verde} } #declare tampa = cylinder { < 0.0, 0.0, 2.5 >, < 0.0, 0.0, 4.0 >, 2.00 texture { tx_espelho} } #declare corpo = sphere { < 0.0, 0.0, 0.0 >, 4.00 texture { tx_espelho} } #declare base = cylinder { < 0.0, 0.0, -1.5 >, < 0.0, 0.0, -7.0 >, 2.50 texture { tx_espelho} } #declare plano = plane {<0.00, 0.00, 1.00>, 0 pigment { rgb <0.5, 0.5, 0.5>}} #declare chao = plane {<0.00, 0.00, -7.00>, 0 pigment { checker <1.0, 1.0, 1.0>, <0.5, 1.0, 1.0>} translate <0, 0, -2.5> } #declare msg_fim = text {ttf "arial.ttf" "Em nova embalagem" 0.15, 0 pigment {rgb <1, 1, 0>} } #declare msg_tampa = text {ttf "arial.ttf" "PSV" 0.15, 0.1 pigment {rgb <0,0,0>} } #if (clock > 0.9) object {msg_fim translate <-5, -4, 3> } #end union { object {msg_tampa translate <-0.5, 0, 4>} object {tampa} object {corpo} object {base} rotate -90*clock*x } object {chao}