// MC930 - Computacao Grafica // Quarto exercicio de laboratorio - 26/10/2000 // Luis Arthur Micai Nunes RA: 971106 background { color rgb < 0.00, 0.00, 0.00 > } light_source { <0, 3.00, -3.00 > color rgb <1.00, 1.00, 1.00> } camera { location < 3.00, -2.00, -8.00 > look_at < 3.00, 0.00, 0.00 > } #declare titulo = text { ttf "arial.ttf" "LUX" 1.0 0.0 texture { pigment {color rgb <0,0,1> } } scale <1.2,1.2,1.2> } #declare logo = sphere { <0,0,0> 0.2 texture { pigment { color rgb <0,0,1> } } translate <0.8,0.9,0> scale <1.2,1.2,1.2> } #declare recorte = cylinder { <-0.05, 0, 0>, <0.05, 0, 0>, 0.3 translate <0.8, 0.9, 0> scale <1.2,1.2,1.2> texture { pigment { color rgb < 0.00, 0.00, 1.00 > } } } #declare figura = union { difference{ object {logo} object {recorte} } object {titulo} } #declare freq = mod(clock*4,1) #declare altura = ( freq<0.5 ? 10*freq : 10*(1-freq) ) object {figura translate <10*clock, 0, freq> }