// Exercício de criação de cena - POV-Ray // Criado em 12 de Maio de 2001 - Alan Keler Baldo - ra007850 #include "colors.inc" #include "metals.inc" #include "golds.inc" #include "stones1.inc" #include "textures.inc" //cor de fundo background{ color rgb < 0.95, 0.95 , 0.95 > } //fontes de luz light_source { < 5.0, 5.0, 10.00 > color rgb < 1.0, 1.0, 1.0 > } light_source { < 4.0, 4.0, 1.0 > color rgb < 1.0, 1.0, 1.0 > spotlight radius 20.0 falloff 40.0 point_at <0.0,0.0,0.20> // shadowless } //definicao da camera camera { location < 5.0, 4.00, 1.50 > right < -0.60, 0.00, 0.00 > up < 0.00, 0.00, 0.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 1.50 > } //declaracoes dos objetos #declare ouro = T06 //#declare ouro = Gold_Nugget #declare cristal = texture { finish{ ambient 0.1 diffuse 0.1 reflection 0.35 specular 1 roughness 0.001 } pigment { color <0.0,0.0,1.0> filter 1} } #declare marmore = T_Stone9 #declare base = box { < +1.00, +1.00, +0.00 >, < -1.00, -1.00, -0.30 > texture { marmore } rotate z*45 } #declare obj1 = difference { torus { 1.00, 0.2 texture { ouro } } box { < +1.00, +1.00, +0.00 >, < -1.00, -1.00, -1.20 > rotate z*45 } } #declare obj2 = box { < +0.10, +0.10, +0.10 >, < -0.10, -0.10, -0.10 > texture { cristal } rotate x*45 rotate y*45 } #declare obj31 = difference { torus { 1.00, 0.2 texture { ouro } } box { < +2.00, +2.00, -0.01 >, < -2.00, -2.00, -2.00 > texture { ouro } } } #declare obj32 = difference { torus { 0.50, 0.2 texture { ouro } } box { < +2.00, +2.00, -0.01 >, < -2.00, -2.00, -2.00 > texture { ouro } } } #declare eixox = object { cylinder { <-10.0, 0.0, 0.0>, <+10.0, 0.0, 0.0>, 0.05 texture { ouro } } } #declare eixoy = object { cylinder { <0.0, -10.0, 0.0>, <0.0, +10.0, 0.0>, 0.05 texture { marmore } } } #declare eixoz = object { cylinder { <0.0, 0.0, -10.0>, <0.0, 0.0, +10.0>, 0.05 texture { ouro } } } //Cena... //eixox //eixoy //eixoz object { plane { <0, 0, 1>, -0.35 pigment { checker color White, color Gray } } } object { plane { <1, 0, 0>, -10.0 pigment { checker color White, color Gray } } } object { plane { <0, 1, 0>, -10.0 pigment { checker color White, color Gray } } } object { base } object { obj1 } object { obj2 hollow interior{ior 1.3} translate <0.00, 0.00, +1.30> } object { union { object { obj31 rotate y*90 translate <0.00, 0.00, +0.50> } object { obj32 rotate y*-90 } } rotate z*90 translate <0.00, 0.00, +2.1> }