// Edicao do parte 2, proposta para o segundo dia de aula de laboratorio // Exercicio do Ikebana Geometrico, 28/09/2000 background{ color rgb < 0.65, 0.10, 0.90 > } light_source { < 20.00, 60.00, 20.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 15.00, 15.00, 15.00 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare raio = 1.00; #declare tintaA = texture{ pigment { color rgb < 0.02, 0.85, 0.34 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tintaC = texture{ pigment { color rgb < 0.02, 0.05, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tintaD = texture{ pigment { color rgb < 0.70, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tintaE = texture{ pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tintaF = texture{ pigment { color rgb < 0.50, 0.50, 0.50 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare esfera = union { sphere { < -0.30, -0.60, 0.50 >, raio texture { tintaA } } cone { < -0.30, -0.60, 0.50 >, 0.08 < 1.02, 0.97, -12.00>, 0.08 texture { tintaA } } } #declare vaso = difference{ box { < 0.00, 0.00, 0.00 >, < 5.00, 5.00, -12.00> texture { tintaE } } box { < 0.15, 0.15, 0.00 >, < 4.75, 4.75, -11.75 > texture { tintaF } } } #declare tulipa = union { cone { < 6.00, 7.00, 11.00 >, 0.01 //centro e raio de uma extremidade < 7.00, 8.00, 13.00 >, 0.50 //centro e raio da outra extremidade texture { tintaD } } cone { < 6.00, 7.00, 11.00 >, 0.08 < 0.13, 0.20, -12.00 >, 0.08 texture { tintaD } } } #declare papoula = union { prism { // conic_sweep // linear_spline 1.30, 0.00, 5.00, < 0.7, 0.7 >,< 0.7, -0.7 >,< -0.7, 0.7 >,< -0.7, -0.7 >,< 0.7, 0.7 > translate < 3.00, -3.20, 6.13 > rotate < 8.0, 20.0, 2.0 > } cone { < 3.00, -3.20, 6.13 >, 0.08 < 1.50, 0.00, -12.0 >, 0.08 texture { tintaC } rotate < 0.0, 20.0, 0.0 > } } // Desenho das figuras union{ object { esfera } object { tulipa } object { papoula } object { vaso } }