// Last edited on DATE TIME by USER // Processed by remove-cam-lights 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_plastico2 = texture{ pigment{ color rgb < 1, 0, 0 > } 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_assento = texture{ pigment{ color rgb < 1.00, 0, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_enconsto = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_campo = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.9 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 } #macro escadas (ndegrau,largura) #declare i=0; union{ #while(i, } #declare i = i+1; #end } #end #macro secao (fileiras,assentos) #declare i=0; #declare j=0; union{ #while(i, texture{tx_fosca}} #declare j = 0; #while(j,<(i+2)/2,(j+1)/2,i+1.1> texture{tx_assento}} #declare j = j+1; #end #declare i = i+1; #end } #end #declare cabecas = union{ #declare i=0; #declare j=0; #while(i<7) #while(j<7) sphere{ < 1.5,j+1,6 >, 0.50 texture{ tx_fosca } } #declare j=j+1; #end sphere{ < 2.5,i+1,4 >, 0.50 texture{ tx_fosca } } #declare i=i+1; #end } #declare pessoas = union{ #declare i=0; #declare j=0; #while(i<7) #while(j<7) #if (j=5) cone{ < 1.5, j+1, 4 >, 0.75 , <1.5,j+1,6>,0.125 texture{ tx_plastico2 } } #else cone{ < 1.5, j+1, 4 >, 0.75 , <1.5,j+1,6>,0.125 texture{ tx_plastico } } #end #declare j=j+1; #end #if (i=2) cone{ < 2.5, i+1, 2 >, 0.75 , <2.5,i+1,4>,0.125 texture{ tx_plastico2 } } #else cone{ < 2.5, i+1, 2 >, 0.75 , <2.5,i+1,4>,0.125 texture{ tx_plastico } } #end #declare i=i+1; #end } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #include "eixos.inc" union{ object{ eixos(3.00) } object{ chao translate < 0,0,-5 > texture{ tx_campo } } object{ secao(5,8) } object{ secao(5,16) translate <0,-10,0> } object{ escadas(5,3) translate <0,-2.5,0> texture{ tx_fosca }} object{ secao(5,8) rotate 180*z translate <-8,0,0> } object{ escadas(5,8) rotate 180*z translate <-8,-4,0> texture{ tx_fosca }} object{ secao(5,16) translate <8,-10,0> rotate 180*z } object{ escadas(5,3) translate <8,-2.5,0> texture{ tx_fosca } rotate 180*z} object{ escadas(5,2) rotate -90*z translate <-3,-9,0>texture{ tx_fosca }} object{ secao(5,15) rotate -90*z translate <-10,-9,0>} object{ escadas(5,2) rotate 90*z translate <2,9,0>texture{ tx_fosca }} object{ secao(5,15) rotate 90*z translate <0,9,0>} object{ escadas(5,3) translate <0,2.5,0> texture{ tx_fosca }} object{ secao(5,16) translate <0,5,0> } } #include "camlight.inc" #declare centro_cena = < -10.00, 10, 10.00 >; #declare raio_cena = 20.0; #declare dir_camera = < -400, 400, 300 >; #declare dist_camera = 30.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)