// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 20:06:05 by stolfi background{ color rgb < 1, 1, 1 > } light_source { < -5.00, 3.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } light_source { < 5.00, 5.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 0.00, 4.00, 14.00 > // right < 0.000, 0.00, 0.00 > // up < 0.00, 0.00, 0.00 > // sky < 0.00, 0.00, 0.00 > look_at < 2.00, -1.00, 5.00 > } #declare vermelho = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cabo = cylinder { < 0, 1.00, 0.00 >, < 0.00, 11.00, 0.00 >, 1.5 texture { pigment{ marble turbulence 1 lambda 1.5 omega 0.5 octaves 5 frequency 3 color_map{ [0.00 color rgb<0,1.00,0>] [0.50 color rgb<0, 0.70, 0>] [1.00 color rgb<0, 0.30, 0>] } } } } #declare frutas = blob{ threshold 0.1 sphere { < 4.9, 2, 0 >, 3, 0.3 texture { pigment { color rgb <0.7, 0, 0>} normal { bumps 0.4 scale 0.2 } finish { phong 1} }} sphere { < 4.9, 4.9, 0 >, 3, 0.3 texture { pigment { color rgb <0.7, 0, 0>} normal { bumps 0.4 scale 0.2 } finish { phong 1} }} sphere { < 4.9, 7.8, 0 >, 3, 0.3 texture { pigment { color rgb <0.7, 0, 0>} normal { bumps 0.4 scale 0.2 } finish { phong 1} }} sphere { < 7.8, 3.9, 0 >, 3, 0.3 texture { pigment { color rgb <0.7, 0, 0>} normal { bumps 0.4 scale 0.2 } finish { phong 1} }} sphere { < 7.8, 6.8, 0 >, 3, 0.3 texture { pigment { color rgb <0.7, 0, 0>} normal { bumps 0.4 scale 0.2 } finish { phong 1} }} cylinder { < 2, 0.00, 0.00 >, < 2, 10.00, 0.00 >, 1.5, 0.5 texture { pigment{ marble turbulence 1 lambda 1.5 omega 0.5 octaves 5 frequency 3 color_map{ [0.00 color rgb<0,1.00,0>] [0.50 color rgb<0, 0.70, 0>] [1.00 color rgb<0, 0.30, 0>] } } } finish {phong 0.3} } rotate<0, 0, -90> } #declare caixa= box{ <-1,-3.5, -1> <5, -7, 3> texture { pigment{ marble turbulence 1 lambda 1.5 omega 0.5 octaves 5 frequency 3 color_map{ [0.00 color rgb<0,0,1>] [0.50 color rgb<0,0,0.5>] [1.00 color rgb<0,0,0.2>] } } } finish {phong 0.3} } //#declare final= //blob{ // threshold 0.9 // frutas // cabo //} // Aqui está a cena, finalmente: difference {object {frutas} object {caixa} } //union{ //object{ cabo} // object{frutas //} //}