// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2023-09-13 16:10:46 by stolfilocal // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.75, 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_plastico2 = texture{ pigment{ color rgb < 0.80, 0.80, 0.10 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.10, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_chao = texture{ pigment{ color rgb < 0.50, 0.50, 0.50 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_wall = texture{ pigment{ color rgb < 0.70, 0.90, 0.70 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.10, 0.10 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 0.1 } // ====================================================================== // DESCRI��O DA CENA //#declare raio = 2.000; // Partes da cena: #declare apoio1s = sphere{ < 0,0,0 >, 0.8 texture{tx_fosca} } #declare apoio1c = cylinder{ < 0, 0, 0 >, < 1, 0, 0 >, 0.1 texture{ tx_plastico } } #declare apoio2c = cylinder{ < 0, 0, 0 >, < -1, 0, 1 >, 0.1 texture{ tx_plastico } } #declare pe1 = cone{ < 0.00, 0.00, 0.00 >, 0.1, < 0.00, 0.00, +0.50 >, 0.2 texture{ tx_plastico2 } } #declare pe2 = cone{ < 0.00, 0.00, 0.00 >, 0.1, < 0.00, 0.00, 1.50 >, 0.4 texture{ tx_plastico2 } } #declare encosto1 = box{ < 0, -0.1, 0 >, < 1.0, 1.1, 0.1> texture{tx_xadrez} } #declare encosto2 = box{ < 0, -0.1, 0 >, < 1.4, 1.1, 0.1> texture{tx_xadrez} } #declare blocker = box{ < 0, 0, 0 >, < 1.4, 1, 1> } //Used to subtract from pe2 #declare chao = box{ <-20,-20,-1>, <+20,+20,0> texture{tx_chao} } #declare wall = box{ <-10,-20,-1>, <-9, +20, 10> texture{tx_wall} } #include "eixos.inc" union{ // object{ eixos(2) } object{apoio1c translate < 0, -0.5, 0.7 >} object{apoio1c translate < 0, +0.5, 0.7 >} object{apoio2c translate < 0, -0.5, 0.7 >} object{apoio2c translate < 0, +0.5, 0.7 >} object{encosto1 translate < 0.0, -0.5, 0.5 >} object{encosto2 rotate < 0, 45, 0> translate < -1.1, -0.5, 1.5> } difference{ union{ intersection{ object{apoio1s translate< 0, +1.3, 0.5 >} object{apoio1s translate< 0, +0.3, 0.5 >} } intersection{ object{apoio1s translate< 0, -1.3, 0.5 >} object{apoio1s translate< 0, -0.3, 0.5 >} } } object{chao} } difference{ object{pe2 translate < -0.5, 0, 0 >} object{blocker rotate < 0, 45, 0> translate < -1.1, -0.5, 1.5> } } object{pe1 translate < +0.8, +0.3, 0 >} object{pe1 translate < +0.8, -0.3, 0 >} } object{chao} object{wall} //Remove this object if 360° view is intended #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.80 >; #declare raio_cena = 1.8; #declare dir_camera = < 10.00, 5.00, 2.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)