Distributed render
Purpose
To control the rendering operation.
How to Use
Select Distributed render from the Render menu. The Distributed Render Control window is displayed.
Distributed Render Control window
An interactive render control window has been added that lets you distribute the rendering of an animation across a network of machines. Animations can be broken up into sub-sequences and rendered on a group of specified machines using a number of frame distribution strategies.
The render control window keeps track of the progress of all renders during this operation and is robust enough to handle machine failures and job priorities. The Distributed Render Control window can be exited and restarted at any time without losing track of running rendering jobs.
See Network Requirements and File Ownership for more information.
Rendering Control Parameters
The Rendering Control window can be very large when all parameters are displayed, therefore an illustration of all available parameters is not included here. An illustration of each parameter window is provided as each is described.
How to Use the Distributed Render Control window
The Distributed Rendering Control window is a standalone application. It requires a control location directory, in which the Distributed Rendering Control window's control files reside. This directory can be created anywhere in the file system, although it is likely you'll want to place it somewhere in a user's home directory tree and is accessible from any machine on which you want to render.
The Distributed Rendering Control executable rndctl takes a single command line option, -l (lowercase L) and an existing pathname for the control location directory, to indicate where the Distributed Rendering Control application can create or locate its control files:
rndctl -l control_location_path
If the control_location_path is not specified, the system displays a confirm box that requests where the path will appear. The path should be writable by all users of the application. The files the Distributed Rendering Control application creates are group-writable.
The Distributed Rendering Control application spawns daemon programs on all the machines used by a job when the job is activated; that is, its state is changed to pending. Jobs are activated by selecting one of the rendering options in the Render menu of the Distributed Rendering Control window.
Note: Be sure to add a resource to the Job section before activating a job.
Jobs

A list of jobs and their status is displayed at the top of this section. Jobs can be added to and deleted from this list by clicking the Job Maint button at the bottom of the window and selecting a menu item.
Job Name
The name you supply for a job. This name can be changed any time without affecting the status of the job.
Job Status
The status that is displayed in the job list. A Job can be aborted, finished, stopped, failed, or running. When you select a Job and apply a maintenance function to it, its status is displayed in the Job Status field.
For example, if a Job is finished, the Job Status field displays finished, but the job remains in the list until you remove it. See Distributed Rendering Control Window Buttons for information on removing jobs.
A running job is divided into tasks. A task is the number of frames to be rendered. The size, or the number of frames of the task is determined by the Max Frames field in the Current Resource window. See the description of the Current Resource window for more information.
When a running task fails, it is subdivided into two tasks. Completed frames are put in one task, which is marked as finished. The remaining frames are put in a second task, which is reset to pending. Failed tasks are set to pending three times before they are left as failed.
Invoking UserLogin
This is the login of the user who starts a job. A job is started when its state is changed to pending by selecting a renderer from the Render menu at the bottom of the Distributed Rendering Control window.
Priority
The priority (1-10, and immediate) of the job. Immediate jobs are done first. Priority 1 jobs are done before priority 10 jobs. Multiple immediate jobs can be run concurrently on a machine. Priority 1-10 jobs are performed in sequence on a machine.
Frames Total/Done
These are the total number of frames in the animation and the number of frames done (non-editable fields).
Start/End/By
These editable fields define the framerange that you want rendered. If the job does not have animation turned on (in the SDL file), these fields are meaningless.
Note: Modification of these fields may adversely affect running jobs.
Job Options
Render command options can be added to the Job in this field. Open the Rendering Options box (Render
Render-
) to see the available options.
Sdl Filename
This is an editable cell that shows the filename and path to the SDL file. Click the arrow on the right to open the File Requestor.

If you know the name of the file, type it in the File field and press Enter. If you want to select a file from the File Lister, click the Show List button. Once you have selected a file, click the SDL Filename button.
If the selected job does not have an.sdl suffix, the following confirm box is displayed.

Click OK and type a new path.
You can set the Control Location in the Alias Preferences window so that an.sdl suffix is appended by default the next time you start Alias (see Preferences
Edit Alias preferences and the description of the Render Menu later on in this section for more information).
Special Note on Output and Input Paths
All paths used for output or input should be accessible from all machines referenced in Available Resources used for the render. See the sections describing resources, and resources, Network Requirements and File Ownership for more information.
Output Paths

