// MC930 - Trabalho final parte 1 // Last edited on 2000-12-14 12:20:40 by Alencar N. S. Junior // MONUMENTO #include "textures.inc" #include "colors.inc" #include "stones.inc" #include "golds.inc" #include "stones1.inc" #include "stones2.inc" #declare centro_do_monumento = < 0, 0, 1 >; #declare monumento = box{ <0.5,-0.5,0> <-0.5,0.5,1> texture{ T_Stone1 // finish{ diffuse 0.05 ambient 0.05 reflection 0.90 } } } // PAVIMENTO #declare pavimento = plane{ z, -1 texture{ brick texture{T_Gold_1A}, texture{T_Stone4} // 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 { SkyBlue } // EIXOS #declare eixos_cartesianos = union { cylinder { <0,0,0>, <1,0,0>, 0.02 pigment { color rgb <1,0,0> } } cylinder { <0,0,0>, <0,1,0>, 0.02 pigment { color rgb <0,1,0> } } cylinder { <0,0,0>, <0,0,1>, 0.02 pigment { color rgb <0,0,1> } } } object { eixos_cartesianos } object { pavimento } object { monumento } // CÂMARA #declare centro_da_cena = centro_do_monumento; #declare raio_da_cena = 1.0; #declare direcao_da_camera = vnormalize( < 3, 2, 0.5 > ); #declare dist_da_camera = 6.0 * raio_da_cena #declare pos_da_camera = centro_da_cena + dist_da_camera * direcao_da_camera; camera { location 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 > }