Eric Adints Web site

UNIX - Renderfarm

This section is a tutorial on how to make a render farm.

OK this is a form of the script that i use in order to use my cluster as a render farm. actually i cant show you the script that i use but this is close enough to get you started and you can get it working with a little troubleshooting. There are some assumptions. here and i will list them.

  1. You have created the LW prefs files and they are located in the BHD1TB\render\Prefs directory
  2. you have created a command directory in the BHD1TB:render: directory
  3. you have copied all of you LW directory into the /Volumes/BHD1TB/LightWave [8]
  4. the nodes that this will be running on are sequentially numbered.
  5. you can run passwordless ssh on each node.
  6. each node has these directories properly mounted.
  7. other things that i have forgotten.

this script is called like this

render <start> <stop> <step> <animation>

#!/bin/tcsh
set num=$1
set end = $2
set $step = $3
@ fstart = $num
@ frend = $fstart + $step
set $render = $4
cd "/Volumes/BHD1TB/LightWave [8]/programs/"
while ( $num )

echo '-3 -c"BHD1TB:render:Prefs" -d"BHD1TB:LightWave [8]:Content" "BHD1TB:LightWave [8]:Content:Scenes:'$render '"' $fstart $frend 1 >LWSN${num}\ cmdline
@ fstart = 1 + $frend
@ frend = $fstart + $step
ditto --rsrc LWSN LWSN${4}
ssh cluster${num} open -a /LightWave [8]/programs/LWSN${num}

@ num++
if ($num >$end) then
exit (0)
endif

end

 

About Me | Site Map | | ©2006 Eric Adint