//Eduardo Hideki Tanaka RA: 970563 // Terceiro exercicio - MC930 background{ color rgb < 0.02, 0.00, 0.02 > } light_source { < -1.00, 4.00, -7.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -4.00, 3.00, -10.00 > look_at < 4.00, 4.00, 4.00 > } #declare tinta_vermelha = texture { pigment { color rgb < 1.00, 0.10, 0.00 > } normal { bumps 0.2 scale 0.1 } finish { diffuse 0.8 specular 0.5 roughness 0.005 ambient 0.1 phong 1 } } #declare tinta_vermelha_escura = texture { pigment { color rgb < 0.70, 0.10, 0.40 > } normal { bumps 0.2 scale 0.1 } finish { diffuse 0.8 specular 0.5 roughness 0.005 ambient 0.1 phong 1 } } #declare tinta_verde_lisa = texture { pigment { color rgb < 0.10, 1.00, 0.40 > } finish { diffuse 0.3 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_verde = texture { pigment { color rgb < 0.10, 0.90, 0.10 > } normal { dents .5 scale .3 } finish { diffuse 0.3 specular 0.5 roughness 0.005 ambient 0.1 } } #declare amora = blob { threshold 0.4 sphere { <2, 2, 0>, 2, 1 texture { tinta_vermelha } } sphere { <2, 4.7, 0>, 2, 1 texture { tinta_vermelha } } sphere { <4.7, 2, 0>, 2, 1 texture { tinta_vermelha } } sphere { <4.7, 4.7, 0>, 2, 1 texture { tinta_vermelha } } cylinder { <3.2, 3.2, -2.0>, <3.2, 3.2, 2.0>, 1, .8 texture { tinta_verde } } translate <-2,2,0> } #declare caixa_c = box { <-2, -3, 3.5>, <6, 8, 0> texture { tinta_vermelha_escura } } #declare cilindro_c = cylinder { <3.2, 3.2, 0>, <3.2, 3.2 , 3.5>, 1 texture { tinta_verde_lisa } translate <-2,2,0> } /* //o fruto inteiro esta aqui... union { object { amora } } */ //para o corte, presisa-se fazer uma interseccao intersection { object { amora } union { object { caixa_c } object { cilindro_c } } }