// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2020-09-30 19:57:13 by jstolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.5, 0.5, 0.5 > } #declare marrom = texture{ pigment{ color rgb < 0.33 0.16, 0.02 > } finish{ diffuse 0.9 ambient 0.1 } } #declare 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; #declare h_plank = box{ <0,0,0>,<20,4,20> texture{marrom} } #declare v_plank = box{ <0,0,0>,<20,20,4> texture{marrom} } #declare hole= sphere{ <0,0,0>,2 texture{vidro} } #declare cyl_leg= cylinder{ <0,0,0>,<0,0,-10>,1 texture{marrom} } #declare con_leg= cone{ <0,0,0>,1,<0,0,-10>,0 texture{marrom} } #declare foot= intersection { box{<0,0,0>,<2,2,2> texture{marrom}} box{<1,1,1-sqrt(2)/2>,<2,2,1+sqrt(2)/2> texture{marrom}} } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ difference{ difference{ object{h_plank translate<0,0,0> texture{marrom}} object{hole translate<5,4,12>} } object{hole translate<15,4,12>} } object{v_plank translate<0,0,0> texture{marrom}} object{cyl_leg translate<2,2,0> texture{marrom}} object{cyl_leg translate<18,18,0> texture{marrom}} object{con_leg translate<2,18,0>} object{con_leg translate<18,2,0>} } // union{ // object{ eixos(3.00) } // object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } // object{ bolota translate < -2,+1,+3 > texture{ tx_espelho } } // object{ bolinha translate < +5,+4,+2 > texture{ tx_vidro } // interior { ior 1.01 } // } // difference{ // union{ // object{ bola } // object{ pino } // } // object{ furo } // } // } #include "camlight.inc" #declare centro_cena = < 0.00, 0.50 1.00 >; #declare raio_cena = 50.0; #declare dir_camera = < 5.00, 7.00, 4.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)