Setting Up a Network Rendering System


Before we get into the details of setting up Max and the network itself, understanding the different parts of the network rendering system is important. This list shows the major players involved:

  • Manager: The manager is a program (manager.exe) that acts as the network manager. It's the network manager's job to coordinate the efforts of all the other computers in your rendering farm. Only one machine on your network needs to be running the manager, and that same machine can also be used to render.

  • Server: A rendering server is any computer on your network that is used to render frames of your animation. When you run the server program (server.exe), it contacts the network manager and informs it that this particular computer is available to render. The server starts up Max when the manager sends a frame to be rendered.

  • 3ds Max: At least one computer in your rendering farm must have an authorized copy of Max running, although it does not need to be the same computer that is running the manager. It is from this machine that you initiate a rendering job.

  • Monitor: The Monitor (monitor.exe) is a special program that lets you monitor your rendering farm. You can use it to check the current state of jobs that are running or that have been queued. You can also use it to schedule network rendering times. The Monitor is completely independent from the actual rendering process, so you can use it on one of the machines in your rendering farm, or you can use it to remotely check the status of things by connecting over the network.

We address the task of setting up the network rendering system in three stages. The first thing you need is a functioning network, so we first go through the steps of how to get it working. Next, we look at setting up the Max software on each computer, and finally I describe how to tell Max where to find scene data it needs and where to put the finished scenes.

Setting up the network

To communicate with the different machines on the network, Max uses TCP/IP (Transmission Control Protocol/Internet Protocol), a very common network protocol. It's so common, in fact, that if your computers are already set up with some sort of network, you might already have TCP/IP installed and configured properly. If so, you are saved from several hours of work. Each machine on a network is identified by an IP address, which is a series of four numbers, each between 0 and 255, separated by periods, such as:

    192.1.17.5 

Each computer on a network has a unique IP address as well as a unique, human-readable name. To use Max to do network rendering, you need to find the IP address and name of each computer used on the network.

The precise details of what constitutes a "correct" IP address are too long and boring to go into here, but for a nonpublic network, all the addresses start with 192 or 10. The second and third numbers can be anything between 0 and 255 inclusive, and the last number can be between 1 and 254 inclusive (0 and 255 have special meanings). As an example, I've chosen to set up my home network as follows:

    Machine Name  IP Address    Dungar     10.0.0.1    Ramrod     10.0.0.2    Slazenger    10.0.0.3    Romulus     10.0.0.4 

Notice that each address is unique and that because it's a private network, the first number in each address is 10.

Tutorial: Locating TCP/IP and gathering IP addresses

To get the computers to talk to one another, you need to make sure that each computer has the TCP/IP protocol installed, and you need to gather the IP addresses for all the machines on the network.

To see whether you already have TCP/IP installed and to find out the IP address and name of each computer, follow these steps:

  1. Right-click the My Computer icon in Explorer, and select Properties from the pop-up menu. The System Properties dialog box opens. Select the Computer Name panel. This panel displays the Full computer name. Write the computer name in a list of all the computers that you are using to render via a network. Each computer on your network needs a unique name, so if the field is blank, enter a unique name and add the computer to your list.

    Caution 

    Remember that there are differences between Windows 2000 and Windows XP. These steps were written for Windows XP.

  2. Open the Windows Control Panel by going to the Windows taskbar and choosing Start image from book Control Panel.

  3. Double-click the Network Connections icon to open the network connections window. This window displays a list of network connections.

  4. Select and right-click the network connection identified as Local Area Connection, and select Properties from the pop-up menu. The Local Area Connection Properties dialog box opens, which lists the installed protocols. At the top of the dialog box, you should see your network adapter (such as the brand and model of your Ethernet card). If it is not listed, you need to get it set up before proceeding. Under the network adapter is a list of installed network protocols, similar to the list in Figure 46.3. Look through the list until you find the Internet (TCP/IP) Protocol. If you find it, double-click it to bring up the TCP/IP Properties dialog box. If you don't see the TCP/IP protocol anywhere, then you have to add it yourself in order to do network rendering.

    image from book
    Figure 46-3: A list of the network protocols installed on this computer

  5. The Internet (TCP/IP) Protocol Properties dialog box has an important piece of information, called IP Address, shown in Figure 46.4. Do one of the following:

    • If Obtain an IP address automatically is selected, you don't have to worry about the exact IP address of this computer, because each time the computer connects to the network it gets an IP address from a server, and the address it gets may be different every time.

    • If Specify an IP address is selected, add the IP address to your written list of computers on the network. In the IP Address panel shown in the figure, the IP address has been statically assigned, which means that this computer will always have the same IP address.

    image from book
    Figure 46-4: You can find the IP Address in the Internet Protocol (TCP/IP) Properties dialog box.

  6. Repeat this procedure for each computer that will participate in your rendering farm. If you're lucky and all your machines have TCP/IP installed and ready to go, you can skip the next section and move on to setting up Max on your network. If not, then follow the steps for configuring TCP/IP in the next section.

