/* tp04 Filipe Ramos de Castro RA032849 */ #include "eixos.inc" #include "camlight.inc" //#include "arial.ttf" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 10.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz) background{ color rgb < 1, 1, 1 > } #declare tx_xadrez = texture{ pigment{ color rgb < 0.90, 0.90, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare pedestal1 = union{ box { <0.5, -0.5, 0>, <-0.5, 0.5, 0.5> pigment { color rgb <0, 1, 1>} } cylinder { <0, 0, 0.5>, <0, 0, 1.5>, 0.25 pigment { color rgb <0, 1, 1>} } text { ttf "arial.ttf" "Texto1" 0.75, 0.0 pigment {color <0, 1, 1>} rotate 90*z rotate 90*y translate <-0.5, -1.5, 1.52> } } #declare pedestal2 = union{ cone { <0, 0, 0>, 0.2, <0, 0, 1.5>, 0.75 pigment {color rgb <0, 1, 0>} } text{ ttf "arial.ttf" "TextoMaior" 0.75, 0.0 pigment { color rgb <0, 1, 0> } rotate 90*z rotate 90*y translate <-0.5, -2.5, 1.52> } } #declare pedestal3 = union{ box { <0.5, -0.5, 0>, <-0.5, 0.5, 0.5> pigment { color rgb <0, 1, 1>} } cone { <0, 0, 0.56>, 0.2, <0, 0, 1.5>, 0.75 pigment {color rgb <0, 1, 1>} } difference{ sphere{ <0, 0, 3.5>, 2 pigment { color rgb <1, 0, 0> } } text{ ttf "arial.ttf" "Esfera" 2.75, 0.0 pigment { color rgb <1, 1, 1> } rotate 90*z rotate 90*y translate <-0.5, -1.5, 3.5> } } } #declare pedestal4 = difference{ box { <1.5, -1.5, 0>, <-1.5, 1.5, 5.5> pigment { color rgb <0, 1, 1>} } text{ ttf "arial.ttf" "ABCDEFG" 6.75, 0.0 pigment { color rgb <1, 1, 1> } rotate 90*z rotate 90*y rotate -90*x translate <-0.5, -0.5, 5.25> } } #declare pilarcentral = text{ ttf "arial.ttf" "MuseuDaLingua" 1.00, 0.0 pigment { color rgb <0.9, 0.9, 0.7> } rotate 90*z rotate 80*y rotate -90*x translate <-3.5, -3.0, 2.25> } union{ object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } //object{ eixos(3.00) } object{ pilarcentral } object{ pedestal1 translate <2, 2, -5.0> } object{ pedestal2 translate <-10, 3, -5> } object{ pedestal3 translate <3, -7, -7.25> scale 0.7 } object{ pedestal4 translate <-10, -10, -5> } }