#!/usr/bin/env bash #Author: Brady O'Brien #Date: April 10, 2013 # This helper file calls povray with the correct clock value for that frame and the correct frame image name. # The first arg is the n of the frame, the second argument is the total number of frames #'balls.pov +Oballs$1.png' makes povray render balls.pov to balls.png #'+K$1' Sets the clock to the current frame vlaue #'+A +Q9 +H480 +W640' turns on antialiasing, highest quality, resolution of 640x480 #'> /dev/null 2>&1' makes it so that povray produces no output on the terminal povray balls.pov +Oballs$1.png +K$1 +A +Q9 +H480 +W640 > /dev/null 2>&1 #This prints out which frame has been rendered echo Rendered $1 of $2