#include "colors.inc" #include "textures.inc" light_source { <-100,150,0> color rgb <1,.5,.5> } light_source { <0,150,-100> color rgb <.5,.5,1> } camera { location <-10, 8, -10> angle 50 look_at <.01, -2, .01> } /* --------------- SPHERES -------------- */ sphere {0, 2 texture { pigment { color rgbt <.8, .8, 1 , .8>} finish {reflection .9 phong .9 caustics .5} } } #declare RAD = .9 #declare b1 = union { sphere {y*3, RAD } sphere {y*-3, RAD } sphere {x*3, RAD } sphere {x*-3, RAD } texture { pigment { color rgbt <.8, .8, 1 , .8>} finish {reflection .9 phong .9 caustics .5 } } } #declare ROT = clock*90 object {b1 rotate -z*ROT} object {b1 rotate x*90 rotate <0, 45+ROT, 0> } /* --------------- MAZE -------------- */ #declare my_hf = height_field { gif "maze2.gif" rotate <-90, 0, 0> texture { pigment { image_map { gif "maze2.gif" interpolate 2 } } finish {reflection .3} } rotate <90, 0, 0> } #declare my_hfary = union { object { my_hf } object { my_hf translate <1, 0, 0> } object { my_hf translate <0, 0, 1> } object { my_hf translate <1, 0, 1> } translate <-.5, -.01, -.5> } object {my_hf translate <-.5, -.01, -.5> rotate -y*360*clock translate <.35, 0, -.10> scale <120, 1000, 120> }