// Last edited on 2003-12-14 20:26:48 by stolfi // Exemplo de arquivo de descricao de cena para POV-ray #include "colors.inc" // ====================================================================== #declare ctr = < 2.00, 2.00, 2.00 >; #declare camDir = (< 0.00,- 30.00, 7.00 >) - (< 2.00, 2.00, 2.00 >); camera { location ctr + 1.00*camDir right -0.60*x up 0.60*z sky z look_at ctr } // ====================================================================== // 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 #declare cor1= <0,1,1>; #declare cor3= <1,1,0>; background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_chao=texture { pigment {checker Goldenrod LightSteelBlue} finish{ ambient 0.05 diffuse 0.05 reflection 0.1 specular 0.2 roughness 0.05}} #declare cor2= <1,0,1>; #declare tx_I=texture{ finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001} pigment{color cor2 filter 1}} #declare tx_L=texture { pigment {rgb cor3} finish{ ambient 0.1 diffuse 0.05 reflection 0.4 specular 0.3 roughness 0.1}} #declare tx_V=texture { pigment {rgb cor1} finish{ ambient 0.1 diffuse 0.05 reflection 0.6 specular 0.3 roughness 0.1}} #declare chao = plane{z,0 texture{tx_chao}} #declare L=difference{box{<-3,1,1>,<0,-2,4>} box{<-2,1.5,2>,<0,-2.5,4.5>} texture{tx_L} interior{ior 1.5} } #declare I=union{cylinder{<2,0.5,1>,<2,0.5,4>,1} sphere{<2,0.5,5>,0.5} texture{tx_I} } #declare V= cone{<5.5,0.5,1>,0.001 <5.5,0.5,4>,1.5 texture{tx_V} interior{ior 2} } // Aqui está a cena, finalmente: union{ object{chao} object{L} object{I} object{V} }