Home

The purpose of the Short Code Contest is to make an interesting scene with a very small chunk of povray code. No post-processing may be done and no other files may be used.

The following was my submission to the Short Code Contest #4


union{plane{y,-2}light_source{<0,2,7>rgb 1}box{8*z-2<-3,3,9>}box
{<2,-2,6><3,3,9>}#local c=-2.6;#while(c<2)union{box{<.2,-1,.1>y
}box{(z-y)*.1x}translate <c,-1.2,3>}#declare c=c+1;#end pigment
{rgb 1.5}finish{ambient 0}normal{bumps scale.02}rotate-39*x}

/* This is more readable:
union{ // put in union so we can modify the whole scene at once
 plane{ y, -2 } // floor
 light_source{ <0,2,7> rgb 1 }
 box{ 8*z-2 <-3,3,9> } // door frame
 box{ <2,-2,6> <3,3,9>} // door frame
 #local c=-2.6;
 #while( c<2 )
  union{ // the bars
   box{ <.2,-1,.1> y }
   box{ (z-y)*.1 x }
   translate <c,-1.2,3>
  }
  #declare c=c+1;
 #end
 pigment{ rgb 1.5 }
 finish{ ambient 0 }
 normal{ bumps scale .02 } // our rough texture
 rotate -39*x // this way we need no camera
}*/
Hosted by www.Geocities.ws

1