Tutorial: Installing and configuring TCP/IP

If your computer doesn't already have TCP/IP installed, you have to install it in order to render via a network in Max.

Caution 

Be careful about changing the TCP/IP settings of computers that are on a public network or are part of a large corporate network. Incorrect settings can not only keep your computers from communicating properly but can also cause problems in many other computers on the network.

If the computers you plan on using for your rendering farm are part of a public or corporate network, seek the assistance of the network administrator. If you're in charge of the computers yourself, dig out your Windows XP installation CD-ROM, because you're going to need it.

To install and configure TCP/IP, follow these steps:

  1. Go to the General panel on the Local Area Connection Properties dialog box. To get there, choose Start image from book Control Panel. Double-click the Network and Internet Connections icon, and select the Network Connections links to open the network connections window. Select and right-click

    the network connection identified as Local Area Connection, and select Properties from the pop-up menu.

  2. Click the Install button to open the Select Network Component Type dialog box. Select Protocol, and click the Add button. From the list of protocols, select Internet (TCP/IP) Protocol and click OK.

  3. At this point, Windows asks whether you want to use DHCP. DHCP is a server that automatically assigns an IP address to you computer. If you know for sure that there is a DHCP server running, choose Yes. If you're setting up the network yourself or you have no idea what DHCP is, choose No.

    If DHCP is already set up and working, it can save you lots of time, but if not and if you're setting up the network yourself, I recommend steering away from it. You can change the settings to use DHCP at a later time if you're feeling ambitious.

  4. Now Windows starts looking for the files that it needs to install, and it pops up a dialog box asking for their location. The default path it lists is probably the right one, so you can just click OK and continue. If Windows guessed wrong, or if you have the CD-ROM in a different drive, correct the path and then click OK.

  5. After Windows finishes copying the files, TCP/IP is installed but not configured. To configure the protocol, select it and click the Properties button.

    The Internet (TCP/IP) Protocol Properties dialog box, shown earlier in Figure 46.2, opens.

  6. In the General panel is a section where you choose whether you want to have an IP address assigned automatically using DHCP. If you're not using DHCP, choose Specify an IP address and enter an IP address for this machine. Refer to the beginning of this section if you need help choosing a valid IP address. (If you're a little confused about what numbers to use, you should be safe using the same numbers that I did.)

    Caution 

    It 's extremely important that you choose an IP address that is unique on the network. (Duplicate IP addresses are a great way to guarantee a nonfunctional rendering farm.)

  7. Below the IP address section, you have to enter a subnet mask. Enter

        255.255.255.0 

    The subnet mask is used in conjunction with the IP address to identify different networks within the entire domain of every network in the world. If you do have to change this, be sure to change it in the 3dsnet.ini file that each rendering server creates (see "Configuring the Network Manager and Servers" later in this chapter).

  8. Now select the Obtain DNS server address automatically option unless you know the IP address of your network's DNS server.

    This setting allows you to configure the TCP/IP protocol to check your local DNS when looking up addresses.

  9. Click OK in the TCP/IP Properties dialog box to close it, and then click Close on the Local Area Connection Properties dialog box to close it.

    Windows needs to be shut down and restarted in order for the changes to take effect. This computer now has the proper network setup for your rendering farm.

Remember to repeat these instructions for every computer that you want to use in your rendering farm. Each computer must be properly connected to the network and have TCP/IP installed and configured. This may seem like lots of work, but fortunately it's a one-time investment.

Tutorial: Setting up Max on the networked computers

If you've made it this far, then you'll be happy to know that the worst is behind you. We've covered the most difficult parts of setting up a network rendering system; by comparison, everything else is relatively simple.

At this point, you should have a complete list of all the computers used in your network rendering system. Each computer should have a unique name and a unique IP address, and all should have TCP/IP installed and configured. You are now ready to move on to the actual Max installation for your rendering servers.

