// EXERCICIO 3 - Concurso da Feira Agricola // By Daniel Salles de Araujo 19 Out 2000 //#include "glass.inc" #include "colors.inc" //#include "metals.inc" #include "textures.inc" background{ color Black} light_source { < 10.00, 10.00, 10.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 10.00, 10.00 > look_at < 0.00, 0.00, 0.00 > } //blob { // threshold .65 // sphere { <3,0,0>, 5, 1 pigment {Blue} } // sphere { <-3,0,0>, 5, 1 pigment {Pink} } // finish { phong 1 } // } #declare externo= blob { threshold .65 sphere { <.75,2,0>, 1.5, 3 pigment {Orange}} sphere { <-.75,2,0>, 1.5, 3 pigment {Orange}} sphere { <.75,-2,0>, 1.5, 3 pigment {Orange}} sphere { <-.75,-2,0>, 1.5, 3 pigment {Orange}} sphere { <2,.75,0>, 1.5, 3 pigment {Orange}} sphere { <-2,.75,0>, 1.5, 3 pigment {Orange}} sphere { <2,-.75,0>, 1.5, 3 pigment {Orange}} sphere { <-2,-.75,0>, 1.5, 3 pigment {Orange}} sphere { <0,0,0>, 2, 3 pigment {Orange} scale <1.5,1.5,1> } finish {phong 1} } #declare interno= blob { threshold .55 sphere { <.75,2,0>, 1.5, 3 pigment {Orange}} sphere { <-.75,2,0>, 1.5, 3 pigment {Orange}} sphere { <.75,-2,0>, 1.5, 3 pigment {Orange}} sphere { <-.75,-2,0>, 1.5, 3 pigment {Orange}} sphere { <2,.75,0>, 1.5, 3 pigment {Orange}} sphere { <-2,.75,0>, 1.5, 3 pigment {Orange}} sphere { <2,-.75,0>, 1.5, 3 pigment {Orange}} sphere { <-2,-.75,0>, 1.5, 3 pigment {Orange}} sphere { <0,0,0>, 2, 3 pigment {Orange} scale <1.5,1.5,1> } finish {phong 1} } #declare cabo= cone { <0,0, 3>, 0 <0,0, 4.5>, 0.75 pigment { Green } } #declare abobora= union { difference { object {interno scale <1,1,2>} object {externo scale <1,1,2>} } object {cabo} } object {abobora rotate <-30,-90,0>} plane { y, -3 pigment { Gray30 } }