// MC930 - TRABALHO FINAL // Last edited on 2000-12-14 09:07:40 by mc726 // MONUMENTO #include "colors.inc" #declare centro_do_monumento = < 0, 0, 40 >; #include "textures.inc" #include "stones.inc" #declare raiotopo = 9; #declare raiocaixa1 = 22; #declare raiocaixa2 = 18; #declare raiopraca = 150; #declare topo = union{ prism { linear_sweep linear_spline 9, 10, 9, <9,-4> <9,4> <4,9> <-4,9> <-9,4> <-9,-4> <-4,-9> <4,-9> <9,-4> pigment{color rgb <0.9, 0.3, 0.2>} rotate<90,0,0> } prism { linear_sweep linear_spline 0, 5, 9, <9,-4> <9,4> <4,9> <-4,9> <-9,4> <-9,-4> <-4,-9> <4,-9> <9,-4> texture { pigment { color rgb <0.9, 0.46, 0.40> } //finish { diffuse 0.9 specular 0 ambient 0 } normal { brick scale 0.5 } } //pigment{color rgb <0.9, 0.5, 0.3>} rotate<90,0,0> } prism { linear_sweep linear_spline 5, 8, 9, <9,-4> <9,4> <4,9> <-4,9> <-9,4> <-9,-4> <-4,-9> <4,-9> <9,-4> pigment{color rgb <0.7,0.8,1> transmit 0.75} rotate<90,0,0> } translate<0,0,44> } #declare caixa = union{ cone{ <0,0,0> raiocaixa2 <0,0,20> raiocaixa1 pigment{color rgb <1,1,1>} } cylinder{ <0,0,4.2> <0,0,5> raiocaixa1+2 pigment{color rgb <0.7, 0.8, 1>}} cylinder{ <0,0,9.2> <0,0,10> raiocaixa1+2 pigment{color rgb <0.7, 0.8, 1>}} cylinder{ <0,0,14.2> <0,0,15> raiocaixa1+2 pigment{color rgb <0.7, 0.8, 1>}} translate <0,0,24> } #declare pilastras = union{ cylinder{ <0,0,-2> <0,0,2> 1.3*raiotopo pigment{color rgb <1,1,1>}} box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,45> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,90> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,135> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,180> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,225> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,270> } box { <-2.5,-1, -49> <2.5, 1, 32> pigment{color rgb <1,1,1>} rotate <0,22,0> rotate <0,0,315> } } //textura dos tijolos // PAVIMENTO #declare praca = union { cylinder{<0,0,0> <0,0,1.999> raiopraca texture{ T_Stone5 scale 4} } cylinder{<0,0,0> <0,0,2> raiopraca-35 texture{pigment{color rgb <0.5, 1, 0.3>} normal {bumps 0.43 scale 0.3}} } box { <-(raiopraca-35),-7,0> texture{ T_Stone5 scale 4} } box { <-(raiopraca-35),-7,0> texture{ T_Stone5 scale 4} rotate <0,0,60> } box { <-(raiopraca-35),-7,0> texture{ T_Stone5 scale 4} rotate <0,0,120> } } #declare pavimento = plane{ z, -1 texture{ pigment{ //checker color rgb < 0.80, 0.90, 1.00 > //, //color rgb < 0.20, 0.70, 1.00 > } finish{ diffuse 0.9 ambient 0.05 specular 0.3 roughness 0.1 } } } // FUNDO //background{ color rgb < 0.90, 0.92, 0.95 > } // EIXOS #declare eixos_cartesianos = union { cylinder { <0,0,0> <50,0,0> 1 pigment { color rgb <1,0,0> } } cylinder { <0,0,0> <0,50,0> 1 pigment { color rgb <0,1,0> } } cylinder { <0,0,0> <0,0,50> 1 pigment { color rgb <0,0,1> } } } #declare monumento = //sera a union de varios objhetos... union{ object{topo} object{caixa} object{pilastras} translate <0,0,42> } #declare lua = sphere { <-240, -410, 180 > 15 pigment {color rgb <10,10,10>} normal { dents .75 scale 5 } } //object { pavimento } object { pavimento } object{monumento} object{lua} object{praca} //object{pilastras} object{eixos_cartesianos} // CÂMARA #declare centro_da_cena = centro_do_monumento; #declare raio_da_cena = 44; #declare direcao_da_camera = vnormalize( < 3, 2, 1 > ); #declare dist_da_camera = 6.0 * raio_da_cena #declare pos_da_camera = centro_da_cena + dist_da_camera * direcao_da_camera; camera { location < 240, 240, 20> //pos_da_camera right < -0.64, 0.00, 0.00 > up < 0.00, 0.48, 0.00 > sky z look_at centro_da_cena } // ILUMINAÇÃO #declare direcao_da_luz = vrotate(direcao_da_camera, < 10, 10, 10 >); #declare intens_da_luz = 1.25; light_source { 20 * raio_da_cena * direcao_da_luz color rgb intens_da_luz * < 1, 1, 1 > } sky_sphere { pigment { gradient y color_map { [ 0.5 color CornflowerBlue ] [ 1.0 color MidnightBlue ] } scale 2 translate -1 } }