// Last edited on 2013-12-11 05:57:50 by stolfilocal // Processed by remove-cam-lights #include "retalho.inc" background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_azul = texture{ pigment{ color rgb < 0, 0, 1 > } } #declare tx_vermelho = texture{ pigment{ color rgb < 1,0,0 > } } #declare tx_verde = texture{ pigment{ color rgb < 0,1,0 > } } #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_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.85, 0.30 > } finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare raio = 2.000; #declare botoes_width = 15; #declare botoes_height = 9; #declare esquemas_tamanho = 20; #include "eixos.inc" #macro quarter_sofa() #local A = array[4][4]; #local A[0][0] = < 0, 0, 2.2 >; #local A[0][1] = < 0, 3, 2 >; #local A[0][2] = < 0, 5, 1 >; #local A[0][3] = < 0, 6, 0 >; #local A[1][0] = < 3, 0, 2 >; #local A[1][1] = < 3, 3, 2 >; #local A[1][2] = < 3, 5, 1 >; #local A[1][3] = < 3, 6, 0 >; #local A[2][0] = < 5, 0, 1 >; #local A[2][1] = < 5, 3, 1 >; #local A[2][2] = < 5, 5, 0.8 >; #local A[2][3] = < 5, 6, 0 >; #local A[3][0] = < 6, 0, 0 >; #local A[3][1] = < 6, 3, 0 >; #local A[3][2] = < 6, 5, 0 >; #local A[3][3] = < 6, 6, 0 >; retalho(A[0][0],A[0][1],A[0][2],A[0][3],A[1][0],A[1][1],A[1][2], A[1][3],A[2][0],A[2][1],A[2][2],A[2][3],A[3][0],A[3][1],A[3][2],A[3][3],0,tx_fosca,tx_plastico) #end #macro acolchoado() union { object{ quarter_sofa() } object{ quarter_sofa() scale <-1,0,0 > } object{ quarter_sofa() scale < 0,-1,0 > } object{ quarter_sofa() scale < -1,-1,0 > } } #end #macro sofa() union{ object{ acolchoado() } object{ acolchoado() rotate< 90,0,0 > translate< 0,6,6 > } box{ <-6,-6,-2.2 >, < 6,6,0 > texture{tx_plastico}} box{ <-6,-6,-2.2 >, < 6,6,0 > rotate< 90,0,0 > translate< 0,6,6 > texture{tx_plastico} } box{ <-3,-6,-1.1 >, < 3,6,0 > rotate< 0,90,0 > translate<-6,0,0> texture{tx_plastico} } box{ <-3,-6,-1.1 >, < 3,6,0 > rotate< 0,90,0 > translate<7.1,0,0> texture{tx_plastico} } cylinder {< 0,0,0 >, <0,0,1.6>, 7 rotate< 0,90,0 > translate< 4,0,-8.5> texture{tx_fosca} } cylinder {< 0,0,0 >, <0,0,1.6>, 7 rotate< 0,90,0 > translate< -4,0,-8.5> texture{tx_fosca} } } #end union{ object{ sofa() rotate < 0,0, 90 > } } #include "camlight.inc" #declare centro_cena = < -5.00, 0.00, 11.00 >; #declare raio_cena = 30.0; #declare dir_camera = < 14.00, 7.00, 0.00 >; #declare dist_camera = 160.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)