//the vending machine room //by Kurt Bangert bangert@travelnotes.de #include "colors.inc" #include "finish.inc" global_settings { radiosity { distance_maximum 3}} #declare Chrome_Texture = texture { pigment { rgb <0.658824, 0.658824, 0.658824> } finish { ambient 0.3 diffuse 0.3 reflection 0.4 brilliance 8 specular 0.8 roughness 0.1 } } #declare walltex = texture { pigment {granite turbulence 0.6 color_map {[0.000, 0.154 color rgbf <0.890, 0.690, 0.690, 0.000> color rgbf <0.996, 0.835, 0.737, 0.000>] [0.154, 0.308 color rgbf <0.996, 0.835, 0.737, 0.000> color rgbf <0.745, 0.635, 0.651, 0.004>] [0.308, 0.444 color rgbf <0.745, 0.635, 0.651, 0.004> color rgbf <0.733, 0.596, 0.557, 0.004>] [0.615, 0.803 color rgbf <0.996, 0.835, 0.737, 0.000> color rgbf <0.765, 0.616, 0.659, 0.000>] [0.803, 1.001 color rgbf <0.765, 0.616, 0.659, 0.000> color rgbf <0.890, 0.690, 0.690, 0.000>] }} } #declare T1= texture{ pigment{ crackle color_map{ [0.0, 0.1 color rgb <0.890, 0.690, 0.690> color rgb <0.996, 0.835, 0.737>] [0.308, 0.444 color rgb <0.745, 0.635, 0.651> color rgb <0.733, 0.596, 0.557>] [0.444, 0.615 color rgb <0.733, 0.596, 0.557> color rgb <0.996, 0.835, 0.737>] [0.415, 0.603 color rgb <0.996, 0.835, 0.737> color rgb <0.765, 0.616, 0.659>] [0.603, 1.001 color rgb <0.765, 0.616, 0.659> color rgb <0.890, 0.690, 0.690>] } scale 2} } #declare F_MetalE = finish { ambient 0.1 brilliance 6 diffuse 0.7 metallic specular 0.80 roughness 1/120 reflection 0.8 } camera { location < 3,4.2,-12> look_at < 0,4.0, 0> } light_source { < 4,4,-7> color rgb <1.2,1.2,1.2> // shadows get better if you add the area light statement, but it takes more rendering time area_light x,y 5,5 fade_distance 5 fade_power 2 } light_source { < 5,4,-5> color rgb <0.5,0.5,0.5> area_light x,y 5,5 } #include "br.inc" #include "machine.inc" #include "cuberock.inc" #include "chest.inc" object {br scale <1,0.7,1> translate <0,3,0> texture {walltex}} //floor object {br // 0.2 scale <1,0.21,1> translate -y*2.1 texture {T1 scale .1}} object {vending_machine scale <.014,.014,.014> finish {F_MetalE} translate -.1 } //object {cuberock scale <0.07,0.015,0.1> translate <0,-0.3,0.5> texture {walltex}} object {cuberock scale <0.07,0.019,0.1> translate <0,-0.3,0.5> texture {walltex}} //object {cuberock scale <0.07,0.015,0.1> translate <4,-0.2,0.5> texture {walltex}} object {cuberock scale <0.07,0.011,0.1> translate <3.9,-0.21,0.5> texture {walltex}} object {cuberock scale <0.03,0.035,0.03> translate <6.2,-0.1,7.5> texture {walltex}} object {cuberock scale <0.03,0.03,0.03> rotate y*90 translate <8.2,-0.1,7.5> texture {walltex}} //don't litter sign object {box {<0,0,0>,<2.4,2.0,0.01>} pigment{image_map { gif "litter.gif" interpolate 2 map_type 0 }scale <2.4,2.,2.2> }normal {wrinkles .4 scale 0.3} // 8.1 scale 1.3 rotate <35,10,0> translate <5.7,0.25,7.9>} //exit sign object {box {<0,0,0>,<2.4,2.0,0.05>} pigment{image_map { gif "exit.gif" interpolate 2 map_type 0 }scale <2.4,2.,2.2> }normal {wrinkles .5 scale 0.3} // 274 0.5 scale 1.2 rotate <0,276,0> translate <-9.0,4,0.4>} //chest // 6.8 -.2 object {chest translate <6.9,-.28,2>}