//Tiago Saad - 971717 //A noite assombrada #include "colors.inc" #include "textures.inc" #include "metals.inc" background { color red 1 green 1 blue 1} sky_sphere{ pigment{ gradient y color_map{ [0 color rgb<0, 0, .5>] [1 color rgb<0, 0, .1>] } } } camera{ location<10, 0, 5> look_at<0, 5, -2> } //light_source{ // <0, -1, 9> // color Black //} #declare galinha= blob{ threshold .2 sphere{ < 0, 2, 0 >, 1.5, 3 } sphere{ < -3, 0, 0>, 3, 1 } } #declare caixa= box{ < -100, -100, -100> < 100, 100, 100> } #declare abertura= degrees(6/15) light_source{ < 0, 15, 0 > color rgb <.1, .1, .1> spotlight point_at < 0, 0, 0 > radius .8*abertura falloff 1.2*abertura fade_distance 15 fade_power 2 } object{ galinha //translate < 0, 0, -5 > //texture { Blood_Marble } //finish { phong 1 } hollow pigment { color rgbt < 1, 1, 1, 1> } //interior{ media { emission color < .05, .05, 0 > }} interior { media { scattering { 1, color < 0.3, 0.3, 0.3>}}} //scale < 1, .6, 1> } object{ caixa hollow pigment{ color rgbt < 1, 1, 1, 1> } interior { media { emission color < 0, .002, 0> }} } plane{ y, -3 texture { Blood_Marble } } #declare luz= cylinder{ <0, 0, 0> <0, 20, 0> 2 } object{ luz scale < 1, 5, 1> hollow pigment { color rgbt < 1, 1, 1, 1> } interior { media { emission color < .05, 0, 0.01>}} rotate <-60, 0, 0 > translate < 0, -5, 6 > } object{ luz scale < 1, 5, 1> hollow pigment { color rgbt < 1, 1, 1, 1> } interior { media { emission color < .0, 0, 0.05>}} rotate <-45, 0, 0 > translate < 0, -5, 6 > } object{ luz rotate < -30, 0, 0 > translate < 0, -5, 6 > hollow pigment { color rgbt < 1, 1, 1, 1> } interior { media { emission color < 0, .05, 0>}} } #declare disco= sphere{ <0, 0, 0> 8 scale < 1, .1, 1> translate < -8, 20, -10> } object{ disco hollow pigment { color rgbt < 1, 1, 1, .5> } interior { media { scattering { .5, color rgb < 0, 0 , .1 > }}} }