//------------------------------------------------------- // MC930 // Computacao Grafica // Aluno : Leo Iwao Jouti // R.A.: 941016 // Projeto Final da Disciplina - Marco de Campinas // Construcao Escolhida : Rodoviaria de Campinas //Nome Oficial : Estacao Rodoviaria Dr. Barbosa de Barros //------------------------------------------------------- #include "finish.inc" #include "glass.inc" #include "colors.inc" #include "textures.inc" sky_sphere { pigment { gradient y color_map { [0.000 0.002 color rgb <0.0, 0.2, 1.0> color rgb <1.0, 0.2, 0.0>] [0.002 0.200 color rgb <0.0, 0.5, 0.8> color rgb <0.2, 0.2, 0.3>] } scale 2 translate -1 } pigment { bozo turbulence 0.65 omega 0.7 lambda 2 color_map { [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>] [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>] [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>] } scale <0.2, 0.5, 0.2> } rotate -135*x } //visao da Barao de Itapura //light_source { <120,30,40> White } //camera { // location <120,10,38> // look_at <70,2,38> // sky y // angle 45 // } //visao da esquina Barao de Itapura/rua de cima //light_source { <80,30,100> White } //light_source { <35,2.5,30> Blue } //camera { // location <125,28,110> // look_at <45,8,36> // sky y // angle 45 // } //visao aerea //light_source { <-80,260,20> White } //camera { // location <10,270,32> // look_at <10,4,30> // sky z // angle 35 // } //visao da Andrade Neves/Barao de Itapura light_source { <140,70,-60> White } light_source { <180,70,50> White } camera { location <160,60,-60> look_at <55,10,7> sky y angle 35 } //visao da saida dos onibus //light_source { <-80,20,23> White } //camera { // location <-110,15,39> // look_at <-34,5,39> // sky z // angle 35 // } //visao da entrada principal das pessoas //light_source { <20,60,250> White } //camera { // location <60,8,90> // look_at <60,4,45> // sky z // angle 35 // } //visao diagonal rua que desce/rua da entrada de pedestre //light_source { <-120,50,70> White } //camera { // location <-95,35,100> // look_at <-15,10,50> // sky z // angle 35 // } //visao da Andrade Neves //light_source { <0,65,-270> White } //camera { // location <13,45,-180> // look_at <13,5,20> // sky z // angle 35 // } //visao diagonal da Andrade Neves/Rua da saida de onibus //light_source { <-80,65,-200> White } //camera { // location <-110,90,-95> // look_at <-10,5,10> // sky z // angle 35 // } //Visao em cima do estacionamento //light_source { <-10,30,-30> White } //camera { // location <-8,20,-30> // look_at <-8,5,5> // sky z // angle 35 // } //-------------------------------------------------- plane { y,-0.2 texture { pigment { Gold } finish { ambient 0.05 specular 0.8 } normal { ripples .35 turbulence .5 scale .25 } } } #declare origem = < 0, 0, 0 >; //telhado azul do predio principal #declare telhado = box{ <1.2,11,20>, <56,13,58> texture{ pigment{ color rgb < 0.4, 0.4,0.9> } finish{ diffuse 0.3 reflection 0.10 } } } //box //toldo de onibus enclinado box{ <0,0,0>,<15,0.3,24> pigment{ color White } rotate <0,0,5> translate <-34,7,28> } //box //toldo plano box{ <0,0,0>,<16,0.3,24> pigment{ color White } translate <-14,6.3,28> } //box //segunda parte enclinada do toldo onibus box{ <-5,0,0>,<0,0.3,24> pigment{ color White } rotate <0,0,-7> translate <-14,6.3,28> } //box #declare caixadeagua = box { <0,0,0>,<2,1.4,3> pigment { color Yellow } translate <7,13,50> } #declare predio = //colunas em construcao #declare c = 2; #while (c < 69) box {, pigment { color Gray } } box {, pigment { color Gray } } #declare c = c + 4; #end // while //muro do 1 andar da Andrade Neves #declare m = 2.4; #while ( m < 66) box {, pigment { color White } } #declare m = m + 4; #end //while //muro do 1 andar da Itapura box {<67,0,0.4>,<67.3,2.3,19.6> pigment { color White } } //1 andar em construcao box { <2,2.5,-0.3>,<70,2.8,20> pigment { color Gray } } //2 andar em construcao box { <2,4.8,-2.5>,<70,5.3,21> pigment { color Gray } } //3 andar em construcao box { <2,7.3,-0.8>,<68,7.6,21> pigment { color Gray } } //ultimo andar em construcao box { <2,10,-2.5>,<70,10.40,22> pigment { color Gray } } difference { union { //parte azul do muro da entrada de pessoas box { <2,3,57.15>,<-34,7,57.4> pigment { color rgb <0.4,0.4,0.9> } } //parte amarela do muro da entrada de pessoas box { <2,0,57.1>,<-34,7,57.15> pigment { color Yellow } } } //union box { <-35,4,55>,<-32,9,57.5> pigment { color Blue } } box { <-32,4.4,55>,<-29,9,57.5> pigment { color Blue } } }//difference //primeiro toldo da saida de onibus box { <-17,6.8,57.3>,<-30,6.9,55> pigment{ color Yellow } } box { <-17,6.9,57.3>,<-30,7,55> pigment{ color Gray } } //toldo da entrada de pessoas box { <1.8,7,57.4>,<30.8,8.6,59.4> pigment { color rgb <0.4,0.4,0.9> } } //parte azul da entrada de onibus box { <55,6.2,21>,<55.1,5,56> pigment { color rgb <0.4,0.4,0.9> } } //Detalhe lateral azul box { <31,0,57.2>,<54.2,5,57.45> pigment { color rgb<0.5,0.5,1> } } //Detalhe lateral branco #declare l = 31; #while ( l < 54.2 ) box { , pigment { color White } } #declare l = l + 0.5; #end //while //divisoria pista 1 e 2 da saida de onibus azul box { <0,0,0>,<21,1.5,0.3> // <2,3,57.15>,<-34,7,57.4> rotate <0,0,-6> translate <-32,2,49> pigment { color rgb <0.4,0.4,0.9> } } //continuacao. divisoria parte reta azul box { <0,0,0>,<14,1.5,0.3> translate <-12,0,49> pigment { color rgb <0.4,0.4,0.9> } } //divisoria pista 1 e 2 da saida de onibus amarela box { <0,0,0>,<21,1.5,0.3> rotate <0,0,-6> translate <-32,3.5,49> // <2,0,57.1>,<-34,7,57.15> pigment { color Yellow } } //continuacao. divisoria parte reta amarela box { <0,0,0>,<14,2,0.3> translate <-12,1.5,49> pigment { color Yellow } } //divisoria pista 2 e 3 da saida de onibus azul box { <0,0,0>,<17,1.5,0.3> rotate <0,0,-6> translate <-32,1.5,40.7> pigment { color rgb <0.4,0.4,0.9> } } //cont reta azul box { <0,0,0>,<17,1.5,0.3> translate <-15,0,40.7> pigment { color rgb <0.4,0.4,0.9> } } //divisoria pista 2 e 3 da saida de onibus amarela box { <0,0,0>,<17,1.5,0.3> rotate <0,0,-6> translate <-32,3,40.7> // <2,0,57.1>,<-34,7,57.15> pigment { color Yellow } } //cont reta amarela box { <0,0,0>,<17,1.5,0.3> translate <-15,1.5,40.7> pigment { color Yellow } } //janelas saida de onibus/parte superior box { <2,8,30>,<4,11,50> ///// pigment { color Black } finish{ // diffuse 0.2 reflection 0.9 } //finish }//box //-------------------------------------------- difference { //predio principal union { box { <2.1,0,20>,<55,11,57.4> pigment{ color White } } box { <2,0,20>,<2.1,11,57.4> pigment{ color Yellow } } } //union //--------------------------------------- //buraco 5 em cima do toldo da rua de cima box { <19.6,9,50>,<26,11,57.45> pigment { color Gray } } //buraco 6 em baixo do toldo da rua de cima box { <19.6,3.2,50>,<26,6.8,57.45> pigment { color Gray } } //buraco 4 em cima do toldo da rua de cima box { <15.6,9,50>,<19.3,10.7,57.45> pigment { color Gray } } //buraco 7 em baixo do toldo da rua de cima box { <15.6,4,57>,<19.3,6.8,57.45> pigment { color Gray } } //buraco 3 em cima do toldo da rua de cima box { <11.6,9,50>,<15.3,10.7,57.45> pigment { color Gray } } //buraco acesso plataforma 11 box { <11.6,3.2,55>,<15.3,6.8,57.45> pigment { color Gray } } //buraco 2 em cima do toldo da rua de cima box { <7.3,9,50>,<11.3,11,57.45> pigment { color Gray } } //buraco acesso plataforma 12 box { <7.3,3.2,55>,<11.3,6.8,57.45> pigment { color Gray } } //buraco em cima do toldo da rua de cima box { <2.4,9,50>,<7,11,57.45> pigment { color Gray } } //buraco em baixo do toldo da rua de cima box { <2.4,3.6,54.5>,<7,6.8,57.45> pigment { color Gray } } //buraco p/ detalhe lateral branco box { <31,5,57.2>,<54.2,11,57.45> pigment { color Gray } } //buraco p/ detalhe lateral azul box { <31,0,57.2>,<54.2,5,57.45> pigment { color Gray } } //buraco 1 de janelas / saida de onibus box { <1.9,8,30>,<10,11,50> pigment { color Gray } } //buraco 1 das janelas laterais box { <40,6.2,21>,<55.1,7.8,56> pigment { color Gray } } //buraco 2 das janelas laterais box { <40,8.8,21>,<55.1,10.8,56> pigment { color Gray } } //buraco 1 de entrada/saida de onibus box { <1.9,0,49>,<55.1,4,56.3> pigment{ color Gray } } //buraco 2 de entrada/saida de onibus box { <1.9,0,40.7>,<55.1,4,48.7> pigment{ color Gray } } //buraco 3 de entrada/saida de onibus box { <1.9,0,29>,<55.1,4,40.4> pigment{ color Gray } } //buraco 4 de entrada/saida de onibus box { <5,0,22>,<55.1,4,28.7> pigment{ color Gray } } } //difference #declare ruasaida = box { <0,0,0>,<6,0.1,60> pigment { color Black } rotate <-2.89,0,0> translate <-46,0,0> } box { <0,0,0>,<6,0.1,30> pigment { color Black } translate <-46,0,-30> } box { <0,0,0>,<6,0.1,20> pigment { color Black } translate <-46,2.9,68> } #declare ruadecima = box { <-60,0,60>,<36,3.2,68> pigment { color Black } } box { <0,0,0>,<42,3.2,8> pigment { color Black } rotate <0,0,-3> translate <35,0,60> } #declare andradeneves = box { <-80,-0.1,-3> <78,0,-14> pigment { color Black } } //faixa de pedestres #declare f = 0; #while (f < 11 ) box { <-48.7,-0.1,-3.4>,<-52.7,0.05,-3.8> pigment { color White } translate <0,0,-f> } box { <66,-0.1,-3.4>,<70,0.05,-3.8> pigment { color White } translate <0,0,-f> } #declare f = f + 1; #end //while #declare itapura = box { <0,-0.1,0>,<12,0,44> pigment { color Black } translate <72,0,-26> } box { <0,0,19>,<12,0.2,68> pigment { color Black } rotate <-1,-15,-2> translate <77.5,-0.3,-3> } background{ color rgb < 0.3, 0.3, 0.5 > } #declare calcada = //rodoviaria box { <-40,0,-3>,<72,0.2,60> pigment { Silver } } //--------------------------------------------- //inclinacao da saida de onibus difference { box { <0,0,0>,<40,1,44> // <0,0,-3>,<-40,0.2,60> pigment { Silver } rotate <-2.9,0,-5> translate <-40,0,16> } box { <-16.3,0.2,0.3>,<-37.7,3.5,29.7> pigment { color White } } }//difference //--------------------------------------------- //praca da frente box { <-40,0,-14>,<72,0.2,-28> pigment { Silver } } //--------------------------------------------- //quadra da esquina box { <-78,0,-14>,<-46,0.2,-28> pigment { Silver } } //--------------------------------------------- //rua que desce /frente box { <0,0,0>,<34,0.1,63> pigment { color Silver } rotate <-2.89,0,0> translate <-80,0,-3> } //--------------------------------------------- //rua de cima difference { union { box { <-40,0,57.4>,<56,3.2,60> pigment { Silver } } box { <-40,0,68>,<56,3.2,88> pigment { Silver } } } //union box { <0,0,0>,<30,1.5,30> pigment { color Silver } rotate <0,0,-3.3> translate <36,3.2,57.4> } } //difference //--------------------------------------------- //otica box { <-8,2.4,-1.4>,<-4,3.2,0> pigment { color rgb <0.4,0.4,0.7> } } text { ttf "timrom.ttf" "OTICA" 0.15, 0 pigment { color Yellow } scale <0.6,0.6,0.6> translate <-7,2.5,-1.5> } difference { box { <-8,0,0>,<-4,4,16> pigment { color rgb <0.4,0.4,0.7> } } box { <-7.7,0,-0.1>,<-4.3,2.3,14> pigment { color White } } }//difference //--------------------------------------------- //loja fechada difference { box { <-4,0,1.5>,<2,4.2,16> pigment {color rgb <0.8,1,0.7> } } box { <-3.6,0,1.4>,<1.5,3,1.6> pigment {color White } } }//difference //---------------------------------------------- //lanchonete #declare lojaesquina = text { ttf "timrom.ttf" "Lanches" 0.15, 0 pigment { color Yellow } scale <0.6,0.6,0.6> translate <-15,2.5,-1.5> } box { <-16,2.4,-1.4>,<-12,3.2,0> pigment { color rgb <0.4,0.4,0.9> } } difference { box { <-16,0.2,0>,<-12,4,16> pigment { color rgb <1,0.8,0.7> } } box { <-15.7,0.2,-0.1>,<-12.3,2.4,15.7> pigment { color rgb <1,0.8,0.7> } } }//difference //--------------------------------------------- #declare estacionamento2 = box { <-12,2.8,0.3>,<-8,3.8,0> pigment { color Yellow } } text { ttf "timrom.ttf" "ESTACIONAMENTO" 0.15, 0 pigment { color Red } scale <0.35,0.35,0.35> translate <-11.5,3.2,-0.15> } box { <0,0,0>,<18,0.2,7> rotate 10*x translate <-16,4.2,23> pigment { color Gray } } difference { union { box { <-8,0.2,0>,<-12,3,30> pigment { color White } } box { <2,0.2,16>,<-16,3,30> pigment { color White } } } //union union { box { <-8.2,0.25,-0.1>,<-11.8,3.4,29.7> pigment { color White } } box { <1.8,0.2,16.2>,<-15.8,3.1,29.7> pigment { color White } } } //union }//difference //------------------------------------------------------ //Nome da rodoviaria text { ttf "timrom.ttf" "Estacao Rodoviaria Dr. Barbosa de Barros" 0.15, 0 pigment { color White } finish { reflection .25 specular 1 } rotate 180*y translate <25,7.6,59.7> } text { ttf "timrom.ttf" "ESTACAO RODOVIARIA Dr. BARBOSA DE BARROS" 0.15, 0 pigment { color White } rotate -90*y translate <56.5,11.5,27> } //---------------------------------------------------------- #declare estacionamento = //cobertura box { <0,0,0>,<5,0.2,27> rotate -5*z translate <-21,3.7,3> pigment { color Gray } } box { <0,0,0>,<5,0.2,27> rotate 5*z translate <-38,3.5,3> pigment { color Gray } } box { <0,0,0>,<12,0.2,5> rotate 10*x translate <-33,4.2,25> pigment { color Gray } } //------------------------------------------- difference { union { //bloco principal box { <-16,0.2,0>,<-38,3.4,30> pigment { color White } } //------------------------------------------- //faixa azul externa box { <-16,0.2,-0.05>,<-38,1.2,0.1> pigment { color rgb <0.4,0.4,0.9> } } //box //------------------------------------------- //faixa amarela externa box { <-16,1.2,-0.05>,<-38,1.4,0.1> pigment { color Yellow } } //box //------------------------------------------- } //union //area de dentro box { <-16.3,0.2,0.3>,<-37.7,3.5,29.7> pigment { color rgb <0.8,1,0.7> } } //entrada box { <-33.5,0.2,-0.1>,<-37,2.8,0.4> pigment {color White } } //------------------------------------------- //janelas do estacionamento box { <-28,1.8,-0.1>,<-31,2.8,0.4> pigment {color White } } box { <-23,1.8,-0.1>,<-26,2.8,0.4> pigment {color White } } box { <-18,1.8,-0.1>,<-21,2.8,0.4> pigment {color White } } } //difference //------------------------------------------------ #declare carroandrade = union { //rodas cylinder { <-29,0.15,-3.5>,<-29,0.15,-5.5>,0.25 texture { pigment { color White } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.15,-5.6>,0.25 texture { pigment { color White } } } //cylinder difference { //estrutura do carro/lataria box { <-28,0.2,-3.5>,<-32,1.2,-5.5> texture { pigment { color rgb <0.5,0.5,1> } } } //cortes laterais //frente box { <-27.9,0.8,-3.4>,<-29,1.3,-5.6> texture { pigment { color rgb <0.5,0.5,1> } } } //frente/corte do capo box { <0,0,0>,<1.1,0.5,-2.2> rotate <0,0,-25> translate <-28.6,0.8,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box //frente/corte vidro da frente box { <0,0,0>,<0.6,0.5,-2.2> rotate <0,0,-45> translate <-29.5,1.2,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box //traseira box { <-31.2,0.8,-3.4>,<-32.1,1.3,-5.6> texture { pigment { color rgb <0.5,0.5,1> } } } //box //corte traseira/porta malas box { <0,0,0>,<-0.6,0.5,-2.2> rotate <0,0,30> translate <-31.5,0.8,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box cylinder { <-29,0.15,-3.4>,<-29,0.2,-5.6>,0.3 texture { pigment { color rgb <0.5,0.5,1> } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.2,-5.6>,0.3 texture { pigment { color rgb <0.5,0.5,1> } } } //cylinder }//differende } //union #declare carroandrade2 = union { //rodas cylinder { <-29,0.15,-3.5>,<-29,0.15,-5.5>,0.25 texture { pigment { color White } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.15,-5.6>,0.25 texture { pigment { color White } } } //cylinder difference { //estrutura do carro/lataria box { <-28,0.2,-3.5>,<-32,1.2,-5.5> texture { pigment { color rgb <1,0.5,0.5> } } } //corte laterais //frente box { <-27.9,0.8,-3.4>,<-29,1.3,-5.6> texture { pigment { color rgb <1,0.5,0.5> } } } //frente/corte do capo box { <0,0,0>,<1.1,0.5,-2.2> rotate <0,0,-25> translate <-28.6,0.8,-3.4> texture { pigment { color rgb <1,0.5,0.5> } } } //box //frente/corte vidro da frente box { <0,0,0>,<0.6,0.5,-2.2> rotate <0,0,-45> translate <-29.5,1.2,-3.4> texture { pigment { color rgb <1,0.5,0.5> } } } //box //traseira box { <-31.2,0.8,-3.4>,<-32.1,1.3,-5.6> texture { pigment { color rgb <1,0.5,0.5> } } } //box //corte traseira/porta malas box { <0,0,0>,<-0.6,0.5,-2.2> rotate <0,0,30> translate <-31.5,0.8,-3.4> texture { pigment { color rgb <1,0.5,0.5> } } } //box cylinder { <-29,0.15,-3.4>,<-29,0.2,-5.6>,0.3 texture { pigment { color rgb <1,0.5,0.5> } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.2,-5.6>,0.3 texture { pigment { color rgb <1,0.5,0.5> } } } //cylinder }//differende } //union #declare carroandrade = union { //rodas cylinder { <-29,0.15,-3.5>,<-29,0.15,-5.5>,0.25 texture { pigment { color White } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.15,-5.6>,0.25 texture { pigment { color White } } } //cylinder difference { //estrutura do carro/lataria box { <-28,0.2,-3.5>,<-32,1.2,-5.5> texture { pigment { color rgb <0.5,0.5,1> } } } //corte laterais //frente box { <-27.9,0.8,-3.4>,<-29,1.3,-5.6> texture { pigment { color rgb <0.5,0.5,1> } } } //frente/corte do capo box { <0,0,0>,<1.1,0.5,-2.2> rotate <0,0,-25> translate <-28.6,0.8,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box //frente/corte vidro da frente box { <0,0,0>,<0.6,0.5,-2.2> rotate <0,0,-45> translate <-29.5,1.2,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box //traseira box { <-31.2,0.8,-3.4>,<-32.1,1.3,-5.6> texture { pigment { color rgb <0.5,0.5,1> } } } //box //corte traseira/porta malas box { <0,0,0>,<-0.6,0.5,-2.2> rotate <0,0,30> translate <-31.5,0.8,-3.4> texture { pigment { color rgb <0.5,0.5,1> } } } //box cylinder { <-29,0.15,-3.4>,<-29,0.2,-5.6>,0.3 texture { pigment { color rgb <0.5,0.5,1> } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.2,-5.6>,0.3 texture { pigment { color rgb <0.5,0.5,1> } } } //cylinder }//differende } //union #declare carroandrade3 = union { //rodas cylinder { <-29,0.15,-3.5>,<-29,0.15,-5.5>,0.25 //cylinder { <-29,0.15,-3.4>,<-29,0.15,-5.6>,0.3 texture { pigment { color White } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.15,-5.6>,0.25 texture { pigment { color White } } } //cylinder difference { //estrutura do carro/lataria box { <-28,0.2,-3.5>,<-32,1.2,-5.5> texture { pigment { color Yellow } } } //corte laterais //frente box { <-27.9,0.8,-3.4>,<-29,1.3,-5.6> texture { pigment { color Yellow } } } //frente/corte do capo box { <0,0,0>,<1.1,0.5,-2.2> rotate <0,0,-25> translate <-28.6,0.8,-3.4> texture { pigment { color Yellow } } } //box //frente/corte vidro da frente box { <0,0,0>,<0.6,0.5,-2.2> rotate <0,0,-45> translate <-29.5,1.2,-3.4> texture { pigment { color rgb Yellow } } } //box //traseira box { <-31.2,0.8,-3.4>,<-32.1,1.3,-5.6> texture { pigment { color Yellow } } } //box //corte traseira/porta malas box { <0,0,0>,<-0.6,0.5,-2.2> rotate <0,0,30> translate <-31.5,0.8,-3.4> texture { pigment { color Yellow } } } //box cylinder { <-29,0.15,-3.4>,<-29,0.2,-5.6>,0.3 texture { pigment { color Yellow } } } //cylinder cylinder { <-31,0.15,-3.4>,<-31,0.2,-5.6>,0.3 texture { pigment { color Yellow } } } //cylinder }//differende } //union #declare onibusbranco = union { difference { //estrutura principal box { <0,0,0>,<10,2.54,2.2> pigment { color White } translate <0,0.46,0> }//box //--------------------------------- //cabine motorista box { <0,0,0>,<3,1,1.8> translate <7.2,1.7,0.2> pigment {color Black } } //janelas #declare j = 0.5; #while ( j < 8.1) box { ,< j + 0.5,2.5,2.3> pigment {color Black } } #declare j = j + 0.6; #end //corte traseira inferior o onibus box { <0,0,0>,<0.4,1.5,2.3> rotate 78*z translate <0.7,0.15,-0.05> pigment {color White } } //corte lateral superior do onibus box { <0,0,0>,<11,0.5,0.4> rotate -45*x translate <-0.1,2.7,2.2> pigment {color White } } box { <0,0,0>,<11,0.5,0.4> rotate 45*x translate <-0.1,2.95,-0.3> pigment {color White } } //--------------------------------------- //corte dos lados box { <0,0,0>,<11,3,0.4> rotate 3*x translate <-0.1,0.8,-0.4> pigment {color White } } box { <0,0,0>,<11,3,0.4> rotate -3*x translate <-0.1,0.8,2.2> pigment {color White } } //-------------------------------------- box { <0,0,0>,<0.5,2,2.3> rotate 8*z translate <10,1.4,-0.05> pigment {color White } } box { <0,0,0>,<0.5,1.5,2.3> rotate -10*z translate <9.85,0,-0.05> pigment {color White } } //buracos para rodas cylinder { <2,0.55,-0.1>,<2,0.55,2.3>,0.55 pigment {color Black } }//cylinder cylinder { <3.1,0.55,-0.1>,<3.1,0.55,2.3>,0.55 pigment {color Black } }//cylinder cylinder { <8,0.55,-0.1>,<8,0.55,2.3>,0.55 pigment {color Black } }//cylinder //------------------------------------------------- //buraco para farois sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,0.4> pigment {color Black } } //sphere sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,1.8> pigment {color Black } } //sphere //------------------------------------------------- }//difference //adicionado a parte principal //rodas cylinder { <2,0.55,0>,<2,0.55,2.2>,0.45 pigment { color Silver } }//cylinder cylinder { <3.1,0.55,-0.1>,<3.1,0.55,2.3>,0.45 pigment {color Silver } }//cylinder cylinder { <8,0.55,-0.1>,<8,0.55,2.3>,0.45 pigment {color Silver } }//cylinder //------------------------------------------------- //cabine motorista box { <0,0,0>,<1.6,1,1.8> translate <8.2,1.7,0.2> pigment {color rgb <0.4,0.4,0.8> } } //------------------------------------------------- //Letreiro Disciplina text { ttf "timrom.ttf" "MC 930" 0.15, 0 pigment { color Red } translate <4,1,-0.3> } text { ttf "timrom.ttf" "MC 930" 0.15, 0 pigment { color Red } finish { reflection .25 specular 1 } rotate 180*y translate <7.23,1,2.2> } //------------------------------------------------- //farois da frente sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,0.4> pigment {color Blue } } //sphere sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,1.8> pigment {color Blue } } //sphere //------------------------------------------------- }//union #declare onibus = union { difference { //estrutura principal box { <0,0,0>,<10,2.54,2.2> pigment { color Yellow } translate <0,0.46,0> }//box //--------------------------------- //cabine motorista box { <0,0,0>,<3,1,1.8> translate <7.2,1.7,0.2> pigment {color Yellow } } //janelas #declare j = 0.5; #while ( j < 8.1) box { ,< j + 0.5,2.5,2.3> pigment {color Black } } #declare j = j + 0.6; #end //corte traseira inferior o onibus box { <0,0,0>,<0.4,1.5,2.3> rotate 78*z translate <0.7,0.15,-0.05> pigment {color Yellow } } //corte lateral superior do onibus box { <0,0,0>,<11,0.5,0.4> rotate -45*x translate <-0.1,2.7,2.2> pigment {color Yellow } } box { <0,0,0>,<11,0.5,0.4> rotate 45*x translate <-0.1,2.95,-0.3> pigment {color Yellow } } //--------------------------------------- //corte dos lados box { <0,0,0>,<11,3,0.4> rotate 3*x translate <-0.1,0.8,-0.4> pigment {color Yellow } } box { <0,0,0>,<11,3,0.4> rotate -3*x translate <-0.1,0.8,2.2> pigment {color Yellow } } //-------------------------------------- box { <0,0,0>,<0.5,2,2.3> rotate 8*z translate <10,1.4,-0.05> pigment {color Yellow } } box { <0,0,0>,<0.5,1.5,2.3> rotate -10*z translate <9.85,0,-0.05> pigment {color Yellow } } //buracos para rodas cylinder { <2,0.55,-0.1>,<2,0.55,2.3>,0.55 pigment {color Black } }//cylinder cylinder { <3.1,0.55,-0.1>,<3.1,0.55,2.3>,0.55 pigment {color Black } }//cylinder cylinder { <8,0.55,-0.1>,<8,0.55,2.3>,0.55 pigment {color Black } }//cylinder //------------------------------------------------- //buraco para farois sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,0.4> pigment {color Black } } //sphere sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,1.8> pigment {color Black } } //sphere //------------------------------------------------- }//difference //adicionado a parte principal //rodas cylinder { <2,0.55,0>,<2,0.55,2.2>,0.45 pigment { color Silver } }//cylinder cylinder { <3.1,0.55,-0.1>,<3.1,0.55,2.3>,0.45 pigment {color Silver } }//cylinder cylinder { <8,0.55,-0.1>,<8,0.55,2.3>,0.45 pigment {color Silver } }//cylinder //------------------------------------------------- //cabine motorista box { <0,0,0>,<1.6,1,1.8> translate <8.2,1.7,0.2> pigment {color rgb <0.4,0.4,0.8> } } //------------------------------------------------- //Letreiro Disciplina text { ttf "timrom.ttf" "MC 930" 0.15, 0 pigment { color Red } translate <4,1,0> } text { ttf "timrom.ttf" "MC 930" 0.15, 0 pigment { color Red } rotate 180*y translate <7.23,1,2.2> } //------------------------------------------------- //farois da frente sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,0.4> pigment {color White } } //sphere sphere { <0,0,0>,0.2 scale <1,1,1.5> translate <9.85,0.8,1.8> pigment {color White } } //sphere //------------------------------------------------- }//union #declare carro = union { //-------------------------------------------- //rodas cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,1.8> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,1.8> texture { pigment { color White } } } //cylinder //-------------------------------------------- difference { //estrutura do carro/lataria box { <0,0,0>,<4,1.2,2> translate <0,0.2,0> texture { pigment { color Red } } } //-------------------------------------------- //cortes laterais box { <0,0,0>,<4.2,1.2,0.3> rotate 10*x translate <-0.1,0.7,-0.3> texture { pigment { color Red } } } box { <0,0,0>,<4.2,1.2,0.3> rotate -10*x translate <-0.1,0.7,2> texture { pigment { color Red } } } box { <0,0,0>,<4.2,0.5,0.3> rotate 45*x translate <-0.1,1.4,-0.1> texture { pigment { color Red } } } box { <0,0,0>,<4.2,0.7,0.7> rotate -45*x translate <-0.1,1.2,1.9> texture { pigment { color Red } } } //-------------------------------------------- //corte traseira box { <0,0,0>,<0.7,0.7,2.2> translate <-0.1,0.8,-0.1> texture { pigment { color Red } } } //-------------------------------------------- //traseira/corte superior box { <0,0,0>,<1.1,0.7,2.2> rotate 45*z translate <0.6,0.8,-0.1> texture { pigment { color Red } } } //box //frente/corte vidro da frente box { <0,0,0>,<1,0.8,2.2> rotate -45*z translate <2.5,1.5,-0.1> texture { pigment { color rgb Red } } } //box box {<0,0,0>,<4,0.4,1.6> translate <0,0.8,0.2> pigment { color Red } } //----------------------------------------- //frente box { <0,0,0>,<0.9,0.7,2.2> translate <3.2,0.8,-0.1> texture { pigment { color Red } } } //box //----------------------------------------- //corte frente / motor box { <0,0,0>,<1,0.5,2.2> rotate -20*z translate <3.5,0.8,-0.1> texture { pigment { color Red } } } //box //------------------------------------------ //janelas da frente box {<0,0,0>,<0.7,0.4,2.2> translate <1.3,0.8,-0.1> pigment { color Red } } difference { box {<0,0,0>,<0.7,0.4,2.2> translate <2.2,0.8,-0.1> pigment { color Red } } box { <0,0,0>,<0.7,0.4,2.2> rotate -45*z translate <2.5,1.32,-0.1> pigment { color Red } } } //difference das janelas //------------------------------------------ //buraco para rodas cylinder { <0,0,0>,<0,0,2.2>,0.3 translate <1,0.25,-0.1> texture { pigment { color Red } } } //cylinder cylinder {<0,0,0>,<0,0,2.2>,0.3 translate <3,0.25,-0.1> texture { pigment { color Red } } } //cylinder //------------------------------------------- }//difference } //union #declare azul = union { //-------------------------------------------- //rodas cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,1.8> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,1.8> texture { pigment { color White } } } //cylinder //-------------------------------------------- difference { //estrutura do carro/lataria box { <0,0,0>,<4,1.2,2> translate <0,0.2,0> texture { pigment { color rgb <0.4,0.4,0.9> } } } //-------------------------------------------- //cortes laterais box { <0,0,0>,<4.2,1.2,0.3> rotate 10*x translate <-0.1,0.7,-0.3> texture { pigment { color rgb <0.4,0.4,0.9> } } } box { <0,0,0>,<4.2,1.2,0.3> rotate -10*x translate <-0.1,0.7,2> texture { pigment { color rgb <0.4,0.4,0.9> } } } box { <0,0,0>,<4.2,0.5,0.3> rotate 45*x translate <-0.1,1.4,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } box { <0,0,0>,<4.2,0.7,0.7> rotate -45*x translate <-0.1,1.2,1.9> texture { pigment { color rgb <0.4,0.4,0.9> } } } //-------------------------------------------- //corte traseira box { <0,0,0>,<0.7,0.7,2.2> translate <-0.1,0.8,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //-------------------------------------------- //traseira/corte superior box { <0,0,0>,<1.1,0.7,2.2> rotate 45*z translate <0.6,0.8,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //box //frente/corte vidro da frente box { <0,0,0>,<1,0.8,2.2> rotate -45*z translate <2.5,1.5,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //box box {<0,0,0>,<4,0.4,1.6> translate <0,0.8,0.2> pigment { color rgb <0.4,0.4,0.9> } } //----------------------------------------- //frente box { <0,0,0>,<0.9,0.7,2.2> translate <3.2,0.8,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //box //----------------------------------------- //corte frente / motor box { <0,0,0>,<1,0.5,2.2> rotate -20*z translate <3.5,0.8,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //box //------------------------------------------ //janelas da frente box {<0,0,0>,<0.7,0.4,2.2> translate <1.3,0.8,-0.1> pigment { color rgb <0.4,0.4,0.9> } } difference { box {<0,0,0>,<0.7,0.4,2.2> translate <2.2,0.8,-0.1> pigment { color rgb <0.4,0.4,0.9> } } box { <0,0,0>,<0.7,0.4,2.2> rotate -45*z translate <2.5,1.32,-0.1> pigment { color rgb <0.4,0.4,0.9> } } } //difference das janelas //------------------------------------------ //buraco para rodas cylinder { <0,0,0>,<0,0,2.2>,0.3 translate <1,0.25,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //cylinder cylinder {<0,0,0>,<0,0,2.2>,0.3 translate <3,0.25,-0.1> texture { pigment { color rgb <0.4,0.4,0.9> } } } //cylinder //------------------------------------------- }//difference } //union #declare taxi = union { //-------------------------------------------- //rodas cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,1.8> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <1,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,0> texture { pigment { color White } } } //cylinder cylinder { <0,0,0>,<0,0,0.2>,0.25 translate <3,0.25,1.8> texture { pigment { color White } } } //cylinder //-------------------------------------------- difference { //estrutura do carro/lataria box { <0,0,0>,<4,1.2,2> translate <0,0.2,0> texture { pigment { color White } } } //-------------------------------------------- //cortes laterais box { <0,0,0>,<4.2,1.2,0.3> rotate 10*x translate <-0.1,0.7,-0.3> texture { pigment { color White } } } box { <0,0,0>,<4.2,1.2,0.3> rotate -10*x translate <-0.1,0.7,2> texture { pigment { color White } } } box { <0,0,0>,<4.2,0.5,0.3> rotate 45*x translate <-0.1,1.4,-0.1> texture { pigment { color White } } } box { <0,0,0>,<4.2,0.7,0.7> rotate -45*x translate <-0.1,1.2,1.9> texture { pigment { color White } } } //-------------------------------------------- //corte traseira box { <0,0,0>,<0.7,0.7,2.2> translate <-0.1,0.8,-0.1> texture { pigment { color White } } } //-------------------------------------------- //traseira/corte superior box { <0,0,0>,<1.1,0.7,2.2> rotate 45*z translate <0.6,0.8,-0.1> texture { pigment { color White } } } //box //frente/corte vidro da frente box { <0,0,0>,<1,0.8,2.2> rotate -45*z translate <2.5,1.5,-0.1> texture { pigment { color rgb White } } } //box box {<0,0,0>,<4,0.4,1.6> translate <0,0.8,0.2> pigment { color White } } //----------------------------------------- //frente box { <0,0,0>,<0.9,0.7,2.2> translate <3.2,0.8,-0.1> texture { pigment { color White } } } //box //----------------------------------------- //corte frente / motor box { <0,0,0>,<1,0.5,2.2> rotate -20*z translate <3.5,0.8,-0.1> texture { pigment { color White } } } //box //------------------------------------------ //janelas da frente box {<0,0,0>,<0.7,0.4,2.2> translate <1.3,0.8,-0.1> pigment { color White } } difference { box {<0,0,0>,<0.7,0.4,2.2> translate <2.2,0.8,-0.1> pigment { color White } } box { <0,0,0>,<0.7,0.4,2.2> rotate -45*z translate <2.5,1.32,-0.1> pigment { color White } } } //difference das janelas //------------------------------------------ //buraco para rodas cylinder { <0,0,0>,<0,0,2.2>,0.3 translate <1,0.25,-0.1> texture { pigment { color White } } } //cylinder cylinder {<0,0,0>,<0,0,2.2>,0.3 translate <3,0.25,-0.1> texture { pigment { color White } } } //cylinder //------------------------------------------- }//difference } //union object { onibus rotate 90*y rotate <-1,-15,-2> translate <76,0.8,37> } object { azul rotate 180*y rotate <0,0,-3> translate <60,1.9,63> } object { carro rotate 180*y rotate <0,0,-3> translate <55,2.2,67> } object { taxi rotate 180*y rotate <0,0,-3> translate <50,2.4,63> } object { azul rotate 180*y rotate <0,0,-3> translate <45,2.7,66> } object { taxi rotate 180*y translate <10,3.2,66> } object { carro rotate 180*y translate <4.5,3.2,63> } object { carro rotate 180*y translate <26,3.2,66> } object { azul rotate 180*y translate <20,3.2,63> } object { carro rotate 180*y translate <-30,3.2,66> } object { azul rotate 180*y translate <-22,3.2,66> } object { carro rotate 180*y translate <-16,3.2,66> } object { taxi rotate 180*y translate <-18,3.2,63> } object { taxi rotate 180*y translate <-13.5,3.2,63> } object { taxi rotate 180*y translate <-9,3.2,63> } object { taxi rotate 180*y translate <-4.5,3.2,63> } object { taxi rotate 180*y translate <0,3.2,63> } object { azul rotate 180*y translate <-5.2,3.2,66> } object { taxi rotate 90*y rotate <-1,-15,-2> translate <74,0.7,25> } object { carro rotate 82*y rotate <-1,-15,-2> translate <63,1.3,55> } object { azul rotate 85*y rotate <-1,-15,-2> translate <69,1,45> } object { taxi rotate 82*y rotate <-1,-15,-2> translate <65,1,45> } object { carro rotate 90*y rotate <-1,-15,-2> translate <72,0.7,35> } object { taxi rotate 90*y translate <78,0,-15> } object { azul rotate 135*y translate <-25,0.2,6> } object { carro rotate 135*y translate <-25,0.2,10> } object { taxi rotate 135*y translate <-25,0.2,14> } object { azul rotate 135*y translate <-25,0.2,18> } object { carro rotate 180*y translate <-18,0.2,6> } object { taxi rotate 180*y translate <-18,0.2,9> } object { azul rotate 180*y translate <-18,0.2,12> } object { azul rotate 180*y translate <-18,0.2,15> } object { carro rotate 180*y translate <-18,0.2,18> } object { taxi rotate 180*y translate <-18,0.2,21> } object { azul rotate 180*y translate <-18,0.2,24> } object { taxi rotate 180*y translate <-18,0.2,27> } object { taxi rotate 135*y translate <-25,0.2,22> } object { carro rotate 135*y translate <-25,0.2,26> } object { azul rotate 45*y translate <-32,0.2,22> } object { taxi rotate 45*y translate <-32,0.2,26> } object { carro rotate 45*y translate <-32,0.2,18> } object { carro rotate 45*y translate <-32,0.2,14> } object { taxi rotate 45*y translate <-32,0.2,10> } object { carro rotate 45*y translate <-32,0.2,6> } object { azul translate <-60,0,-5.2> } object { carro translate <-66,0,-5.2> } object { carro rotate 90*y translate <-36,0.2,1.1> } object { carro rotate 90*y translate <-45,0,2> } object { onibus rotate 90*y translate <81,0,-15> } object { onibus rotate 90*y translate <77,0,14> } object { onibusbranco rotate 90*y translate <73,0,0> } object { onibus translate <-5,0,-12> } object { onibusbranco translate <25,0,-12> } object { onibus translate <55,0,-10> } object { onibus rotate 180*y translate <65,0,23> } object { onibusbranco rotate 180*y translate <54,0,33> } object { onibusbranco translate <-65,0,-10> } /// object { onibus translate <-80,0,-12> } object { onibusbranco rotate 180*y translate <58,0,52> } object { onibus rotate 192*y translate <58,0,43> } object { onibus rotate 180*y rotate <-2.9,0,-5> translate <-26,1.2,46> } object { onibus rotate 90*y rotate <-2.9,0,0> translate <-46,1.6,32> } object { onibusbranco rotate 90*y rotate <-2.9,0,0> translate <-44,1,18> } object { onibusbranco rotate 180*y rotate <-2.9,0,-5> translate <-30,2,55.5> } object { onibusbranco rotate 180*y rotate <-2.9,0,-5> translate <-30,1.2,38.5> } object { carroandrade translate <72,0.1,-6> } object { carroandrade2 translate <40,0.1,-7> } object { carroandrade3 translate <-6,0.1,-7> } object { carroandrade3 translate <0,3.3,66> } object { carroandrade translate <92,0.1,0> } object { carroandrade2 translate <32,0.1,0> } object { carroandrade translate <18,0.1,-3.2> } object { carroandrade2 translate <2,0.1,-7> } object { carroandrade3 translate <62,0.1,0> } object { carroandrade3 translate <45,0.1,-3.2> } object { carroandrade2 translate <77,0.1,-3.2> } object { carroandrade translate <51,0.1,-3.2> } object { estacionamento } object { estacionamento2 } object { lojaesquina } object { telhado } object { predio } object { caixadeagua } object { ruasaida } object { ruadecima } object { andradeneves } object { itapura } object { calcada }