// Exemplo de arquivo de descricao de cena para POV-ray // ====================================================================== // CÂMERA #include "colors.inc" #include "stones.inc" #include "metals.inc" #include "woods.inc" camera { location <-10.00, 0.00, 80.00> // Posição do observador. right -0.75*x // Largura RELATIVA da imagem. up 1.00*y sky y // Qual direção é "para cima"? look_at < 10.00, 0.00, 0.00 > // Para onde a câmera está apontando. } // Nota: os parâmetros "right" e "up" devem ter a mesma proporção // que os parâmetros ${WIDTH} e ${HEIGHT} no Makefile. // ====================================================================== // FONTES DE LUZ light_source { 10 * < +40.0, +30.0, +40.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < -50.0, +10.0, +10.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA //background { White } background{ color rgb < 0.75, 0.80, 0.85 > } #declare tt = clock; //#if (tt < 0.05) // #declare w = pi*0.1; //#else // #if (tt < 0.80) // #declare w = pi*0.2; // // #else // #declare w = pi*0.5; // #end //#end #declare acel = sin((0.5*pi*tt) + 0.5*pi) + 1; #declare beta = 10*acel; #declare alfa = 39*acel; #declare gama = 38*acel; #declare teta = -20*acel; #declare fi = 20*acel; #declare epsilon = 48*acel; #declare dedo = cylinder { <0,0,0>,<25,0,0>, 0.5 texture {T_Brass_3A} } #declare mao = union { torus { 2.7,2.3 rotate 90*x } object {dedo rotate fi*y rotate epsilon*z translate <4,0,0>} object {dedo rotate -epsilon*z translate <3.8,-2.5,0>} object {dedo rotate -2*epsilon*z translate <3.8,2.5,0>} } #declare art3 = union { cylinder { <0,0,0>,<6,0,0>,2 texture{T_Chrome_5B} } object {mao rotate beta*y rotate gama*z translate <10,0,0>} } #declare art2 = union { cylinder { <0,0,0>,<8,0,0>,2.7 texture {T_Chrome_5B} } object {art3 rotate alfa*z translate <8,0,0>} } #declare art1 = union { cylinder { <0,0,0>,<10,0,0>,3.2 texture {T_Chrome_5B} } object {art2 rotate teta*z translate <10,0,0>} } art1