// Fabio Negrello - exercicio 03 // ultima modificacao 19/10/00 background{ color rgb < 1, 1, 1 > } light_source { < 10.00, 10.00, 0.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 10.00, 5.00 > look_at < 0.00, 0.00, 0.00 > } #declare fruta = blob { threshold .1 sphere { < 0.00, 0.00, 0.00 >, 3.6, 1 scale < 1, 1.3, 1 > texture { pigment { color rgb < 0.00, 1.00, 0.00 > } } } sphere { < 1.5, 4, 0>, 1.50, 1 texture { pigment { color rgb < 1.00, 1.00, 0.00 > } } } sphere { < 1.5, 4, 0>, 1.50 ,1 rotate <0,90,0> texture { pigment { color rgb < 1.00, 1.00, 0.00 > } } } sphere { < 1.5, 4, 0>, 1.50 ,1 rotate <0,180,0> texture { pigment { color rgb < 1.00, 1.00, 0.00 > } } } sphere { < 1.5, 4, 0>, 1.50 ,1 rotate <0,270,0> texture { pigment { color rgb < 1.00, 1.00, 0.00 > } } } cylinder { < 0.00, 0.00, 0.00 >, < 0.00, 6.00, 0.00 >, .9, 1 texture { pigment { color rgb < 1.00, 0.00, 0.00 > } } } finish { phong 1 } } #declare miolo = sphere { < 0.00, 0.00, 0.00 >, 2.0 scale < 1, 1.3, 1 > texture { pigment { color rgb < 1.00, 0.00, 0.00 > } } } #declare vista = box { < 5,-8,5> < 0,4,0> rotate <0,45,0> texture { pigment { color rgb < 1.00, 1.00, 0.00 > } } } difference { object{ fruta } object{ vista } object{ miolo } }