// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2017-05-07 20:10:09 by stolfilocal // ====================================================================== // CORES E TEXTURAS #include "colors.inc" background{ color rgb < 0, 0, 0 > } #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_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 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.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; #declare prisma = prism {0,25,9, <0,-10>, <-10,0>, <0,10>, <7.5,0>, <15,10>, <20,-5>, <25,-5>, <16,-15>, <14,-10>} #declare furo = prism {-1,26,9, <0,-9.8>, <-9.8,0>, <0,9.8>, <7.5,-0.2>, <15,9.8>, <20,-5.2>, <25,-5.2>, <16, -14.8>, <14,-9.8>} light_source { <0,7,-5>, color White} difference { difference { object{prisma rotate <0,0,90> translate <10,0,0> texture{pigment{White}}} object{furo rotate <0,0,90> translate <10,0,0> texture{pigment{White}}} } text{ ttf "arial.ttf" "MC937" 5 0 pigment {White} scale 2.5 rotate<0,0,90> translate<0,3,-16>} } object{box{<-200,-200,-20>, <200,200,-20> texture{pigment{White}}}} #include "eixos.inc" object{eixos(10)} #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 50; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 0.2; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)