#include "colors.inc" // ====================================================================== // CÂMERA camera { location <5.0, -5, -80.0> right -1.0*x // Largura RELATIVA da imagem. up 0.5*y // Altura RELATIVA da imagem. direction 1.5*z look_at <5, 0, 0> rotate 10*x // rotate -180*y rotate -90*y } // 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 { <0, 0, 0> color rgb <1, 1, 1> translate <10, 10, -50> rotate -30*y //rotate -180*y } light_source { 10 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb < 1.00, 1.00, 1.00 > // Intensidade e corda luz. rotate 60*y //rotate -180*y } /*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 #declare fonte=seed(314159); #declare ab = 0; #declare p =0; #declare b =0; #declare sobe =0; #declare tt = clock; #if (tt < 0.40) #declare b = -50*tt; #else #declare b = -50*0.4; #if (tt < 0.80) #declare ab = -25*tt; #else #declare ab = -25*0.8 + 20*tt/5; #declare b = -50*0.4 + 50*tt/5; #declare p = -12*tt; #declare sobe = 2; //o criminoso esta sendo levantado #end #end sky_sphere { pigment { gradient y color_map { [0.0 rgb <0.6,0.7,1.0>] [0.7 rgb <0.0,0.1,0.8>] } } } plane { y, -1 pigment { color rgb <0.7,0.5,0.3> } } #declare tx_espelho = texture{ pigment {Gray70} finish{ ambient 0.05 diffuse 0.05 reflection{ Silver metallic } specular 0.20 roughness 0.05 } } #declare tx_pedras = texture{ finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color rgb <0, 1, 1>} } #declare dedo = cylinder{ 0, <1,0,0>, 0.18 pigment {color Cyan} } #declare juncao = sphere{ 0, 0.75 pigment {color Green} } #declare mao = union{ box{ <0,-1,-0.5> <2, 1, 0.5> pigment{color Blue} } //colocar os dedos object{ dedo translate<1.9,0,0> } object{ dedo translate<1.9,0.55,0> } object{ dedo translate<1.9,-0.55,0> } } #declare antebraco = union{ cylinder{ 0, <6,0,0> 0.75 pigment {color Yellow} } object{ juncao translate <6.75, 0, 0> } object { mao rotate p*y translate <7.5,0,0> } } #declare braco = union{ cylinder{ 0, <9,0,0> 0.75 pigment {color Yellow} } object { juncao translate <9.75,0,0> } object { antebraco rotate ab*y translate <10.5,0,0> } object { juncao translate <-0.75,0,0> } } #declare corpo = box{ <0,0,0> <10,15,15> } /********************** CENA ******************************/ declare bla = union { object{ braco translate <0,10,0> } object { braco scale <1,1,-1> translate<0,10,15> } } object { bla rotate b*z } object{ corpo translate <-8,0,0> pigment {color Red} } sphere{ 0, 4.3 pigment {color Magenta} translate<20,5+sobe ,7.5> }