// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2010-03-04 15:44:01 by stolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca_amarela = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca_verde = texture{ pigment{ color rgb < 0.2, 0.8, 0.1 > } finish{ diffuse 1 ambient 1 } } #declare tx_xadrez = texture { pigment {checker color rgb <1,1,1>, color rgb <0,0,0>} finish { diffuse 0.9 ambient 0.1} scale 2.0 } #declare tx_xadrez_verde = texture{ pigment{ checker color rgb < 0.10, 0.62, 0.10 >, color rgb < 0.20, 0.97, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #declare caixa = box{ <0,0,0>, < 10,10,10> texture{ tx_fosca_amarela } } #declare furo = box{ <1,1,1>, < 9,9,11> texture{ tx_xadrez} } #declare bola = sphere{ < 0,0,0 >, 2 texture{ tx_fosca_verde} } #declare haste = cylinder { < 5, 5, 1.5>, <0, 0, 15>, 0.75 texture{ tx_xadrez_verde} } #declare cone1 = cone { <0, 0, 0>, 3.5, <0, 0, 3>, 1.5 texture{ tx_plastico} } #include "eixos.inc" // Aqui está a cena, finalmente: union{ difference { object{ caixa } object{ furo } } object{ bola translate <0, 10, 15>} object{ haste } object{ haste rotate <0,0,270> translate <0,10,0>} object{ cone1 rotate <30,30,270> translate <0,0,15> } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 30.0; #declare dir_camera = < 14.00, 7.00, 14.00 >; #declare dist_camera = 160.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)