// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2003-09-04 15:25:26 by stolfi // ====================================================================== // CÂMERA camera { location < 10.00,10.00, 15.00 > // Posição do observador. right -1.00*x // Largura RELATIVA da imagem. up 0.75*y // Altura RELATIVA da imagem. sky y // Qual direção é "para cima"? look_at < 0.00, 0.00, 0.00 > // Para onde a câmera está apontando. } // Nota: os parâmetros "right" e "up" devem ter a mesma proporção // que os parâmetros ${WIDTH} e ${HEIGHT} no Makefile. // ====================================================================== // FONTES DE LUZ light_source { 10 * < +50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_C = texture { pigment { color rgb < 0.50, 0.60, 0.30 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_D = texture { pigment { color rgb < 0.70, 0.40, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 1.00 texture { tinta_B } } #declare bola2 = sphere { < 1.00, 3.00, 2.00 >, 1.50 texture { tinta_D } } # declare my_cone = cone{ < 0.00, 0.00 , 0.00 >, 0.00 < 2.00, 1.00 , 3.00 >, 2.00 texture { tinta_C} } #declare furo = cylinder { < -1.00, -2.00, -2.00 >, < +1.00, +2.00, +2.00 >, 1.50 texture { tinta_B } } #declare predioI = box { <0, 0, 0>, // Near lower left corner < 2, 5, 3> // Far upper right corner texture { tinta_A scale 4 // Scale by the same amount in all // directions } } #declare predioC1 = box { <2.5, 0, 0>, // Near lower left corner < 4.5, 5, 3> // Far upper right corner texture { tinta_A scale 4 // Scale by the same amount in all // directions } } #declare predioC2 = box { <4.5, 4, 0>, // Near lower left corner < 7.5, 5, 3> // Far upper right corner texture { tinta_A scale 4 // Scale by the same amount in all // directions } } #declare predioC3 = box { <4.5, 0, 0>, // Near lower left corner < 7.5, 1, 3> // Far upper right corner texture { tinta_A scale 4 // Scale by the same amount in all // directions } } #declare porta1 = box { <0.5, 0, 0.0>, // Near lower left corner < 1.5, 0.5, 3.05> // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all // directions } } #declare porta2 = box { <3, 0, 0.0>, // Near lower left corner < 4, 0.5, 3.05> // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all // directions } } #declare pino = cylinder { < -2.00, +2.00, -1.00 >, < +2.00, -2.00, +1.00 >, 0.75 texture { tinta_B } } // Aqui está a cena, finalmente: union { object { predioI } object { predioC1 } object { predioC2 } object { predioC3 } object { porta1 } object { porta2 } #declare i =0.7; # declare j = 0.3; #while (j<=4.2) #while (i<4.7) #if(j<2) #declare janelaI = box { , // Near lower left corner // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all } } object {janelaI} #else #if(j>2.5) #if(j<4) #declare janelaI = box { , // Near lower left corner // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all } } object {janelaI} #else #if(i<1) #declare janelaI = box { , // Near lower left corner // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all } } object {janelaI} #else #if(i>=4) #declare janelaI = box { , // Near lower left corner // Far upper right corner texture { tinta_B scale 4 // Scale by the same amount in all } } object {janelaI} #end #end #end #end #end #declare i = i + 0.3; #end #declare i = 0.7; #declare j = j + 0.6; #end }