Ayam Win32 Setup

This document describes how to set up Ayam on the Win32 platform.

The executable of Ayam is located in the directory named "bin" .
You do not need to install Ayam in the system, you can start it directly with a double click from where you unpacked the archive.

To start Ayam easily, you can add an icon to your desktop by double clicking on the "make_shortcut.vbs" script.

If you get error messages about input or output file handles when trying to render directly from Ayam, please use the accompanying batch file "ayam.bat" to start Ayam.

Before you start modelling with Ayam, the following three things have to be done:

  1. Saving Preferences
  2. Setting up Shaders
  3. Creating and Saving a Working Environment (View Windows)

1. Saving Preferences

All preference settings (Menu: "Edit/Preferences") are automatically saved when you leave Ayam.
The preferences are saved to the file:
"$(HOME)/ayamrc" if the environment variable "HOME" exists
"$(TEMP)/ayamrc" else.

The following steps need to be done if you (for some reason) do not like it that way, or the preferences end up in silly
places (e.g. Win95 is setting your $(HOME) to "C:/", so that the preferences end up in "C:/ayamrc"...).
However, if anything is fine with you, just skip to Step 2 now.

You can change the path and filename of the preference settings using the environment variable "AYAMRC".
How do you set an environment variable?

An easy way to do this is to edit the batch file "ayam.bat", and use it to start Ayam (this route does not work on Windows-NT4!):

Alternatively: You can switch off automatic saving of the preferences on exit using the preference setting "Main/AutoSavePrefs". If you switched off "AutoSavePrefs", you can enforce saving of the preferences using the menu entry "File/Save Prefs".

Remember: NEVER use backslashes (\) in any path or filename you enter to Ayam.

2. Setting up Shaders

What are shaders? For the moment, we can safely assume that shaders are small files that carry material descriptions. Some example shaders come with your RenderMan compatible renderer (e.g. BMRT), but you may also create your own.
Unless you load a shader parsing plugin (see below), Ayam can only work with shaders that have been compiled with "slc" from BMRT, so you may want to get and install BMRT first. Unfortunately, NVIDIA/Exluna stopped the official distribution of BMRT, but it can be found using the obvious search terms with your favourite search engine.
After the installation of BMRT you need to point Ayam to the directories where your slc-compiled shaders reside in order to use them with the material objects in Ayam. This is done using the preference setting "Main/Shaders". Just open the preferences using the main menu entry "Edit/Preferences" and enter the appropriate paths (separated by semicolons ";") into the string entry labeled "Shaders".
An example string could look like this:
D:/BMRT2.6/shaders/;D:/Ayam/scn/shaders/
Now press the "Scan Shaders" button below and watch the console for error messages.

Remember: NEVER use backslashes (\) in any path or filename you enter to Ayam.

If you do not want to use BMRT, you need to load a shader parsing plugin. In the directory ayam/bin/plugins there are the following shader parsing plugins: aysdr.dll for Pixie, ayslb.dll for Air, ayslo3d.dll for 3Delight, ayslo.dll for PRMan, ayso.dll for RenderDotC, and ayslx.dll for Aqsis.

The plugins may be loaded manually (using the main menu entry: "File/Load Custom") or automatically on startup. In order to load a plugin automatically on startup of Ayam, just add the complete path and filename of the corresponding Tcl script (e.g. loadaysdr.tcl) to the "Scripts" preference setting and restart Ayam. The plugins have to be present in a directory called "plugins", which in turn has to be present in the directory where "ayam.exe" is located, in order to make this work. Your directory structure should look like this:

ayam/bin/
ayam/bin/ayam.exe
ayam/bin/plugins/ayslb.dll
ayam/bin/plugins/loadayslb.tcl

Note that the plugins are not able to check the Ayam version they get loaded into. Please, do not try to load them into any other version of Ayam as 1.7; otherwise you may experience an immediate crash of Ayam.

Also note that some plugins require additional DLL files to be present in the DLL search path. Depending on the flavour of your Win32 you may need to adapt the PATH environment variable to include the directories with those DLL files. You can also just copy them to the directory where "ayam.exe" is located. If a plugin does not find the corresponding DLL files it needs, you will get "invalid argument" Tcl error messages upon loading, or the plugin will fail to scan shaders later on.

Furthermore, all plugins have been compiled and tested against a specific version of the corresponding renderer (as outlined below); parsing shaders of other versions of those renderers possibly will not work.

aysdr.dll: Pixie 1.3.3, depends on "ri.dll"
This plugin only works, if the preference setting "Shaders" contains just a single element (this means, you need to copy all your private shaders to e.g. c:/pixie/shaders and compile them there).

ayslb.dll: Air 2.6, does not depend on other DLL files

ayslo3d.dll: 3Delight 2.0.2, depends on "3delight.dll"

ayso.dll: RenderDotC 3.3.5, depends on "soargs.dll"
Since RenderDotC compiles all shaders as shared native code (into DLL files), all paths of the "Shaders" preference setting should also be present in the DLL search path.

ayslx.dll: Aqsis 0.9.0, does not depend on other DLL files

ayslo.dll: Photorealistic RenderMan 11.5, does not depend on other DLL files

Remember: NEVER use backslashes (\) in any path or filename you enter to Ayam.

3. Creating and Saving a Working Environment (View Windows)

The working environment is simply an almost empty Ayam scene file, that contains the specification of some view windows. This file is loaded automatically on every start of Ayam and presents you with a standard working environment, consisting of e.g. a traditional 3-view layout (Front, Side, Perspective). To create your own working environment, follow the steps below: Remember: NEVER use backslashes (\) in any path or filename you enter to Ayam.

We are set. Quit Ayam and start it again, check the console for errors; then download "Tutorial #1" from http://www.ayam3d.org/ and read it.

For further information, see also the documentation of Ayam and the list of frequently asked questions (FAQ).


Randolf Schultz, 17. Jun 2004
http://www.ayam3d.org/    Reconstruct the World!