global_settings { assumed_gamma 1 } #default { pigment{ rgb 1 } } background { rgb 1 } light_source { <1000,1000,-1000> rgb 1 } #include "carpet.inc" //Usage: //Carpet(Base_Object, level of recursion) //Carpet2(Base_Object, level of recursion, use_color) #declare wall= object { //Carpet(lvl2, 1) Carpet2(lvl2,1,true) scale 9 } object { wall } object { wall translate y*3} object { wall translate y*6} object { wall translate y*9} object { wall rotate z*90} object { wall rotate z*90 translate x*3} object { wall rotate z*90 translate x*6} object { wall rotate z*90 translate x*9} object { wall rotate y*90 rotate x*90} object { wall rotate y*90 rotate x*90 translate z*3} object { wall rotate y*90 rotate x*90 translate z*6} object { wall rotate y*90 rotate x*90 translate z*9} #declare c1 = camera {location 12 look_at 9/2} #declare c2 = camera {location <4.5,4.5,-10> direction z} #declare c3 = camera {location <1.5,3.2,3.2> angle 90 look_at <4.5,4.5,6> } #declare c4 = camera {location <3,6.01,-0.25> look_at 4.5 } camera { c1 }