SI_MI_SHADER_TOKEN

Parameter

Description

SI_MI_SHADER_TOKEN

 

In a mental ray 2.x .mi2 file, setting this variable allows you to use the registry capability to specify the shader link path (the path of the shader's .so and .dll files). When set, SOFTIMAGE|3D outputs the shader database token instead of the exact path. mental ray will replace the shader database token with the value specified in the rayrc file. A shader database token is always the name of the database in upper case, within braces (for example, the Shader_Lib token would be {SHADER_LIB}).

SI_MI_SHADER_TOKEN is useful for distributed rendering. As each rendering machine uses its own rayrc definition to replace the token, SOFTIMAGE|3D can be installed at different locations on each machine and the shader .so and .dll files will always be found locally on each rendering machine.

Example: Linking without SI_SHADER_TOKEN

 

Syntax

 

c:\Softimage\SOFT3D_3.9.2\mental_ray\MR_SHADERS\Shader_Lib\lib20\oz.so

 

 

Example: Linking with SI_SHADER_TOKEN

 

Syntax

 

{SHADER_LIB}\lib20\oz.so

 

 

 

Example

Platform

Syntax

Windows NT

set SI_MI_SHADER_TOKEN=yes

IRIX/Linux

setenv SI_MI_SHADER_TOKEN yes