# rayrc initialization file for scene files in "Writing mental ray shaders" # This is the mental ray initialization file for Windows. This file # should be named rayrc and copied to the directory in which mental # ray is installed. If you already have a rayrc file there, save it # 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. 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 "C:\Program Files\mental images\mental ray" end registry # Change this value to the location of the WMRS_SOURCE directory. registry "{CLASS_DIR}" value "C:\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}\include;{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"