// Last edited on DATE TIME by USER // Processed by remove-cam-lights #include "textures.inc" #include "retalho.inc" background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 1.00, 1.00, 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 < 1, 1.0, 1.00 > filter 0.70 } finish{ diffuse 0.3 reflection 0.01 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 tx_vermelho = texture{ pigment{ color rgb < 0.80, 0, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_verde = texture{ pigment{ color rgb < 0.00, 0.80, 0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_azul = texture{ pigment{ color rgb < 0.00, 0.00, 0.80 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #macro meio_sofa() union{ #local f = array[4][4] // Costas {{<-12, 0, 12>, <-10, 0, 12>, <10, 0, 12>, <12, 0, 12>}, {<-12, 1, 8>, <-10, 1, 8>, <10, 1, 8>, <12, 1, 8>}, {<-12, 2, 4>, <-10, 2, 4>, <10, 2, 4>, <12, 2, 4>}, {<-12, 0, 0>, <-10, 0, 0>, <10, 0, 0>, <12, 0, 0>}}; #local g = array[4][4] // Assento {{<-12, 0, 0>, <-10, 0, 0>, <10, 0, 0>, <12, 0, 0>}, {<-12, 2, 1>, <-10, 2, 1>, <10, 2, 1>, <12, 2, 1>}, {<-12, 5, 2>, <-10, 5, 2>, <10, 5, 2>, <12, 5, 2>}, {<-12, 7, 0>, <-10, 7, 0>, <10, 7, 0>, <12, 7, 0>}}; #local h = array[4][4] // Traseira {{<-12, 0, 12>, <-10, 0, 12>, <10, 0, 12>, <12, 0, 12>}, {<-12, -4, 1>, <-10, -4, 1>, <10, -4, 1>, <12, -4, 1>}, {<-12, -5, -2>, <-10, -5,-2>, <10, -5, -2>, <12, -5, -2>}, {<-12, 7, 0>, <-10, 7, 0>, <10, 7, 0>, <12, 7, 0>}}; object{ retalho( f[0][0],f[0][1],f[0][2],f[0][3], f[1][0],f[1][1],f[1][2],f[1][3], f[2][0],f[2][1],f[2][2],f[2][3], f[3][0],f[3][1],f[3][2],f[3][3], 0, tx_fosca,tx_vermelho) rotate<0,0,0> } object{ retalho( g[0][0],g[0][1],g[0][2],g[0][3], g[1][0],g[1][1],g[1][2],g[1][3], g[2][0],g[2][1],g[2][2],g[2][3], g[3][0],g[3][1],g[3][2],g[3][3], 0, tx_fosca,tx_vermelho) rotate<0,0,0> } object{ retalho( h[0][0],h[0][1],h[0][2],h[0][3], h[1][0],h[1][1],h[1][2],h[1][3], h[2][0],h[2][1],h[2][2],h[2][3], h[3][0],h[3][1],h[3][2],h[3][3], 0, tx_vermelho,tx_vermelho) rotate<0,0,0> } } #end #declare roda = torus { 4, 1 // major and minor radius rotate <0,0,90> texture{tx_azul} } union{ object{meio_sofa() translate <12,0,0> scale<0.5,0,0>} object{meio_sofa() translate <12,0,0> scale<-0.5,0,0>} object{roda translate <0,0,-7>} object{roda translate <-8,0,-7>} object{roda translate <8,0,-7>} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 4.00 >; #declare raio_cena = 40.0; #declare dir_camera = < 15.00, 10.00, 3.00 >; #declare dist_camera = 20.0; #declare intens_luz = 1.40; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)