The RUN Script

The RUN script is used to set up the directories and preferences for YG. These are environment variables, which are set in csh using the setenv command.
ARCHITECTUREWhich type of computer you're using, either linux or sgi. You can use the same YG project on either linux or sgi just by changing the ARCHITECTURE variable in the RUN script.

YG_DIRThe location of the system Ygdrasil directory - usually /usr/local/yg. Change this if you have YG installed in a different location, or if you have more than one version of yg.
YG_PATHTells YG what directories to look in for its files (scene files, user files, and data files), separated by colons.
default is audio:data:scenes:users. These are relative paths.
YG_DSO_PATHTells YG where to look for its DSO plugin files. There are usually two locations: the system yg directory, which contains all the nodes that come with YG, and your own yg directory, which contains plugin nodes that you write yourself.
Default is dso.${ARCHITECTURE}:${YG_DIR}/dso.${ARCHITECTURE}
This usually tells
YG_DEBUGSets debugging options. For instance, "*.volume" displays a wireframe around all spatial nodes, like triggers, environments, sound nodes, etc. "world.sentmessages" prints out in the terminal all messages between YG for verbose debugging help.
To turn off debugging, put a "#" at the beginning of the line.
YG_SOUND_DIRdirectories to look in for audio files. Default is audio
BERGEN_SERVERIf the Bergen sound server is running on a different machine, put its name or IP here.
YG_PRELOAD_CLASSES lists node classes whose DSOs should be pre-loaded, before pfConfig() is called to fork all the Performer subprocesses. This is necessary for any class which defines drawing callbacks; without it, the DSO will be loaded after the fork, and only the main app process will have access to the drawing functions.

(c) Ben Chang