// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2017-05-07 20:10:09 by stolfilocal // ====================================================================== // Cores e Texturas background{ color rgb < 0, 0, 0> } #declare tx_plastico_branco = texture{ pigment{ color rgb < 1.0, 1.0, 1.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico_preto = texture{ pigment{ color rgb < 0.0, 0.0, 0.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico_vermelho = texture{ pigment{ color rgb < 0.90, 0.20, 0.10 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico_azul = texture{ pigment{ color rgb < 0.1, 0.2, 0.9 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_plastico_laranja = texture{ pigment{ color rgb < 1.0, 0.55, 0.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } // ====================================================================== // Declaração de Macros #include "eixos.inc" // plota animação ====================================================== union{ //object{ eixos(1.0) } light_source { <0, 0, 0>, rgb <1,1,1> } difference{ object{ difference{ // outter prism { linear_spline 0, 2, 9, <1,0>, <2,0>, <3,1>, <3,2>, <2,3>, <1, 3>, <0, 2>, <0, 1>, <1, 0> texture{ tx_plastico_laranja } } // inner prism { linear_spline 0, 2, 9, <1.1,0.1>, <1.9,0.1>, <2.9,1.1>, <2.9,1.9>, <1.9,2.9>, <0.9, 2.9>, <0.1, 1.9>, <0.1, 1.1>, <1.1, 0.1> texture{ tx_plastico_laranja } } } rotate <90, 0, 90> translate <-1.5, -1.5, -1.0> //scale <0.1, 0.1, 0.1> } object{ text { ttf "arial.ttf" "A" 5, 0 texture { tx_plastico_preto } } translate <-0.25, -0.5, -0.5> rotate <90, 0, 90> } } object{ box{ <4, -4, -4>, <4.02, 4, 4> texture { tx_plastico_branco } } rotate <90, 0, 0> } rotate <0, 0, 90 + 45> } // ====================================================================== // Declaração de Câmera #include "camlight.inc" #declare centro_cena = < 0.50, 0.50, 0.50>; #declare raio_cena = 5.0; #declare dir_camera = < 45, 0, 0 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)