The Output Paths options describe pix and matte filenames and their extensions.
Output Mattes
If checked (ON), a mask file is produced as well as a pix file. If unchecked (OFF), the renderer does not produce a mask file unless the SDL file itself contains a matte = statement in the Definition section or a mask = statement in the Camera section.
If one of these statements exists in the SDL file, you should be aware that the paths in these statements (if produced by Alias) are relative to the demo directory. Because the daemon requires an absolute path, the render will fail to write to the directory.
User Defined Output Paths
If unchecked (OFF), the output paths are relative to the SDL filename path. For example, if the SDL file is located in /usr/tmp/sdl, the pix path is /usr/tmp/pix and the matte path (if Output Mattes is checked ON) is /usr/tmp/mask. If this box is checked ON, the sdl and matte filepaths appear and are used instead.
Note: If User Defined Output Paths is checked OFF, the filenames used are not those in the SDL file, but are deduced from the SDL filename. The reason for this is that the filenames generated in ALIAS are relative to the current project, therefore the actual render execution spawned by the Distributed Rendering Control is relative to any meaningful location. As a result, the render output would fail.
Pix Filename
Displays the current Job and pix filename. Clicking the arrow on the right opens the File Requestor from which you can select a new pix file.
Matte Filename
Displays the current Job and matte filename. Clicking the arrow on the right opens the File Requestor from which you can select a new matte file.
Define Extensions
If unchecked (OFF), the extensions are whatever is defined in the SDL file. If checked (ON), editable fields for both the Start and By extensions values appear.
Extension Size
This field is an override for the value in the SDL file and defaults to that value. This value defines the padding applied to the pix and matte filename extensions. For example, if your frame number is 25 and your Extension size is 4, the resulting output pix file name would be filename.0025.
Save OUT Files
Saves the out files that are generated during the rendering.
Input Paths

The Input Paths window contains an editable list of search paths the renderer uses to find the pix files it needs for input. When a job is created, this list defaults to the paths defined in the environment variable, ALIAS_PIX_SEARCHPATH.
Add a Path/Remove a Path
Paths can be added to the list, deleted from the list, and edited. Since the contents of the list are moved into an environment variable for the renderer, the overall length of the paths cannot exceed the maximum length of an environment variable. Paths you know are not needed should be deleted from the list.
Job Scheduling
The job scheduling window contains controls for selecting when the job can be run.

This chart indicates when a job is available for rendering. The schedule covers the week in half hour increments. The sun represents high noon with the hours of the day running across the top and the days of the week down the side. Green blocks represent times which rendering will be allowed to proceed.
When a job is in the PAUSE state, the currently active task will complete normally, the next task if any will wait until the job returns to a scheduled run time or when you select AVAILABLE from the Pause Job popup menu.
Tip: The blocks can be changed by dragging and picking.
Pause Job
Pause Job is used in combination with the schedule to control when the job is available to be run. Click to select one of the following from the popup menu.

- PAUSE to manually pause a job.
- AVAILABLE the job is ready to run.
- USE SCHEDULE see Job Schedule Chart for details.
Resource List

This window lists the resources that work on the current job.
Each entry in this list includes the resource name, machine hostname, and if the job is running, the current frame of the task on this resource. You can add or delete resources from this list of allocated resources. When you change the state of the job to pending, resources are used as they become available.
See the description of the Available Resources window for more information about resources.
Note: If you select one of the items in the Render menu at the bottom of the Rendering Control window to launch a job, the daemons for all the resources associated with the current job are launched (if they are not already running). However, if the job is already running when the resource is added to the job's resource list, the daemon for the resource's machine is not launched. If in this case, the daemon is not already running, you can get it going by re-launching the render. This launches the new daemon without affecting the running job.
Rendering Log

The Rendering Log contains a record of errors encountered in the render job, and a record of all the tasks that render job produced. If a job is running or is completed, the Log section is visible. This information is non-editable and is a record of the job tasks. The data displayed is task number, first frame number, last frame number, first pix filename extension, last extension, associated resource, status, and number of attempts.
Available Resources

A resource is a configuration of machine, number of processors used, and number of frames. Many resources can use a single machine. Each item in the list contains the resource name, machine hostname, and if a resource in the list is selected by someone else running a Distributed Rendering Control window, that user's login name is displayed to the right of the machine hostname. If the resource is scheduled to disallow rendering at the current time, a lock icon is displayed to the left of the resource name.
Current Resource

