// 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 < -30.00, -30.00, 30.00 > // Posição do observador. right -0.70*x // Largura RELATIVA da imagem. up 1.00*y // Altura RELATIVA da imagem. sky z // 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 < 1.00, 1.00, 1.00> } #declare cinza_claro = < 0.70, 0.70, 0.70 >; #declare cinza_transparente = texture { finish { diffuse 0.1 specular 1.0 roughness 0.001 ambient 0.1 reflection 0.20} pigment { color cinza_claro filter 1 } } #declare preto = texture { pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.8 specular 0.9 roughness 0.015 ambient 0.4 } } #declare amarelo = < 0.80, 0.80, 0.00 >; #declare dourado = texture { pigment {rgb amarelo } finish { diffuse 0.05 specular 0.2 roughness 0.05 ambient 0.05 reflection amarelo} } #declare vermelho_escuro = < 0.60, 0.00, 0.00 >; #declare vermelho_espelhado = texture { pigment {rgb vermelho_escuro } finish { diffuse 0.05 specular 0.2 roughness 0.05 ambient 0.05 reflection vermelho_escuro} } #declare azul_escuro = texture { pigment { color rgb < 0.50, 0.50, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare coroa = difference{ torus { 10,2 texture {dourado} rotate -90*x } cylinder { <0.00, 0.00, 1000.00>, <0.00, 0.00,-1000.00>, 11.00 texture {dourado} } box { <20,5.00,-100.00>, <5,-5.00,100.00> texture {dourado} } torus{ 12,0.40 texture {azul_escuro} rotate -90*x translate <0.00, 0.00, 1.00> } } #declare diamante = lathe { linear_spline 10 <0.00,0.00>,<1.00, 1.00>, <1.00, 2.00>,<0.25,3.00>, <0.25,4.50>,<1.00, 4.50>, <1.00,4.80>,<0.25,4.80>, <0.25,6.00>,<0.00,6.00> texture {cinza_transparente} interior {ior 1.5} scale 1.5 translate <-11.5,0.00,0.5> rotate 90*x } #declare gema = sphere{ <-11.50, 0.00, 1.00>, 1.00 texture {vermelho_espelhado} } declare fundo = plane{<0,0,1>, -1 texture{ pigment {checker <1.00, 1.00, 1.00>,<1.00, 0.80,0.40> } finish {ambient 0.1 diffuse 0.9 } scale 4 } } union { object {fundo} union{ object {gema} rotate 20*z } union{ object {gema} rotate 35*z } union{ object {gema} rotate -20*z } union{ object {gema} rotate -35*z } object {coroa} object {diamante} }