Difference between revisions of "Distributed Rendering"

From BRL-CAD
(How to do Distributed Rendering)
 
m (Distributed Rendering)
Line 31: Line 31:
  
 
----
 
----
 
+
==Advanced Commands==
 
''HOWEVER'', this all is pie-in-the-sky simplicity and in reality much more work has to been done in order for proper distributed rendering to occur.
 
''HOWEVER'', this all is pie-in-the-sky simplicity and in reality much more work has to been done in order for proper distributed rendering to occur.
  

Revision as of 15:13, 9 June 2009

Distributed Rendering

In order to create a distributed render across many machines using BRL-CAD, one first needs a 'host' that will serve as the rally point to where all rendering machines will go to get information needed for the render.

Typically the host machine would have all the information needed in order to carry out the distributed render however, that currently doesn't work right now.

For the moment, all machines must have a copy of the information needed for a render to be completed. So for example:

'Server' is the host machine in which all computers will report to in order to get their jobs, and return their jobs to. 'comp1' and 'comp2' are machines that will connect to 'Server' in order to carry out the rendering job.

So in order for the whole process to get started, one would have to access 'Server' and run the remrt command.

For Example:

$ remrt -s100 Picture.g objects.c

or: remrt (- options) (.g file) (.c objects in .g file)

would start a server that is going to render a 100 x 100 picture using geometry from Picture.g with objects.c loaded.

Then for comp1 and comp2 you would run:

$ rtsrv Server 4446

or: rtsrv (server's name) (listening port, which defaults to 4446)

to connect to Server, and begin the rendering job. 'Server' will assign work to 'comp1' and 'comp2' and they will start rendering their lines for the picture. Typically the workload is that each connected computer will render a single line of the picture, so comp1 will render the first line, and comp 2 will render the second, and will continue rendering until all lines are processed.

The final rendered picture is located on 'Server' in the .pix format.


Advanced Commands

HOWEVER, this all is pie-in-the-sky simplicity and in reality much more work has to been done in order for proper distributed rendering to occur.

Currently, remrt needs many extra values given to it in order for it to work correctly. This line is an example of the actual information needed in order for a proper server to be set up:

$ remrt -s4096 -p65 -o Output.pix shape.g object.c 

And important thing to remember is the .remtrc file, which holds information on which rendering computers do what and when.

.remtrc

host computer1 always cd /tmp
host computer2 always cd /geometry
host busyserver night cd /tmp

This shows 3 computers that will be used in the render, computer1 and computer2 will render 'always' in their respective directories where the geometry is, and busyserver will only render at 'night' (6pm - 8am), keeping busyserver from becoming even more busy during normal working hours.