Contents | Index | Previous | Next

Distributed Rendering (Windows NT)

To install mental ray manually in a distributed environment, follow these steps:

Checklist for licensing requirements

For more information about installing FLEXlm, see the Setup Guide and the Licensing Online Help.

mental ray Setup

  1. Install the complete SOFTIMAGE 3D Extreme package on the render server (or Master host). Install the mental ray renderer software on all of the client (or slave) machines, including shader databases. You can share one shader database, but this is not recommended.

  2. During installation, set up all the rendering machines as FLEXlm clients. The machine designated as the FLEXlm server should not take part in the network rendering. See the section below called FLEXlm Installation.

Note: The mental ray software should be installed in the same location on each machine. If this is not the case, you will need to use the linktab.ini file.

  1. The machine you have designated as Master host should have as much swap space as possible. A good general rule is 10 Megabytes of memory per renderer machine (10 x Number of Machines).

  2. Once you have installed SOFTIMAGE 3D, add the SI_LOCATION environment variable to the System Environment Variables (In Control Panel) to all of the slave machines. This environment variable is used by the render clients to locate the SOFTIMAGE 3D software when they receive a render request.

  3. Create a Softimage user account with Administrative privileges on the Master host machine. Create a .rayhosts file in the user’s %HOME% directory. If you do not create this file, the default search directory for the .rayhosts file is %SI_LOCATION%\3D\bin or the current (working) directory. The syntax is one host name per line excluding the Master.

  4. List all slave machine names and their corresponding IP addresses in \\winnt\system32\drivers\etc\hosts file.

Using mental ray

The mental ray renderer is designed to take full advantage of multiprocessor machines. It automatically takes advantage of thread parallelism without you needing to modify anything. The image to be rendered is subdivided into tiles, which generates a queue of tasks to be executed in parallel. Each render process (either on Master or Slave) requests tasks from this queue and renders the corresponding portion of the image. Faster processes request and complete more tasks than slower ones.

Starting mental ray

There are three ways to start the mental ray renderer:

The command line options are the fastest. For testing purposes, the second option is ideal because it allows you to have a verbose output in a command prompt window, which allows you to see what is being processed and if there is any failure.

The verbose output is not recommended for actual production renders because it slows down the process. For a full listing of command line options, type ray –help or soft –R in a command prompt window.

The ray.exe command takes an .mi file as input. To generate this file, select “Output to file” from the mental ray render options or use the –m option when using the soft –R command.

If you are going to edit the .mi file (to modify output picture or texture paths), you must force it to use ASCII vector data in the file instead of binary. To do this, set the environment variable SI_ASCII_VECTORS to any value before starting SOFTIMAGE 3D.

Sometimes it is necessary to disable the rayserver service on the Master machine.

Environment Variables

These three environment variables can help control the transmission of data to remote hosts (set these in the System Environment variable):

Managing Renders

For some scenes, it is not necessary to use all CPUs for a render. For example, you can split up the render with 5 machines doing half the frames and another 5 doing the other half. This would have to be done using the –j option with the soft –R render command.

Current Limitations

Some shaders are not thread-safe, they can cause Application Errors when run on multiple threads. This is not a serious problem if it occurs on a render client but if it occurs on the render server the entire render process may be interrupted or stopped completely.

As soon as one license server provides any licenses, mental ray stops looking for additional necessary licenses from other license servers. For example, say you have 8 license servers, each with one license to give, and you do a mental ray render on an 8-CPU machine: mental ray will only obtain one license and render with one license even though there are 7 other licenses available.

The linktab.ini File

If you are not working in a homogeneous Windows NT environment, you may need to set the linktab.ini file.

Handling Symbolic Links with the linktab.ini File