// 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 = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_blue = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_green = texture{ pigment{ color rgb < 0.10, 1.00, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 1.5 } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #include "eixos.inc" // Aqui está a cena, finalmente: #local pata_r = 0.13; #local pata_len = 0.3; #local cube_l = 2; union{ object{ eixos(3.00) } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } box { <0,0,0>, texture{ tx_fosca } } cylinder { <0.5,1,1>, <0.5,2.2,2.6>, 0.12 texture{ tx_green } } cylinder { <1.5,1,1>, <1.5,2.2,2.6>, 0.12 texture{ tx_blue } } sphere{ <0.5,2.2,2.6>, 0.40 texture{ tx_green } } sphere{ <1.5,2.2,2.6>, 0.40 texture{ tx_blue } } cone{ <0.5, 2.45, 2.85>, 0.1, <0.5, 2.65, 3.05>, 0 texture{ tx_green } } cone{ <1.65, 2.45, 2.85>, 0.1, <1.8, 2.65, 3.05>, 0 texture{ tx_blue } } cone{ <1.35, 2.45, 2.85>, 0.1, <1.2, 2.65, 3.05>, 0 texture{ tx_blue } } cylinder { , , pata_r texture{ tx_plastico } } cylinder { , , pata_r texture{ tx_plastico } } cylinder { , , pata_r texture{ tx_plastico } } cylinder { , , pata_r texture{ tx_plastico } } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; //#declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dir_camera = < 10.00, 20.00, 7.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)