// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2010-03-04 15:44:01 by stolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_bola = texture{ pigment{ color rgb < 0.60, 0.70, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_p1 = texture{ pigment{ color rgb < 0.80, 0.20, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_p2 = texture{ pigment{ color rgb < 1.00, 0.10, 0.20 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_c1 = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_c2 = texture{ pigment{ color rgb < 0.50, 0.80, 0.70 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_preto = texture{ pigment{ color rgb < 0.00, 0.00, 0.00 > } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.00, 0.02, 0.00 >, color rgb < 1.00, 1.00, 1.00 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // Partes da cena: #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare caixa = box{ < 0,0,0 >, < 2.5,2.5,2.5 > } #declare caixa_furo = box{ < 0,0,0 >, < 2.4,2.4,2.4 > } #declare bola = sphere{ < 0,0,0 >, 1.3 } #declare c1 = cylinder{ < 0, 0, 0 >, < 0, 0, 2.3 >, 0.6 } #declare c2 = cylinder{ < 0, 0, 0 >, < 0, 0, 2.5 >, 0.5 } #declare pino = cone{ < 0, 0, 0 >, 0.6, < 0, 0, 2.5 >, 0 } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(3.00) } object{ chao translate < 0,-3,0 > texture{ tx_xadrez } } difference{ object{ caixa translate < 0,-3,0 > texture{ tx_fosca } } object{ caixa_furo translate < 0,-2.8,0.05 > texture{ tx_preto } } } object{ bola translate < 0,2,1 > texture{ tx_bola } } object{ c1 translate < 0.6,-0.6,0.1 > texture{ tx_c1 } } object{ pino translate < 0.6,0.5,-5 > rotate < 0,270,0 > texture{ tx_p1 } } object{ pino translate < -0.6,1.5,2.5 > rotate < 0,90,0 > texture{ tx_p2 } } object{ c2 translate < -0.5,3.5,1.5 > rotate < 0,90,0 > texture{ tx_c2 } } } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.5; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)