// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2023-09-13 11:37:02 by stolfilocal // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.2, 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 } } // ====================================================================== // DESCRI��O DA CENA #declare corpo = sphere{ < 0.00, 0.00, 0.00 >, 2 texture{ tx_plastico } } #declare buraco = sphere{ < 0.00, 0.00, 0.00 >, 1.65 texture{ tx_plastico } } #declare detalhe_esfera = sphere{ < 0.00, 0.00, 0.00 >, 0.2 texture{ tx_plastico } } #declare detalhe_esfera_inters = sphere{ < 0.00, 0.00, 0.00 >, 0.25 texture{ tx_plastico } } #declare detalhe_cone = cone{ < 0, 0, 0.50 >, 0.4 < 0, 0, 1.00 >, 0.01 texture{ tx_plastico } } #declare base_tapete = cylinder{ < -2.00, +2.00, -1.00 >, < +2.00, -2.00, +2.00 >, 0.25 texture{ tx_plastico } } #declare haste = cylinder{ < -0.00, -0.00, -0.00 >, < +0.00, +0.00, +1.00 >, 0.3 texture{ tx_plastico } } #declare base = cylinder{ < -0.00, -0.00, -0.00 >, < +0.00, +0.00, +0.20 >, 1.8 texture{ tx_plastico } } #declare tapete = box{ <0,-3,0>, <1.3,3,0.3> texture{ tx_plastico } } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ // object{ eixos(5) } union{ difference{ object{ corpo } object{ buraco translate < 1.1,0,+0.2 >} } object{ haste translate < 0,0,-3 >} object{ base translate < 0,0,-3 >} object{ tapete translate <2,0,-3>} object{ tapete translate <-3,0,-3>} object{ detalhe_cone translate <0,0,2>} object{ detalhe_cone translate <0,0,-3> rotate <180, 0, 0> } object{ detalhe_esfera translate <0,0,3>} } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, -0.80 >; #declare raio_cena = 7.0; #declare dir_camera = < 14.00, 7.00, 5.00 >; #declare dist_camera = 4*raio_cena; #declare intens_luz = 2.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)