// Exercicio 8 de laboratorio - 23/11/2000 // Marilia Goulart Honorio - 971259 #include "colors.inc" background { Black } camera { // location < 40.00, 16.00, 8.00 > // location < 66.00, 18.00, 15.00 > location < 60.00, 22.00, 20.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > // look_at < 2.00, 2.00, 8.00 > look_at < 4.00, 16.00, 4.00 > } #declare plano = plane { z, -8 pigment { color Green } finish { diffuse 1 ambient 0 } } #declare posicao = <8,8,20>; #declare alvo = <8,8,-8>; #declare distancia = vlength(posicao - alvo); #declare abertura = degrees(15/distancia); light_source { posicao color rgb <0.8,1,0.8> spotlight point_at alvo radius 0.8*abertura falloff 1.2*abertura fade_distance distancia fade_power 2 } fog { distance 150 color rgbt<0.3, 0.5, 0.2, 0.2> } #declare espessura = 14; #declare amarelado = color rgb (.75/espessura)*<1,1,0>; #declare corpoGalinha = blob { threshold 0.5 sphere { <8,8,0>, 16, 1 } sphere { <8,8,11>,6, 1 } } #declare olho = sphere { <9.5,6.75,12>, .3 hollow pigment { color Black } } #declare bicoEcrista = union { object { cone { <8,8,9.5> 1 <11,8,9.5> .1 pigment { color Red } } no_shadow } object { cone { <8,8,14> .5 <8,8,15> .1 pigment { color Red } } no_shadow } object { olho no_shadow } object { olho translate <0,3,0> no_shadow } } light_source { <10,20,25> color White spotlight point_at <-10,40,15> radius 0.8*abertura falloff 1.2*abertura fade_distance distancia fade_power 2 } #declare ic = box { <-20, 60, -8> <-10, 20, 20> texture { pigment { White } } no_shadow } #declare placa = text { ttf "arial.ttf" "IC-3" 1, 0.0 pigment { Blue } finish { reflection .25 specular 1 } } #declare porta = box { <-10,45,-8> <-10,35,4> texture { pigment { Black } } no_shadow } //////////////////////////////////////////////////////////////////// object { plano } object { corpoGalinha hollow pigment { color rgbt <1,1,1,1> } interior { media { emission color amarelado } } //interior { media { scattering {1, color amarelado } } } } object { bicoEcrista hollow pigment { color rgbt <1,1,1,1> } interior { media { emission color Red } } //interior { media { scattering {1, color amarelado } } } } object { ic } object { porta } object { placa scale <6,6,6> rotate <0,0,90> rotate <0,90,0> translate <-10,32,15> no_shadow }