// Exemplo de arquivo de descricao de cena para POV-ray // Fabio Massanori Sendo // 19 Maio 2001 #include "colors.inc" camera { angle 15 location <0,0,25> look_at <0,0,0> } light_source { <0, 0, 15> color White } #declare tinta_Azul = texture { pigment { color rgb < 0, 0, 1 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Verde = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_Vermelho = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } // Os tres cilindros e somente para mostrar os eixos das coordenada #declare cilindroX = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.01 texture { tinta_Vermelho } } #declare cilindroY = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.01 texture { tinta_Azul } } #declare cilindroZ = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.01 texture { tinta_Verde} } union { blob { threshold 0.3 sphere { < 0 , -0.4, 0>, 1.0, 1 pigment {Green} } //Corpo sphere { < 0 , 1.0, 0>, 0.8 , 1 pigment {Green} } //Cabeca sphere { < 0.3 , -1.7, 0>, 0.25, 1 pigment {Green} } //pe direito sphere { < 0.5 , -1.7, 0>, 0.25, 1 pigment {Green} } //pe direito sphere { <-0.3 , -1.7, 0.5>, 0.25, 1 pigment {Green} } //pe esquerdo sphere { <-0.5 , -1.7, 0.5>, 0.25, 1 pigment {Green} } //pe esquerdo sphere { < 0 , 2.0, 1>, 0.1, 1 pigment {Green} } //antena sphere { < 1.2 , 0 , 0.6>, 0.3 , 1 pigment {Green} } //mao direita sphere { < 1.3 , 0.1 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { < 1.4 , 0 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { < 1.3 , -0.1 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { <-1.2 , 0 , 0.6>, 0.3 , 1 pigment {Green} } //mao esquerda sphere { <-1.3 , 0.1 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { <-1.4 , 0 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { <-1.3 , -0.1 , 0.9>, 0.1 , 1 pigment {Green} } //dedo sphere { < 0.6 , 1 , 0>, 0.25, 1 pigment {Green} } //orelha direita sphere { <-0.6 , 1 , 0>, 0.25, 1 pigment {Green} } //orelha esquerda sphere { < 0 , 0.9 ,0.6>, 0.15, 1 pigment {Green} } //nariz sphere { < 0.2 , 1 ,0.5>, 0.15, 1 } //olho sphere { < -0.2 , 1 ,0.5>, 0.15, 1 } //olho sphere { < 0.03 , 0.7 ,0.5>, 0.05, 1 } //boca sphere { < -0.03 , 0.7 ,0.5>, 0.05, 1 } //boca cylinder { < 1, 0, 0.6>, <0, 0, 0>, .15, 1 pigment {Green} } //braco esq cylinder { <-1, 0, 0.6>, <0, 0, 0>, .15, 1 pigment {Green} } //bracodir. cylinder { < 0, 0.5, 0>, <0, 0, 0>, .25, 1 pigment {Green} } //pescoco cylinder { < 0, 1.5, 0>, <0, 2,1>, .03, 1 pigment {Green} }//sup.antena cylinder {<0.15,-1.7, 0>,<0.15, -1, 0>, 0.2, 1 pigment{Green} }//perna cylinder {<-0.15,-1.7,0.5>, <-0.15, -1,0.5>, 0.2, 1pigment{Green}} //perna finish { phong 1 } } // somente para mostrar os eixos cartesianos //cilindroX // eixo X (Red) //cilindroY // eixo Y (Blue) //cilindroZ // eixo Z (Green) }