// 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_fosca2 = texture{ pigment{ color rgb < 0.10, 0.40, 1.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca3 = texture{ pigment{ color rgb < 0.30, 0.50, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.8 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #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 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0, 0, 0 >, color rgb < 1, 1, 1 > filter 0.9} finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; // Partes da cena: #declare furo = cylinder{ < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 20.00 >, 9.00 texture{ tx_vidro } } #declare chao = box{ <-70,-70,-1>, <+90,+90,0> } #declare caixa = box{ <0, 0, 0>, <20, 20, 20> texture{ tx_xadrez } } #declare pino = cylinder{ < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 38.99 >, 4.00 texture{ tx_plastico } } #declare tampo_redondo = cylinder{ < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 0.98 >, 14.00 texture{ tx_fosca2 } } #declare pinos = cylinder{ < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 19.99 >, 1.00 texture{ tx_fosca } } #declare tampo_retangular = box{ <0, 0, 0>, <40, 40, 1> texture{ tx_fosca3 } } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(25.00) } object{ chao texture{ tx_vidro } } difference{ object{ caixa } object{ furo translate <10, 10, 1> } } object{ pino translate <10, 10, 1> } object { tampo_redondo translate <10, 10, 40.00> } object{ pinos translate < 2, 10, 40.00> } object{ pinos translate <18, 10, 40.00> } object { tampo_retangular translate <-10, -10, 60> } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 110.0; #declare dir_camera = < 1.00, 1.00, 1.00 >; #declare dist_camera = 155.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)