#include "colors.inc" // Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2003-10-22 04:13:54 by stolfi global_settings { max_trace_level 10 } // ====================================================================== // CÂMERA #declare ctr = < 0.00, 0.00, 1 > ; #declare camdir = < 15.00, 5.00, 4.50 >; camera { location ctr + 0.80*camdir // Posição do observador. right -1.00*x up 0.75*y sky z // Qual direção é "para cima"? look_at ctr // 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 { 5 * < 50.0, +30.0, +50.0 > // Posição da lâmpada. color rgb 1.1 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 5 * < +50.0, -10.0, +10.0 > // Posição da lâmpada. color rgb 0.5 * < 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 cor_cristal = <0.8,0.8,0.8>; #declare tx_cristal1 = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color cor_cristal filter 1} } #declare tx_cristal2 = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color <0.65,0.85,0.65> filter 1} } #declare tx_cristal3 = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color <0.95,0.75,0.75> filter 1} } #declare cor_espelho = Silver ; #declare tx_espelho = texture{ pigment{ cor_espelho } finish{ ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare tx_prata = texture { pigment { checker Gray50, Gray60 } finish { ambient .2 diffuse .5 specular .75 roughness .009 reflection .6 }} #declare tx_ouro = texture { pigment {BrightGold } finish { ambient .05 diffuse .2 specular 0.5 roughness .02 reflection .7 }} #declare toros = torus { 1,0.3 rotate 90*x } #declare base = cylinder{ <0,0,0>,<0,0,1.7>,2 texture {tx_cristal1} interior { ior 1.5 } } #declare chao = plane {z,0 texture { tx_prata } } #declare toros1 = object { toros texture {tx_ouro} scale 2 translate 2*z } #declare toros2 = object { toros texture{ tx_prata } scale 1.5 translate 2.9*z } #declare toros3 = object { toros texture{ tx_cristal2 } scale 1.1 translate 3.6*z } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 1.00 texture { tx_cristal3 } } #declare topo = object { bola scale 0.8 translate 4*z } // Aqui está a cena, finalmente: //difference { //union { //object { bola } //object { pino } // } //object { furo } //} //object { toros} object { chao } object { base } object {toros1} object {toros2} object {toros3} object {topo}