The Current Resource window describes the resource currently selected in the Available Resources list.
- Resource Name the name you use to describe the resource.
- Host Name the machine name. This is the name returned by the UNIX hostname command.
- Max Frames the maximum number of frames per task for this resource. By manipulating this value, you can change the load balance on the network.
- Num Processors the maximum number of processors that the machine will allocate to the job.
- Auto add Resource specifies that this resource is automatically added to any jobs added to the Job list.
- Availability used in combination with the schedule to control access to machines for rendering.
Click to display the popup menu from which you can choose one of the following:
- LOCKED no rendering on the host of this machine.
- USE SCHEDULE see Machine Schedule Chart next for details.
- AVAILABLE the host for this resource is always available.
Machine Schedule Chart

This chart indicates when a machine is available for rendering.
The schedule covers the week in half hour increments. The sun represents high noon with the hours of the day running across the top and the days of the week down the side. Red blocks represent times when no rendering is allowed.
The blocks can be changed by dragging and picking. If a daemon on a machine detects that its machine has become locked, it kills all running tasks. These tasks are added to the pool of pending tasks and are picked up by another machine if one is available.
Note: If a machine is not scheduled for use, none of the resources with this machine as its Host Name are available for rendering.
Associated Jobs
If there are jobs pending to use the current resource, a list is displayed below the Machine Schedule chart showing the job status at the right.
Control Options
These options affect the overall operation of the Distributed Rendering Control window.

- Control Location a non-editable field displaying the control_location_path.
- Update Time mm:ss to set the minutes (mm) and seconds (ss) that will elapse between job status updates.
- Editor Update Time This sets the interval time that will elapse between the GUI editors' update, to reflect the current state of the control files.
Distributed Rendering Control Window Buttons

Job Maint Menu
Click to display a menu from which you can choose to Add, Abort, or Delete jobs.
Add
To add a job, select Add from the menu. The File Requestor is displayed.

If you know the name of the file you want to add, type its name in the File field and press Enter. If you want to select a file from the File Lister, click the Show List button. Once you have selected a file, click the SDL filename button and the file is added to the Job list.
Delete
If you want to delete a Job from the Job list, select the job, then select the Delete menu item. If a Job is rendering when you want to delete it, the following confirm box is displayed.

Click YES to delete the job and the rendering process, or click NO to continue rendering.
Abort
To abort the rendering of a Job, click to select the job from the Job list, then select Abort from the Job Maint menu. The following confirm box is displayed.

Click YES to abort the render, or click NO to continue.
Reset
The Reset command is used when a daemon has died and there are tasks left in an undetermined state. Using Reset can restart the daemon on any machine that it has died on that is in the list of resources for the current job.
Select Reset from the menu to reset a job. The following confirm box is displayed.

Click YES to reset any daemons that have died and set the number of attempts to zero, or click NO to continue.
Clone
The Clone command copies the current job to a new one with the same settings. The sdl and job name with be suffixed with the _clone to let you know that this is a new job and that you should set it up as needed.
To clone the current job, select Clone from the menu. The following confirm box is displayed.

Click YES to copy the current job into a new one with the same settings, or click NO to continue.
Image Grid
When you select the Image Grid menu item, the following window is displayed:

Using the Image Grid Window
One of the problems in distributed rendering is knowing what frames are complete. Since the render may be distributed across many machines, this may be difficult to determine. The Image Grid window is provided to help.The Image Grid window is used to search for the output pix files. Each cell in the image grid represents an output file expected to exist for the currently selected job.
If the file is not found, the cell is dark grey. If the image file is incomplete, the cell is filled with a shade of blue representing the stage of completion. If the image file is not present, the cell is medium grey.
Tip: Since the image grid has to read and decode the entire file to see if it's all there, this operation can be time consuming and is best run on the machine where the image files reside.
To change the Job the Image Grid is viewing, it must be re-selected from the Jobs section of the Distributed Render Control window.
Image Grid Window Buttons
The grid can be recalculated by selecting the update button on the title bar.
The tasks button will output a list of tasks that remain to be completed to standard out. This list can be used as a reference for creating new jobs to complete your animation.
Render Menu
Click to display a menu from which you can choose to activate different kinds of renders: Raycast, Raytrace, Powercast, Powertrace, HiddenLine, Wrl Active, and Alias Prefs. You can also show the rendered animation with Flipbook, and set the Control Location in the Alias Preferences window.

