// 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 < 1,1,1 > } #declare tx_pe = texture{ pigment{ color rgb < 0, 0, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_pescoco = texture{ pigment{ color rgb < 0.87, 0.46, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_perna = texture{ pigment{ color rgb < 0.49, 0.99, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_corpo = texture{ pigment{ color rgb < 0.47,0.47,0.2 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_cabeca = texture{ pigment{ color rgb < 0.48,0.66,0.87 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_chapel = texture{ pigment{ color rgb < 0.49,0.80,0.49 > } finish{ diffuse 0.9 ambient 0.1 } } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 1.000; // Partes da cena: #declare bolaPe = sphere{ <0,0,0 >, 0.2 texture{ tx_pe } } #declare bolaCabeca1 = sphere{ <-0.4,+3.4, +4>, 0.40 texture{ tx_cabeca } } #declare bolaCabeca2 = sphere{ < +0.6, +3.4, +4 >, 0.40 texture{ tx_cabeca } } #declare perna = cylinder{ < 0, 0, 0>, <0,0, +2 >, 0.2 texture{ tx_perna} } #declare pescoco1 = cylinder{ <0,+3.2, +2 >, <+0.6,+3.4, +4 >, 0.2 texture{ tx_pescoco } } #declare pescoco2 = cylinder{ <0,+3.2, +2 >, <-0.4,+3.4, +4 >, 0.2 texture{ tx_pescoco } } #declare corpo = cylinder{ <0,0, +2 >, <0,3.2, +2 >, 0.6 texture{ tx_corpo } } #declare chapel = box{ < 0, 0, 0 >, < +0.8, +0.8, +0.4 > texture{ tx_chapel } } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(3.00) } object{ bolaPe translate < 2,0,0 > } object{ bolaPe translate < 2.4,3,0 > } object{ bolaPe translate < 2.4,0,0 > } object{ bolaPe translate < 2,3,0 > } object{ perna translate < 2,3,0 > } object{ perna translate < 2.4,3,0 > } object{ perna translate < 2.4,0,0 > } object{ perna translate < 2,0,0 > } object{ corpo translate < 2.2,0,0 > } object{ pescoco1 translate < 2.2,0,0 > } object{ pescoco2 translate < 2.2,0,0 > } object{ bolaCabeca1 translate < 2.2,0,0 > } object{ bolaCabeca2 translate < 2.2,0,0 > } object{ chapel translate <2.4,+3.0, +4.2> } object{ chapel translate <1.4,+3.0, +4.2> } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 7.0; #declare dir_camera = < 7.00, 14.00, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)