Raytraced Physics

     I started with a 2 Dimensional physics engine and a stripped down povray file of the cornell box. To generate the frame sequence I ran the physics engine at 24 fps and logged the boxes locations and orientations for each frame to a file. After this I used a python script to convert the physics log file into a sequence of povray files (one povray file per and 24 fps). Next, another python script schedules frames from an assigned chunk to be rendered. To make the rendering slightly faster, I split the frames into 4 equal chunks and had the python scheduler work through their assigned chunk. The rendering of the video at the top of the page is rendered at 640 by 480 pixels with 256 monte carlo samples per pixel (only 1 recursion deep for the GI) and does not have anti aliasing. The video took about 20 hours to render.