When you select Flipbook, the Flipbook window showing your rendered animation is displayed, as in the following example.

See Animation
Flipbook for more information about Flipbook and the Flipbook window.
Resource Maint Menu
Click to display a menu from which you can Add or Delete resources from the Resource List window. See the description of the Resource List window for more information.
Network Requirements
The Distributed Rendering Control window lets you render multiple SDL files on a network of workstations. The distribution, scheduling, and monitoring of the component animation frames is handled by the Distributed Rendering Control application.
However, the Distributed Rendering Control application makes certain important assumptions about the network of workstations on which it is to be run:
- NFS (Network File System-see the Release and Installation Notes) must be installed on all machines on the network.
- The user/sysadmin of the network must ensure that paths used in Alias files are valid on all machines on the network.
- No provisions are made in the distributed renderer to protect its job queues from unauthorized modification. Distributed Rendering Control also makes some assumptions about the setup of the network on which it is to be run.
The main assumption is that there is a way to access the files Distributed Rendering Control needs in a "machine independent" manner.
What this means in practice can be demonstrated in the following example:
Assume you are running the Distributed Rendering Control application on a network of three machines named apple, orange, and pear. On each of the machines, you could create a root directory called /nfs. Below the nfs directory, you would put links to each machine's root directory. The contents of apple's /nfs directory might look like this:
drwxrwxrwx 8 root May 10 10:57 apple -> /
drwxrwxrwx 8 root May 10 10:57 orange -> /tmp_mnt/orange/root/
drwxrwxrwx 8 root May 10 10:57 pear -> /tmp_mnt/pear/root/
similarly, the contents of orange's /nfs directory might look like this:
drwxrwxrwx 8 root May 10 10:57 apple -> /tmp_mnt/apple/root/
drwxrwxrwx 8 root May 10 10:57 orange -> /
drwxrwxrwx 8 root May 10 10:57 pear -> /tmp_mnt/pear/root/
and the contents of pear's /nfs directory might look like this:
drwxrwxrwx 8 root May 10 10:57 apple -> /tmp_mnt/apple/root/
drwxrwxrwx 8 root May 10 10:57 orange -> /tmp_mnt/orange/root/
drwxrwxrwx 8 root May 10 10:57 pear -> /
The important thing to note about this setup is that if you specify an absolute path (one that starts with /) with the prefix /nfs/hostname (for example, /nfs/apple/usr/aldemo/user_data/demo/pix/foobar), it is valid on any of the machines in the network. This characteristic is required by the Distributed Rendering Control application, since Distributed Rendering Control does not do any path re-mapping for image file references within SDL files.
File Ownership
By default, the Distributed Rendering Control creates pixfiles that are readable, writeable, and removable by anyone. If multiple users want to render into their home directories, they should make their pix directory accessible to all users...
chmod a+rwx user_data/demo/pix
... or if multiple users are rendering into a common directory, they should make it accessible to all users:
chmod a+rwx /usr/tmp/pixdirname
... or if you want to limit access to the pixfiles:
- Create a new user and group, or choose an existing user and group with no security implications (do not use root). The names renduser and rendgroup are used as an example.
- Make directories into which pix files will be written. This directory will have owner renduser, and group rendgroup with read/write permissions for the owner and group, and with group inheritance enabled (which means that all files created in this directory are automatically in the rendgroup).
The commands to set this up for an existing directory are:
chmod u=rwx,g=rwxs,o= pixdirname
chown renduser.rendgroup pixdirname
- Pixfiles produced by the Distributed Rendering Control need to be accessible by members of the rendgroup. To accomplish this, the application that spawns the renders (alias_render_demon) must be setuid and setgid to the correct user and group. You need to be root for this:
chmod ug+s $ALIAS_LOCATION/bin/alias_render_demon
chown renduser.rendgroup $ALIAS_LOCATION/bin/alias_render_demon
Clear Auto Add
Add all users of the Distributed Rendering Control to the rendgroup. A user can be a member of more than one group. Execute the command man group and man groups to see how this can be accomplished. Pix files created through the Distributed Rendering Control can then be read, written, or removed by any member of rendgroup.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.