lm2DMV for Maya 2011 64-bit on Mac OS X

By , February 24, 2011 10:19 pm
Motion Vector Pass

Motion Vector Pass

I compiled a Mac OS X 64-bit friendly version of the lm2DMV mental ray shader. The lm2DMV motion vector shader allows you to render motion vectors from your Maya scene. This allows you to apply motion blur to your renders as a 2D process in your compositing package.

Download the Maya 64-bit for Mac OS X version of lm2DMV here.

The lm2DMV shader was created by Guy Rabiller for LaMaison.

The supporting Maya files were created by Horvatth Szabolcs.

The Mac OS X 64-bit version for Maya was compiled by Andrew Hazelden. This shader works with Maya 2011, 2012, and 2013.

lm2DMV Usage Instructions:

Assign the lm2DMV_2 mental ray shader as the surface material to objects in your Maya Scene.

Disable Raytracing in the render settings.

Set the motion blur setting to Full.

Change the Shutter Open and Shutter Close to 0.5

Choose either the Smoothkit or ReelSmart RSMB Vector output modes.

If you render to either a 16 or 32 bit buffer you can eliminate banding in the motion vector pass.

Beauty Pass Rendered Without Motionblur

Beauty Pass Rendered Without Motionblur

lm2DMV Shader Attributes

lm2DMV Shader Attributes

ReelSmart Motion Blur Pass

ReelSmart Motion Blur Pass

Shader Installation

Maya 2011 Installation

This version of the lm2DMV mental ray shader was compiled for Maya 2011+ on Mac OS X 64-bit. Mac OS X 10.6 Snow Leopard is required.

If you want to go inside the Maya.app package, right click on Maya.app and select "Show Package Contents" from the contextual menu.

Copy lm2DMV_v2.mi to the mentalray include directory:

/Applications/Autodesk/maya2011/Maya.app/Contents/mentalray/include

Copy lm2DMV_v2.dylib to the mentalray lib directory:

/Applications/Autodesk/maya2011/Maya.app/Contents/mentalray/lib/

Copy the AElm2DMV_v2Template.mel scripts to the Maya scripts folder:

~/Library/Preferences/Autodesk/maya/2011-x64/prefs/scripts

Copy the icon render_lm2DMV_v2.png to the to the Maya icons folder:

~/Library/Preferences/Autodesk/maya/2011-x64/prefs/icons

Maya 2012 Installation

Copy lm2DMV_v2.mi to the mentalray include directory:

/Applications/Autodesk/maya2012/Maya.app/Contents/mentalray/include

Copy lm2DMV_v2.dylib to the mentalray lib directory:

/Applications/Autodesk/maya2012/Maya.app/Contents/mentalray/lib/

Copy the AElm2DMV_v2Template.mel scripts to the Maya scripts folder:

~/Library/Preferences/Autodesk/maya/2012-x64/prefs/scripts

Copy the icon render_lm2DMV_v2.png to the to the Maya icons folder:

~/Library/Preferences/Autodesk/maya/2012-x64/prefs/icons

Maya 2013 Installation

With Maya 2013 the location of the "mentalray" folder has changed.

The mentalray folder has been moved outside of the Maya.app application package directory and is now located at:

/Applications/Autodesk/maya2013/mentalray/

Here is a set of new shader installation instructions:

Copy the lm2DMV_v2.dylib shader "lib" library file to:

/Applications/Autodesk/maya2013/mentalray/shaders/lm2DMV_v2.dylib

Copy the lm2DMV_v2.mi mental ray "include" file to:

/Applications/Autodesk/maya2013/mentalray/shaders/include/lm2DMV_v2.mi

Copy the AElm2DMV_v2Template.mel "AEtemplate" script file to either the Maya AEtemplates directory or your user account's scripts directory:

Maya 2013 AE templates directory:

/Applications/Autodesk/maya2013/Maya.app/Contents/scripts/AETemplates/AElm2DMV_v2Template.mel

User scripts directory:

~/Library/Preferences/Autodesk/maya/2013-x64/scripts/AElm2DMV_v2Template.mel

Copy the lm2DMV shader icon to your user account's Maya icons directory:

/Library/Preferences/Autodesk/maya/2013-x64/prefs/icons/render_lm2DMV_v2.png

Print Friendly

flattr this!

10 Responses to “lm2DMV for Maya 2011 64-bit on Mac OS X”

  1. Boris says:

    Thank you man. I've been searching for this info a lot. Great work.

  2. Matthew Ingram says:

    Hey mate! Thanks for your work on this. Very cool.

    Presumably one must still edit the maya.rayrc file still or not? As per:

    - Add the following lines after similar declarations in the maya.rayrc file: (The rayrc file is in the Maya/mentalray directory)
    link "{MAYABASE}/lib/lm2DMV_v2.{DSO}"
    mi "{MAYABASE}/include/lm2DMV_v2.mi"

  3. Andrew says:

    You can edit the maya.rayrc file if you want to. However, newer versions of Maya ( like Maya 2011 ) appear to automatically load mental ray shaders that are in the mental ray include and lib folders.

  4. chiggster says:

    Thanks so much. When the old .so didn't work, I was HOPING someone made a new one. You rock.

  5. Göran Forsling says:

    Works like a charm! Thanks alot man, been looking for this for months! :-D

  6. Alejandro says:

    Thank you... I was all the day searching a solution...

  7. Panika says:

    Hi, thanks for compiling the shader, it works fine in maya 2012, but i cant get it work in maya 2013. Ive noticed that mentalray folder moved outside .app folder, so i copied files there, but shader wont appear in the list. Do you have any suggestions what to do?

    thanks in advance

  8. Andrew Hazelden says:

    Hi Panika.

    With Maya 2013 the location of the "mentalray" folder has changed.

    The mentalray folder has been moved outside of the Maya.app application package directory and is now located at:

    /Applications/Autodesk/maya2013/mentalray/

    Here is a set of new shader installation instructions:

    Copy the lm2DMV_v2.dylib shader "lib" library file to:

    /Applications/Autodesk/maya2013/mentalray/shaders/lm2DMV_v2.dylib

    * * *

    Copy the lm2DMV_v2.mi mental ray "include" file to:

    /Applications/Autodesk/maya2013/mentalray/shaders/include/lm2DMV_v2.mi

    * * *

    Copy the AElm2DMV_v2Template.mel "AEtemplate" script file to either the Maya AEtemplates directory or your user account's scripts directory:

    Maya 2013 AE templates directory:

    /Applications/Autodesk/maya2013/Maya.app/Contents/scripts/AETemplates/AElm2DMV_v2Template.mel

    User scripts directory:

    ~/Library/Preferences/Autodesk/maya/2013-x64/scripts/AElm2DMV_v2Template.mel

    * * *

    Copy the lm2DMV shader icon to your user account's Maya icons directory:

    /Library/Preferences/Autodesk/maya/2013-x64/prefs/icons/render_lm2DMV_v2.png

  9. panika says:

    Thank you for such a quick response, it worked like a charm. I'm an IT guy in small post/production company and I'm much more into After Effects and it stuff then 3D at all, and all these same named folders repeating in different structures made me headache.

    Thank you sir, you have saved my day :)

  10. [...] check out this WEBSITE for the way to install maya Vblur [...]