// 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_bola = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_roda = texture{ pigment{ color rgb < 0.25, 0.25, 0.25> } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_base = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; // Partes da cena: #declare bolinha = sphere{ < 0,0,0 >, raio*0.225 texture{ tx_roda } } #declare bola = sphere{ < 0.00, 0.00, 0.00 >, raio } #declare pe = cylinder{ < 0.00, 0.00, 0.50 >, < 0.00, +0.00, -0.50 >, 0.2*raio texture{ tx_base } } #declare base = cylinder{ < 0.00, 2.00, 0.00 >, < 0.00, -2.00, 0.00 >, 0.2*raio texture{ tx_base } } #declare basequadrada = box{ <1,2,-1.05>, <-1,-2,-0.25> texture{ tx_base } } #declare janela = box{ <+2,-0.40,2.25>, <-2,+0.40,03.0> } #declare janela1 = box{ <+2.01,-0.401,2.249>, <-2.01,+0.401,3.01> } #include "eixos.inc" // Aqui está a cena, finalmente: difference { object{ bola translate <0,0,2> } object {janela1 translate <0,+0.75,0>} object {janela1 translate <0,-0.75,0>} texture{ tx_bola } } intersection { object{ bola translate <0,0,2>} object {janela translate <0,-0.75,0>} texture{ tx_vidro } } intersection { object{ bola translate <0,0,2>} object {janela translate <0,+0.75,0>} texture{ tx_vidro } } object{ bolinha translate <-1,-1.5,-1.4>} object{ bolinha translate <+1,-0.5,-1.4>} object{ bolinha translate <+1,+0.5,-1.4>} object{ bolinha translate <-1,1.5,-1.4>} object {pe translate <0,-1,0> } object {pe translate <0,+1,0> } object {base translate <1,0,-0.65>} object {base translate <-1,0,-0.65>} object {basequadrada} #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; #declare dir_camera = <14.00, 7.00, 5.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)