

An Emacs editing mode, "rsl-mode" (source), exists for RenderMan Shading Language source files which makes editing, compiling, and testing shaders more convenient.
RSL-Mode provides the following:
| Command | Description |
|---|---|
Ctrl-c Ctrl-c | save & compile the shader in the current Emacs buffer for PRMan |
Ctrl-c Shift-C | save & compile the shader in the current Emacs buffer for BMRT |
Ctrl-c Ctrl-r | render the current RIB file using PRMan |
Ctrl-c Shift-R | render the current RIB file using BMRT |
Ctrl-c Ctrl-s | set the current RIB file filename (the default is "rman.rib") |
Ctrl-c Ctrl-i | set the list of directories included by the -I flag in both PRMan's and BMRT's shader compiler. This is specified, at the prompt, as a LISP list of strings where each string corresponds to one directory name. |
Ctrl-c Ctrl-l | load the most recently loaded AL file (via Emacs) back into the AL interpreter |

There are two global variables defined by rsl-mode which specify default settings. These variables can be defined in your own .emacs file or site files to specify new defaults.
The values can also be changed interactively by the Ctrl-c Ctrl-s and Ctrl-c Ctrl-i keystrokes shown in the table above.
Examples:

Here are example scripts, one version for PRMan and the other for BMRT, which render a bilinear path with the plastic shader and two light sources. These sample files can be copied and edited to use the shader and/or geometry that you're testing. They can also be further optimized for faster rendering.

RManNotes is Copyright © 1995, 1996 Stephen F. May
Any comments or suggestions appreciated.
Steve May (smay@pixar.com)Last Modified: 3/27/96