#include "colors.inc" #include "textures.inc" global_settings { assumed_gamma 1.0 // *** Radiosity shows up the box surround ... *** // ambient_light 2.0 radiosity { count 500 error_bound 0.2 gray_threshold 0.2 distance_maximum 40 low_error_factor 0.7 nearest_count 9 minimum_reuse 0.01 brightness 3.3 recursion_limit 1 } } // Set a color of the background (sky) background { color red 0.1 green 0.3 blue 0.8 } camera { location <2.0 , 13.0 ,-20.0> direction <0, 0, 1> look_at <0.0 , 5.0 , 0.0> } plane { y, 0 pigment { White } } plane { -z, -5 pigment { White } } // *** This light is in the box that follows. *** // light_source { 0 colour Magenta * 0.5 media_attenuation on looks_like { sphere { 0, 0.1 pigment { Magenta } finish { Luminous } } } translate <3, 11, 0> } box { <-2, -1, -2>, <2, 12, 2> pigment { rgbf 1 } finish { ambient 0 diffuse 0 } interior { media { intervals 10 scattering { 1, Yellow } samples 1, 10 confidence 0.9999 variance 1/1000 density { spherical colour_map { [0 rgb 0] [0.1 rgb 1] } } scale <2, 5, 2> translate <0, 5, 0> } } hollow translate <3, 0, 0> } // *** This light is above the box that follows. *** // light_source { 0 colour Yellow * 0.5 media_attenuation on looks_like { sphere { 0, 0.1 pigment { Yellow } finish { Luminous } } } translate <-3, 11, 0> } box { <-2, -1, -2>, <2, 10, 2> pigment { rgbf 1 } finish { ambient 0 diffuse 0 } interior { media { intervals 10 scattering { 1, Magenta } samples 1, 10 confidence 0.9999 variance 1/1000 density { spherical colour_map { [0 rgb 0] [0.1 rgb 1] } } scale <2, 5, 2> translate <0, 5, 0> } } hollow translate <-3, 0, 0> }