// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2009-03-09 18:44:03 by stolfi // ====================================================================== // CÂMERA camera{ location < 14.00, 7.00, 3.50 > // Posição do observador. right -0.45*x // Largura RELATIVA da imagem. up 0.60*y // Altura RELATIVA da imagem. sky z // Qual direção é "para cima"? look_at < 0.00, 0.00, 1.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.0 * < 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.5 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // EIXOS DE COORDENADAS #macro eixo(ponta,cor,nome) union{ sphere{ <0,0,0>, 0.02 } cylinder{ <0,0,0>, 0.91*ponta, 0.02 } cone{ 0.90*ponta, 0.06, ponta, 0.00 } texture{ pigment{ color rgb cor } finish{ ambient 0.5 diffuse 0.5 } } } #end #macro eixos(tamanho) union{ object{ eixo( , <1.0,0.2,0.2>, "X") } object{ eixo( <0,tamanho,0>, <0.0,0.8,0.0>, "Y") } object{ eixo( <0,0,tamanho>, <0.3,0.3,1.0>, "Z") } } #end // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.85, 0.85, 0.85 > } #declare tx_cinza = texture{ pigment{ color rgb < 1,0,0 > } finish{ diffuse 0.1 ambient 0.1 reflection 0.8*<1,1,1>} } #declare tx_preto = texture{ pigment{ color rgb < 0, 0, 0 > } } #declare tx_branco = texture{ pigment{ color rgb < 1, 1, 1 > } finish{ ambient 0.3 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.65, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.90, 0.70 > } finish{ diffuse 0.1 reflection 0.8*< 1.00, 0.90, 0.70 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.97, 0.98, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_telhado = texture { pigment{ image_map { jpeg "telhado.jpg"} scale < 0.77 , 0.61 , 1> } finish{ diffuse 0.8 ambient 0.2 } } #declare p1 = <0.5,0.5>; #declare p2 = <0.75,1>; #declare p3 = <0.9,1.5>; #declare p4 = <0.7,2>; #declare p5 = <0.7,2>; #declare p6 = <0.5,2.5>; #declare p7 = <0.4,3>; #declare p8 = <0.65,3.5>; #declare p9 = <0.65,3.5>; #declare p10 = <0.9,4>; #declare p11 = <1,4.5>; #declare p12 = <0.7,5.5>; #declare torre1= lathe { bezier_spline 12, p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12//,p13,p14,p15,p16,p17,p18,p19,p20 pigment{ color rgb < 1.00, 0.65, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare q1=<0.5,0.5>; #declare q2=<-0.5,0.5>; #declare q3=<-1,0>; #declare q4=<-0.5,-0.5>; #declare q5= <0.5, -0.5>; #declare q6=<0.5,0.5>; #declare torre2= prism { linear_sweep linear_spline 0, 3.75, 6, q1,q2,q3,q4,q5,q6 pigment{ color rgb < 1.00, 0.65, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare r1 = <0.5,0.5>; #declare r2 = <-0.5,0.5>; #declare r3 = <-0.5,-0.5>; #declare r4 = <0.5,0.5>; #declare torre3= prism{ conic_sweep linear_spline 0, 3.8, 4, r1,r2,r3,r4 pigment{ color rgb < 1.00, 0.65, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare pilar1=object{torre1 rotate 90*x translate<0,0,-0.5> scale<0.75,0.75,0.75>} #declare pilar2=object{torre2 rotate 90*x rotate 180*z }; #declare pilar3=object{torre3 scale<1/3.8,1,1/3.8> rotate 90*x rotate 180*z translate<0,0,-0.06> }; #declare pilar4=union{object{pilar1} object{pilar3 scale<1,1,-1> translate<0,0,3.75>}} #declare pilar5=union{object{pilar3 scale<1,1,-1> translate<0,0,3.75>}} #declare pilar6=union{object{pilar1} object{pilar3 scale<1,1,-1> translate<0,0,3.75>}} #declare contrapiso= box{ < -1, -1, 0>, < 5 , 4, -0.2 > texture{ tx_fosca } } #declare piso= box{ < -0.8, -0.8, 0>, < 4.8 , 3.8, -0.05 > texture{ tx_vidro } } #declare laje=object{piso translate<0,0,1.5>} #declare r1 = <1,1>; #declare r2 = <-1,1>; #declare r3 = <-1,-1>; #declare r4 = <1,-1>; #declare r5 = <1,1>; #declare telhado= prism{ conic_sweep linear_spline 0, 1, 5, r1,r2,r3,r4,r5 texture{ tx_telhado } } #declare templo= union { object{pilar1 scale 0.4} object{pilar2 scale 0.4 translate<0,3,0>} object{pilar3 scale 0.4 translate<2,3,0>} object{pilar4 scale 0.4 translate<2,0,0>} object{pilar5 scale 0.4 translate<4,0,0>} object{contrapiso translate<0,0,-0.05> } object{ piso } object{ telhado rotate 90*x scale<3.5,3,-1.2> translate<1,1,2.6>} } object {templo scale 0.8 }