Banner
{ Deutsch | English }

coolstuff/sokoban.txt

//usual stuff #include "colors.inc" camera { location <6,6,-6> look_at <0,0,0> } light_source { < 20, 20, 20> White} light_source { < 20, 20,-20> White} //the white background #declare bg = union { plane { y, -200} plane { z, 200} plane { x, -200} pigment { color White} } //a coordinate system for a better orientation #declare cood = union { //y cylinder { <0,-5,0> <0,5,0> 0.005 pigment { color Blue} } //x cylinder { <-5,0,0> <5,0,0> 0.005 pigment { color Green} } //z cylinder { <0,0,-5> <0,0,5> 0.005 pigment { color Red} } } #declare wood_color = color rgb<1,0.78431372549019607843137254901961,0>; #declare brett = box { <-0.5,-2,-0.1> <0.5,2,0.1> texture {pigment{color wood_color}} } #declare wand = union{ object{brett translate<-1.875,0,0>} object{brett translate<-0.625,0,0>} object{brett translate< 0.625,0,0>} object{brett translate< 1.875,0,0>} object{brett scale<1,1.25,1> rotate <0,0,50> translate<0,0,-0.2>} } object{bg} object{wand translate<0,0,-2.375>} object{wand rotate<0,90,0> translate<-2.375,0,0>} object{wand rotate<0,-90,0> translate<2.375,0,0>} object{wand rotate<0,180,0> translate<0,0,2.375>} object{wand scale<1,1.2,1> rotate<90,0,0> translate<0,2,0>} object{wand scale<1,1.2,1> rotate<-90,0,0> translate<0,-2,0>}