// Last edited on 2009-10-10 18:27:49 by stolfilocal // Processed by remove-cam-lights #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 background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = 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_sala = texture{ pigment{ color rgb < 1, 1, 1 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } 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_porta = texture{ pigment{ color rgb < 1.00, 0.0, 0.0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_quadro = texture{ pigment{ color rgb < 0.00, 0.5, 0.0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare raio = 2.000; #declare mesa = difference { box{ <0, 0, 0>, <1, 3, 1.5> texture {tx_plastico}} box{ <0.01, 0.01, -0.01>, <1.1, 2.99, 1.49> texture {tx_plastico}} } #declare cadeira = union { difference { cylinder{ <0, 0, 0>, <0, 0, 6>, 1.5 texture {tx_plastico} } union { cylinder{ <0, 0, -0.1>, <0, 0, 2.9>, 1.6 } cylinder{ <0, 0, 3.1>, <0, 0, 5.0>, 1.6 texture {tx_fosca} } cylinder{ <-0.5, 0, 4.9>, <-0.5, 0, 6.1>, 1.5 texture {tx_fosca} } } } cylinder{ <0.95, -1, 0>, <0.95, -1, 6>, 0.1 texture {tx_plastico} } cylinder{ <0.95, 1, 0>, <0.95, 1, 6>, 0.1 texture {tx_plastico} } cylinder{ <-0.95, -1, 0>, <-0.95, -1, 3>, 0.1 texture {tx_plastico} } cylinder{ <-0.95, 1, 0>, <-0.95, 1, 3>, 0.1 texture {tx_plastico} } } #declare monitor = union { cylinder{<0,0,0>, <0,0,0.1>, 0.5} box{<0.05, 0.1, 0.0>, <-0.05, -0.1, 1> texture {tx_plastico}} box{<0.1, 0.15, 0.75>, <-0.1, -0.15, 1.25> texture {tx_plastico}} box{<0.1, -1, 0.5>, <0.2, 1, 1.5> texture {tx_fosca}} } #declare cnj = union { object {mesa scale <1, 1.5, 1>} object {cadeira scale 0.6*<0.5, 0.5, 0.5> translate <1.3, 1.2, 0>} object {cadeira scale 0.6*<0.5, 0.5, 0.5> translate <1.3, 3.4, 0>} object {monitor scale <0.75, 0.75, 0.75> translate <0.5, 1.2,1.5>} object {monitor scale <0.75, 0.75, 0.75> translate <0.5, 3.4,1.5>} } #declare sala = difference { box {<40, 24, 0>, <0, 0, 15> texture {tx_sala}} box {<41, 25, 1>, <0, 0, 16> texture {tx_sala}} } object {sala} object { mesa scale <2, 2, 2> rotate <0, 0, 180> translate <10, 20, 1> } box { <0.2, 2, 4>, <0.0, 22, 8> texture {tx_quadro} } #declare coluna = 1; #while (coluna <= 2) #declare linha = 1; #while(linha < 6) #if (linha != 3 | coluna != 1) object {cnj scale <2, 2, 2> translate} #else box {<(linha)*5 +10.5, 0, 0.75*linha>, <(linha)*5 + 13.5, 0.1, 0.75*linha+8> texture {tx_porta}} #end #if (coluna < 2) box {<(linha+1)*5 +10, 0, 0>, <(linha)*5 +10, 24, 0.75*(linha)> texture {tx_sala}} #end #declare linha = linha + 1; #end #declare coluna = coluna +1; #end text { ttf "arial.ttf" "Dilson" 1, 0 rotate<90, 0, 0> rotate<0, 0, 90> scale <0.8, 3, 3> translate <-0.5, 8, 5> } #declare janela = box { <0,0,0>, <1, 1, 1> pigment { image_map { jpeg "Teste.jpg" } } scale 0.8*<16, 9, 1> scale <-1, 1, 1> rotate <90, 0, 0> translate <15, 0.1, 5> } object {janela} // Original camera parameters: // #local cam_ctr = <20.00,10.00,1.00> // #local cam_vec = ((1.2*<30.00,60.00,13.50>)-<20.00,10.00,1.00>) // #local cam_sky = z #include "camlight.inc" camlight(<20.00,10.00,1.00>,35.0,<10,8,7>,50.0,z,1.2)