// Paulo Marivo 963044 // Last edited on 2000-09-21 20:06:05 by stolfi #include "colors.inc" #include "textures.inc" #include "shapes.inc" background{ color rgb < 0.22, 0.20, 0.82 > } light_source { < 129.00, 37.00, -40.00 > color rgb < 1.20, 1.20, 1.20 > } camera { location < 60.00, 10.00, -30.00 > look_at < 30.00, 10.00, 0.00 > } //plano que servira de base plane { y, 0 texture { pigment { checker color rgb <0.1, 0.85, 0.3> color rgb <0.2, 0.9, 0.2> } } } //plano que da a impressao do ceu plane { y, 500 texture { pigment { color rgb <0.22, 0.3, 0.82> } finish { ambient 1 diffuse 0} } texture { pigment { bozo turbulence .5 color_map { [0 color rgb <1, 1, 1>] [1 color rgb <1, 1, 1> filter 1] } } finish { ambient 1 diffuse 0 } scale <1000, 250, 250> rotate <5, 45, 0> } } //background{ Gray} //light_source { // <30.00, 30.00, 30.00 >White // } //camera { // location < 0, 30.00, 30.00 > // sky < 0,0,1> // look_at < 0, 0 ,0> // //angle 30 //} //#declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 2.00 texture { tinta_A } } #declare espessura= 2; #declare amarelado=color rgb (1.0/espessura)*<1,1,0>; //object{ sphere {<-1,0,0>,4} // hollow //pigment { color rgbt <1,1,1,1>} //interior{ // media{emission color amarelado} //} / //} //object{ sphere {<4.5,0,0>,4} // hollow //pigment { color rgbt <1,1,1,1>} //interior{ // media{emission color amarelado} //} //} //object{ sphere {<2.00,0,3.5>,3} // hollow //pigment { color rgbt <1,1,1,1>} //interior{ // media{emission color amarelado} //} //} //object{ box {<0,0,0>,<-1.5,1,-18>} // hollow //pigment { color rgbt <1,1,1,1>} //interior{ // media{emission color amarelado} //} //} //object{ box {<4,0,0>,<5.5,1,-18>} // hollow //pigment { color rgbt <1,1,1,1>} //interior{ // media{emission color amarelado} //} //} //object{sphere{<0.8,5,8.8>,0.3}texture{tinta_A}} //object{sphere{<1.8,5,8.8>,0.3}texture{tinta_A}} // O trabalho final comeca aqui #declare pavimento = plane{ z, -1 texture{ pigment{ Green} finish{ diffuse 0.9 ambient 0.05 specular 0.3 roughness 0.1 } } } //#declare chao = // box {<-20,20,0>,<20,-100,0,1> //texture{ //pigment { Green}} //} // Finalmente o projeto: //object{pavimento} //# declare espessura =2; # declare amarelado = color rgb(1.0/espessura)*<1,1,0>; //object { sphere {<1,3,3>,5} // hollow // pigment{color rgbt <4,4,4,2>} // interior{ // media{scattering{1,color amarelado}} //} //} #declare blocoprincipal = box { <0,5,0> ,<-40,25,80> color(Gray) finish { ambient .3 diffuse .1 reflection .3 specular 1 roughness .001 irid { 0.35 thickness .5 turbulence .5 } } } #declare blocosecundario = box { <-5,0,25> ,<10,15,55> pigment{color rgbt <0.9,0.3,0.1>} } #declare portasecundario1 = box { <10,0,38> ,<11,6,39> color(Gray) } #declare portasecundario2 = box { <10,0,34> ,<11,6,36> color(Gray) } #declare portasecundario3 = box { <10,0,41> ,<11,6,43> color(Gray) } #declare coluna1 = box { <0,0,0> ,<-5,5,5> pigment{color rgbt <1.0,0.3,0.1>} } #declare coluna2 = box { <-40,0,0> ,<-45,5,5> pigment{color rgbt <1.0,0.3,0.1>} } #declare coluna3 = box { <0,0,80> ,<-5,5,85> pigment{color rgbt <1.0,0.3,0.1>} } #declare coluna4 = box { <-40,0,80> ,<-45,5,85> pigment{color rgbt <1.0,0.3,0.1>} } // Aqui está a cena, finalmente: #declare modulo=union{ object { blocoprincipal } object { blocosecundario } object { portasecundario1 } object { portasecundario2 } object { portasecundario3 } object{coluna1} object{coluna2} object{coluna3} object{coluna4} } object{modulo} object{ modulo translate <0,0,85>} //object{sphere{<0,0,0>,10}texture{tinta_A}} //object{sphere{<40,0,0>,10}texture{tinta_A}}