Tranvol 2.01 Mental Ray shader maya files

 

Overview:

Tranvol is a complete material shader that computes (among other things) simple subsurface-scattering effect.

 

Download:

- Visit Andy Hayes' site and download the shader from Shaders/Tranvol 2.1
- Download the Maya files. (The files may be included in the release too, but this one is always the newest version.)

 

Installation:

- Copy the MI file to the `maya5.0/mentalray/include` directory.
- Copy the DLL file to the `maya5.0/mentalray/lib` directory.
- Copy the AETranvol201Template.mel file to a maya script directory.
(The list of the current script directories can be queried using the following mel command: getenv "MAYA_SCRIPT_PATH")

- Add the following lines after similar declarations in the maya.rayrc file:
(The rayrc file is in the Maya5.0/mentalray directory in Maya 5.0)

link "{MAYABASE}/lib/Tranvol201.{DSO}"

mi "{MAYABASE}/include/Tranvol201.mi"

These lines initialize the shader for Mental Ray. If they do not exist than the shader appears only in Maya but not in Mental Ray,
and it gives error messages in the output window like these:
API 0.0 error 301031: call to undeclared function "Tranvol2011"
API 0.0 error 301036: undefined shader "Tranvol201"


Usage:

Tranvol appears in the HyperShade at the `Create mental ray Nodes/Material` tab.
(If you don't have this tab than create an environmental variable called
MAYA_MRFM_SHOW_CUSTOM_SHADERS set it to 1 and restart Maya. It will enable the display of MR nodes.)

Have a look at Andy's site for the shader documentation.