// Last edited on 2003-03-19 23:18:00 by stolfi // MC930 - POV-Ray, Exercicio 3 // Fabio de Souza Azevedo - RA 952215 // Aula de 18/03/2003 background { color rgb < 0.35, 0.50, 0.17 > } /* // Para ver de frente camera { location <0.0, -0.35, -3.5> // -20.0 look_at < 0.00, -0.35, 0.00 > } */ // Para ver meio em perspectiva camera { location <1.7, 0.5, -3.0> // -20.0 // location <-4.7, -3.0, -1.0> // -20.0 look_at < 0.00, -0.35, 0.00 > } light_source { < 17, 10, -30 > color rgb 0.6*< 1.00, 1.00, 1.00 > } light_source { < 0.00, 5.00, -10.00 > color rgb 1.2*< 1.00, 1.00, 1.00 > } // Exemplo do POV: #include "colors.inc" #declare blob_corpo_cabeca = blob { threshold .35 sphere { <0, -0.5, 0>, 1.2, 1.5 pigment {Brown} } sphere { <0, 0.7, 0>, 0.7, 1.3 pigment {Brown} } finish { phong 1 } } //#declare boca = #declare olhos = union { sphere {<-0.12, 0.65, -0.3>, 0.2 pigment {White} } sphere {< 0.12, 0.65, -0.3>, 0.2 pigment {White} } } #declare orelhas = union { sphere {<-0.45, 0.8, 0>, 0.2 pigment {Brown} } sphere {< 0.45, 0.8, 0>, 0.2 pigment {Brown} } } #declare blob_braco1 = blob { threshold .35 sphere {<-0.8, 0, 0>, 0.3, 1 pigment {Brown} } cylinder { <-0.8, 0, 0>, <-1.3, -1.4, 0>, 0.3, 1 } pigment {Brown} finish { phong 1 } } #declare roda = torus { 0.2, 0.08 pigment {Red} } // Aqui está a cena, finalmente: object { blob_corpo_cabeca } object { olhos } object { orelhas } object { blob_braco1 } object { blob_braco1 rotate <0,180,0> } object { roda rotate <90,90,0> translate <0,-1.7,0>} object { roda rotate <90,90,0> translate <1.4,-1.7,0>} object { roda rotate <90,90,0> translate <-1.4,-1.7,0>}