// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2023-08-16 20:54:02 by jevs // Original version by jstolfi // Moved Around by jevs // ====================================================================== // CORES E TEXTURAS // background{ color rgb < 0.45, 0.10, 0.20 > } background{ color rgb < 0, 0, 0 > } #declare tx_torso = 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_membro = texture{ pigment{ color rgb < 1.0, 1.0, 0.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.15, 0.6 , 0 >, color rgb < 0, 0 , 0 > } finish{ diffuse 0.9 ambient 0.1 } scale 5.0 } // ====================================================================== // DESCRI��O DA CENA #macro mao() #local maum = cylinder { <0, 0, 0>, <0, 0, 0.5>, 0.25 // center of one end, center of other end, radius } object{maum} #end #macro antebraco(D5) #local antebrassu = cylinder { <0, 0, 0>, <0, 0, 1>, 0.25 // center of one end, center of other end, radius open // remove end caps } #local m = mao() union{ object{m translate <0, 0, 1> rotate<0, D5, 0> } object{antebrassu} texture { tx_membro } } #end #macro braco(M4, D5) #local brassu = cylinder { <0, 0, 0>, <0, 0, 2>, 0.25 // center of one end, center of other end, radius open // remove end caps // rotate // } #local sub = antebraco(D5) union { object{sub translate <0, 0, 2> rotate <0, M4, 0> } object{ brassu } texture { tx_membro } } #end #macro perna(T1, T2, T3, M4, D5) #local membro = braco(M4, D5) union { // object{ // mao(D5) // translate <0, 0, 3.5> // // } // object{ // antebraco(M4) // translate <0, 0, 2> // // } // object{ // braco(T1, T2, T3) // // translate <0, 0, 2> // // // rotate // // } object{membro translate <0, 0, 0> rotate} texture { tx_membro } } #end #macro cabeca(T1, T2, T3, M4) #end #macro robo(E) #local torso = box { <-1, -1, -1>, <1, 1, 1> // near lower left corner, far upper right corner } union { } #end // ======ALUNO SECTION END=============================================== // ====================================================================== #declare raio = 2.000; #declare raioIni = 3; #declare chao = disc { <0, 0, 0>, <0, 0, 1>, 200 texture { tx_xadrez } } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ object{ eixos(3.00)} // perna(0, 45, 0, 30, 30) // braco(0,0,0, 10, 10) perna(0, 30, 0, 10, 10) object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 15.0; #declare dir_camera = < 10.00, 15.00, 10.00 >; #declare dist_camera = 10*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)