You have to set up Max on each computer in your rendering farm. Fortunately, this is as simple as a normal installation. To set up Max on each computer, follow these steps:

  1. Run the setup.exe program on the Max installation CD-ROM.

    Note 

    You don't need to have a CD-ROM drive in every computer in your rendering farm. After your computers are networked, you can map a drive from your current machine to a computer that has the Max CD-ROM in its CD-ROM drive. In Windows Explorer, choose Tools image from book Map Network Drive and enter the path to the computer and drive with the CD-ROM.

  2. Move past the first few introduction screens until you get to the Setup Type screen. Choose the Compact option so that Max installs only the minimum number of files it needs to be able to render. You also need to choose a destination directory where you want Max to be installed. If possible, just accept the displayed default destination and click Next.

    Tip 

    Installing 3ds Max in the same directory on every computer can save you some maintenance headaches later on. Managing bitmap and plug-in directories is much easier if each machine has the same directory layout

  3. Continue with the rest of the installation as you would do for a normal installation of Max (although you can skip installing the online reference manuals if you want to save some disk space).

After the installation files get copied over, you'll probably have to reboot your computer for the changes to take effect.

Configuring shared directories

The last step in building your rendering farm is to tell Max where it can find the information it needs to render a scene. Max must be able to find textures and other information, and it must know where to put each frame that it renders.

Tutorial: Sharing directories

Instead of copying needed files to every machine in your rendering farm, you can share your directories across the network, which means that other computers on the network can use the files in that directory.

To make a directory shared, follow these steps

  1. Open Windows Explorer by selecting Start on the Windows taskbar and then choosing My Computer.

  2. Find the directory that you want to share, right-click it, and choose Sharing and Security. The Properties dialog box opens for that directory.

  3. In the Sharing panel, choose the Share this Folder option and type a name for this directory in the Share Name field if it is blank.

    Figure 46.5 shows the "scenes" directory being set up to be shared.

    image from book
    Figure 46-5: Sharing a directory so that other computers on the network can use it

    Tip 

    Other computers will refer to the shared directory by its shared name instead of its actual name, so to keep things simple, accept the default of using the actual name for the shared name.

  4. Select the Make this folder Private option to control the access to the folder. This option lets you control who has access to this directory and how much access each person or group has (access could be restricted to read-only, for example). For now, make sure that the Allow network users to change my files option is selected.

    Caution 

    Enabling the Allow network users to change my files option gives all network users full control access, letting everyone on the entire network read and write or erase the files in your shared directory. For now, leaving it this way until you're sure everything is configured properly is best. Later, however, restricting access to only those accounts that should have access would be a good idea.

  5. Click OK in each dialog box to close them all until you're back at Windows Explorer. If you press F5, Windows refreshes the display and your directory now has a little blue hand holding the folder. Figure 46.6 shows the "scenes" directory denoted as a shared directory.

image from book
Figure 46-6: Other computers can now access the shared "scenes" directory.

Other computers can access your shared directory by specifying the full name of the directory's location. In the example, we've been using, the "scenes" directory is on a computer named "Dungar," so the full path to that directory is as follows:

    \\dungar\scenes 

You can test this by opening Windows Explorer (like we just did in the procedure) on a different computer, choosing Tools image from book Map Network Drive, and entering the full path to that directory. After you've mapped a drive to a directory, Windows treats that directory as if it were an actual drive on your machine. In Figure 46.7, the Z drive is mapped to point to the "scenes" directory on Dungar.

image from book
Figure 46-7: Mapping the Z drive to point to \\dungar\scenes\

After you've mapped to a new drive, go back to Windows Explorer and press F5 to refresh the display again. You now have a new drive for that network directory.

Tutorial: Choosing shared directories

Now you need to decide where to put the shared files and the output files. These directories are the place from which all machines in your rendering farm read files and images and to which they all write finished frames of your animation. The following procedure takes you through the steps for doing this using the directories I've set up on my own rendering farm.

To set up your shared directories, follow these steps

  1. First, decide which drives to use and then share them.

    On my network, Dungar has plenty of disk space, so I used the maps, images, and scenes directories that were already there from when I installed Max.

    Tip 

    Use the maps, images, and scenes directories for all the scenes that you render via a network. In each directory, you can create other directories to organize files for your different scenes, but putting all needed files in the same place facilitates maintenance.

  2. On each computer in your rendering farm, map a drive to your shared maps, images, and scenes directories as described in the previous section. If possible, choose the same drive letters on all machines. I used the letter Z for the scenes directory on each computer.

Congratulations! You've made it through the installation and setup of your network rendering system. And no matter how long it took you, it was time well spent. The ability to render via a network will easily save you more time than you invested in setting up your network.




3ds Max 9 Bible
3ds Max 9 Bible
ISBN: 0470100893
EAN: 2147483647
Year: 2007
Pages: 383

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net