# rayrc initialization file for scene files in "Writing mental ray shaders" # This is the mental ray initialization file for Mac OS X. This file # should be named .rayrc and copied to your home directory. If you # already have a .rayrc file there, copy it to a file with a different # name first so you can restore it later if necessary. Alternately, # you can put this file in the current directory in which you are # rendering scene files and it will be used instead. When you render # with "ray -v 6" you will see the filename of the rayrc file that is # used during rendering. (Search for "startup" in the information that # is written to the standard error stream.) This is a good way to # make sure that the right .rayrc file is being used. The sequence of # .rayrc files that are examined is described in "Rendering with # mental ray" (3rd edition) on page 412. # Change this value to the current location of mental ray: registry "{MI_DIR}" value "/usr/local/mi" end registry # Change this value to the location of the WMRS_SOURCE directory. registry "{CLASS_DIR}" value "/Users/username/WMRS_SOURCE" end registry # The rest of the file does not need to be modified for the basic # class setup, but you can add other directories to search as well as # other 'link' and '$include' statements. $lookup "{MI_DIR}" $lookup "{CLASS_DIR}" registry "{_MI_REG_INCLUDE}" value "{MI_DIR}/rayinc;{CLASS_DIR}/shaders" end registry registry "{_MI_REG_LIBRARY}" value "{MI_DIR}/shaders;{MI_DIR}/lib;{CLASS_DIR}/shaders" end registry # The standard mental ray shader libraries, included by default as a convenience: link "base.so" $include "base.mi" link "contour.so" $include "contour.mi" link "physics.so" $include "physics.mi" link "subsurface.so" $include "subsurface.mi" # The "newblocks" C++ code defines a set of geometry shaders that # create some of the simple objects used in the example scenes: link "newblocks.so" $include "newblocks.mi"