// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2001-07-31 17:51:21 by stolfi #include "colors.inc" #declare ctr = < 0,5,0 > background {color rgb <1.00, 1.00, 1.00> } camera { location ctr + < 5.0, 10.0, 25.0> right <-0.80, 0.00, 0.00> up < 0.00, 0.00, 0.60> sky < 0.00, 0.00, 1.00> look_at ctr } light_source { <10, 10, 10> color White } #declare cor_Azul = color rgb <0,0,1>; #declare tinta_Azul = texture { pigment { color cor_Azul } finish { diffuse 0.9 ambient 0.1 } } #declare cor_Verde = color rgb <0,1,0>; #declare tinta_Verde = texture { pigment { color cor_Verde } finish { diffuse 0.9 ambient 0.1 } } #declare cor_Vermelho = <1,0,0>; #declare tinta_Vermelho = texture { pigment { color cor_Vermelho } finish { diffuse 0.9 ambient 0.1 } } #declare cor_Amarelo = color rgb <1,1,0>; #declare tinta_Amarelo = texture { pigment { color cor_Amarelo } finish { diffuse 0.5 reflection 0.4*cor_Amarelo ambient 0.1 } } #declare cor_espelho = color rgb <1.0,0.8,0.5>; #declare tx_espelho = texture { pigment{ color cor_espelho } finish{ ambient 0.05 diffuse 0.05 reflection (0.5*cor_espelho + 0.4*<1,1,1>) specular 0.20 roughness 0.05 } } #declare cor_cristal = <1.0, 1.0, 1.0>; #declare tx_cristal = texture { finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 0.1 roughness 0.001 } pigment { color cor_cristal filter 1} } // Os tres cilindros e somente para mostrar os eixos das coordenada #declare cilX_vm = cylinder { < -3, 0, 0 >, < 3, 0, 0 >, 0.01 texture { tinta_Vermelho } } #declare cilY_az = cylinder { < 0,-3, 0 >, < 0, 3, 0 >, 0.01 texture { tinta_Azul } } #declare cilZ_vd = cylinder { < 0, 0, -3 >, < 0, 0, 3 >, 0.01 texture { tinta_Verde} } #declare chao = plane { z,0 pigment{ checker <1.0, 1.0, 1.0>, <0.5, 1.0, 1.0>} finish{ ambient 0.4 diffuse 0.6 } translate -7*z } #declare A1 = <0,-3,3>; #declare A2 = <1,-3,3>; #declare A3 = <2,-3,2>; #declare A4 = <3,-3,1>; #declare A5 = <0,2,3>; #declare A6 = <1,2,3>; #declare A7 = <2,2,2>; #declare A8 = <3,2,1>; #declare A9 = <0,7,2>; #declare A10 = <1,7,2>; #declare A11 = <1.75,7,2>; #declare A12 = <2,7,2>; #declare A13 = <0,10,0>; #declare A14 = <1,10,0>; #declare A15 = <0,10,0>; #declare A16 = <0,10,0>; #declare B1 = <3,2,0>; #declare B2 = <2,1.8,0>; #declare B3 = <1,1,0>; #declare B4 = <0,0,0>; #declare B5 = <3,1.9,1>; #declare B6 = <2,1.7,1>; #declare B7 = <1,0.8,1>; #declare B8 = <0,0,1>; #declare B9 = <3,1,2>; #declare B10 = <2,0.7,2>; #declare B11 = <1,0.2,2>; #declare B12 = <0,0,2>; #declare B13 = <3,0,3>; #declare B14 = <5,0,3>; #declare B15 = <4,0,3>; #declare B16 = <3,0,3>; #declare patchA = bicubic_patch{ type 1 u_steps 5 v_steps 5 flatness 0.001 A1, A2, A3, A4, A5, A6, A7, A8, A9, A10,A11,A12, A13,A14,A15,A16 texture{ tx_espelho } } //#declare patchB = // bicubic_patch{ // type 1 // flatness 0.1 // B1,B2,B3,B4, // B5,B6,B7,B8, // B9,B10,B11,B12, // B13,B14,B15,B16 // pigment {color rgb<1,0,0>} // finish {reflection 0.8} // } //#declare tudo= //union{ //object {patchA} //object {patchB} // } // tres eixos // union { object {cilX_vm} // object {cilY_az} // object {cilZ_vd} union { object {patchA} object {patchA scale <-1, 1, 1>} object {chao} object {chao scale <1,1,-1> scale 1000 } } sphere { A1, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A2, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A3, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A4, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A5, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A6, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A7, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A8, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A9, 0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A10,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A11,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A12,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A13,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A14,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A15,0.1 texture{ pigment{ color rgb<0,0,1>}}} sphere { A16,0.1 texture{ pigment{ color rgb<0,0,1>}}} //sphere { B1,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B2,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B16,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B3,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B4,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B5,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B6,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B7,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B8,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B9,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B10,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B11,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B12,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B13,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B14,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B15,0.1 texture{ pigment{ color rgb<0,1,1>}}} //sphere { B16,0.1 texture{ pigment{ color rgb<0,1,1>}}}