If you are setting up your system to use in the cadelab, for CS579, there is simular information on how to change your set up on the CS 579 home page, Getting Started, Setting up Dot Files.
Otherwise...
First of all you will need to set the environment variable A1ROOT to be the root of the Alpha_1 distribution. At Utah, this is typically /usr/local/apps/alpha1. For example, add this line to your .customs.cshrc file:
setenv A1ROOT /usr/local/apps/alpha1In this document we will refer to the root of the Alpha_1 distribution as $A1ROOT. (Consult your system administrator for the location at your site.)
Next, your .customs.cshrc file must contain the following: If you do not already have a .customs.cshrc, then create one.
## ## add the alpha 1 stuff (if in interactive mode) ## if ($?prompt) then setenv A1_QUIET yes if ( -e $A1ROOT/cmds/set-envars ) then source $A1ROOT/cmds/exec-envars set path = ( $a1bin $path /usr/local/apps/urt/bin ) echo "" else echo "No Alpha_1." endif endifThis files sets a few more environment variables for runtime reference.
Note, the "set path "... adds the Alpha_1 binary program directory to your path variable. For convenience, the the exec-envars file sets the environment variable a1bin to the approriate directory ($A1ROOT/bin). The "set path" command sets your path so that your shell will search the Alpha_1 program directory ($a1bin) when you give a command. The form shown above makes sure that whatever you had already set on your path remains.
You may want to modify the X resources associated with Alpha_1 programs. To do so, see the supplemental document: X/Motif Defaults.
Alpha_1 provides an emacs extention for a modeling mode called scl-mode for the c_shape_edit program. This mode is entered automatically when you visit a file with a ".scl" suffix (shape_edit command language). For a complete description of using c_shape_edit with emacs, see the GNU Emacs SCL Mode document.
In order to use the Alpha_1 emacs extensions, you must modify your personal .emacs file to load them. To do so, add the following lines:
(condition-case () (load (concat (getenv "A1ROOT") "/emacs/a1")) (error (message "Can't load a1.el")))This assumes you have modified your Unix shell setup as described above.
csh 1> aprint ray csh 2> man alpha1The first command will print the defaults associated with the Alpha_1 ray tracing program ray. The second command should show the overview man page for Alpha_1.
To test the emacs extensions, start emacs and visit an SCL file, test.scl, for example. The mode line should display Scl and there should be an SCL menu (in emacs 19) in the menu bar.
Now see the Alpha_1 Tutorial to try some modeling and graphics in Alpha_1.