// 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.90, 0.80, 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_fosca = texture{ pigment{ color rgb < 1.00, 0.5, 0.5 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca_preta = texture{ pigment{ color rgb < 0.1, 0.1, 0.1 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca_cinza = texture{ pigment{ color rgb < 0.3, 0.3, 0.3 > } finish{ diffuse 0.9 ambient 0.1 } } #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; // A principio pode-se usar declare ou local // Partes da cena: // Dando nome para o objeto não coloca ponto e virgula // Declara ponto ou valor usar ponto e virgula #declare coneChao = cone { <0, 0, 0>, 1.5 // , center & radius of one end <0, 0, 1>, 0.5 // , center & radius of the other end } #declare banco = box { <-1.5, -1.5, 1>, <1.5, 1.5, 2> // near lower left corner, far upper right corner } #declare coneEncostoSuperior = cone { <-1.5, 0, 4>, 1.0 // , center & radius of one end <-1.5, 0, 2>, 0.25 // , center & radius of the other end } #declare coneEncostoInferior = cone { <-1.5, 0, 2>, 1.0 // , center & radius of one end <-1.5, 0, 4>, 0.25 // , center & radius of the other end } #declare encostoCabeca = box { <-0.8, -0.8, 4>, <-0.8, 0.8, 4.5> // near lower left corner, far upper right corner } #declare encostoBracoDireito = cylinder { <-1, 1.5, 3>, <1, 1.5, 3>, 0.2 // center of one end, center of other end, radius } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ object{ eixos(2.00) } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } object{coneChao texture{tx_fosca_cinza}} object{banco texture{tx_fosca_cinza}} intersection{ object{coneEncostoSuperior scale <0.5, 3.0, 1.0> texture{tx_fosca_cinza}} object{coneEncostoInferior scale <0.5, 3.0, 1.0> texture{tx_fosca_cinza}} } object{encostoCabeca texture{tx_fosca_preta}} object{encostoBracoDireito texture{tx_fosca_cinza}} object{encostoBracoDireito translate <0, -3, 0> texture{tx_fosca_cinza}} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 2.00 >; #declare raio_cena = 6.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; // #declare dir_camera = < -2.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)