lm_2DMV 1.3 Mental Ray shader maya files

 

Overview:

This shader can render visual motion vector information, that can be used by some RevisionFX plugins - namely ReelSmart Motion Blur v3 and ReelSmart Smooth Kit - to render accurate motion blur in post.

 

Download:

- Visit Guy Rabiller's page for this shader at LaMaison.
- Download the Maya files.

 

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 AElm_2DMVTemplate.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/lm_2DMV.{DSO}"

mi "{MAYABASE}/include/lm_2DMV.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 the following:
API 0.0 error 301031: call to undeclared function "lm_2DMV"
API 0.0 error 301036: undefined shader "lm_2DMV1"


Usage:

lm_2DMV appears in the HyperShade at the `Create mental ray Nodes/Materials` 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 Guy's site for the shader documentation.