zDepthDOF has been tested to run on these versions of Maya:
-
RedHat Linux Enterprise Edition:
Maya 6.0, Maya 6.5
-
Windows XP Professional 32bit SP2:
Maya 6.0, Maya 6.5, Maya 7.0, 2008
-
Mac OS X 10.4: Maya 5.0,
Maya 6.0, Maya 6.5, Maya 7.0
It is very likely though, that it will work with other versions too.
If your version of Maya is not 6.0 then you will need to adapt the installation instructions below to suit your version's folder path names.
Installation - Maya 6.0 RedHat Linux
It is best if you install zDepthDOF in your local user folder. It's a slightly lengthier process but you do not need admin privileges to install the shader.
Just follow these step by step instructions:
1.
Copy the file 'maya.rayrc' from /usr/aw/maya6.0/mentalray/ to [user_folder]/maya/6.0/prefs/
(Replace '[user_folder]' with the full file path of your local user folder.)
This is the Maya preferences file for Mental Ray. At startup Maya looks in your local user folder first to see if a prefs file is present, if so Maya uses it. Otherwise the default 'maya.rayrc' file (from the original location) gets used.
2.
Edit 'maya.rayrc' to e.g. this:
#*****************************************************************************
# Copyright 1986-2003 by mental images GmbH & Co.KG, Fasanenstr. 81, D-10623
# Berlin, Germany. All rights reserved.
#*****************************************************************************
# Evaluated at startup time of the plug-in to fill the mental ray registry.
#*****************************************************************************/
registry "{MAYABASE}" value "/usr/aw/maya/mentalray" end registry
registry "{USER}" value "[user_folder]/maya/6.0/mentalray" end registry
registry "{SYSTEM}" value "irix" end registry
registry "{DSO}" value "so" end registry
$lookup "{MAYABASE}"
$lookup "{SYSTEM}"
$lookup "{DSO}"
registry "{MRMAYA_START}"
link "{MAYABASE}/lib/base.{DSO}"
link "{MAYABASE}/lib/physics.{DSO}"
link "{MAYABASE}/lib/mayabase.{DSO}"
link "{MAYABASE}/lib/contour.{DSO}"
link "{USER}/lib/zDepthDOF.{DSO}"
mi "{MAYABASE}/include/mayabase.mi"
mi "{MAYABASE}/include/base.mi"
mi "{MAYABASE}/include/physics.mi"
mi "{MAYABASE}/include/contour.mi"
mi "{USER}/include/zDepthDOF.mi"
echo "mental ray for Maya - startup done"
end registry
$lookup "{MRMAYA_START}"
This registers the zDepthDOF shader with Mental Ray.
If your 'maya.rayrc' file looks different, especially if it has more 'link' and 'mi' entries, leave them as they are as these are for other shaders previously installed. Important is the addition of the three highlighted lines.
3.
Add this line to the file [user_folder]/maya/6.0/
Maya.env (create the file if it isn't already present):
MI_CUSTOM_SHADER_PATH = [user_folder]/maya/6.0/mentalray/include
This tells Mental Ray where to look for custom shaders.
4.
Copy 'zDepthDOF.mi' to [user_folder]/maya/6.0/mentalray/include/
This is the Mental Ray shader description file, containing info about the shader's user variables.
5.
Copy 'zDepthDOF.so' to [user_folder]/maya/6.0/mentalray/lib/
The actual shader DLL.
6.
Copy 'render_zDepthDOF.xpm' to [user_folder]/maya/6.0/prefs/icons/

This is the zDepthDOF icon. It will show up in Maya's Hypershade under 'Create mental ray Nodes' in the bottom section 'Miscellaneous'.
7.
Copy 'AEzDepthDOFTemplate.mel' to [user_folder]/maya/6.0/scripts/
This is the user interface MEL script for zDepthDOF's Attribute Editor settings.
8.
And finally make sure Mental Ray is up and running as zDepthDOF only works with Mental Ray. (It does not work with any other renderers like 'Maya Software' or 'Maya Hardware'.)
To do so, go to Maya's Windows menu -> Settings/Preferences -> Plug-in Manager and ensure 'Mayatomr.lib' is set to 'loaded' and 'auto load'.
Installation - Maya 6.0 Windows XP Professional
Just follow these step by step instructions:
1.
Edit your 'C:\Program Files\Alias\Maya6.0\mentalray\maya.rayrc' file.
For zDepthDOF you need to add one line each at the end of the 'link' and 'mi' entries:
#*****************************************************************************
# Copyright 1986-2003 by mental images GmbH & Co.KG, Fasanenstr. 81, D-10623
# Berlin, Germany. All rights reserved.
#*****************************************************************************
# Evaluated at startup time of the plug-in to fill the mental ray registry.
#*****************************************************************************/
registry "{MAYABASE}" value "[your_maya_application_path]/mentalray" end registry
registry "{SYSTEM}" value "irix" end registry
registry "{DSO}" value "so" end registry
$lookup "{MAYABASE}"
$lookup "{SYSTEM}"
$lookup "{DSO}"
registry "{MRMAYA_START}"
link "{MAYABASE}/lib/base.{DSO}"
link "{MAYABASE}/lib/physics.{DSO}"
link "{MAYABASE}/lib/mayabase.{DSO}"
link "{MAYABASE}/lib/contour.{DSO}"
link "{MAYABASE}/lib/zDepthDOF.{DSO}"
mi "{MAYABASE}/include/mayabase.mi"
mi "{MAYABASE}/include/base.mi"
mi "{MAYABASE}/include/physics.mi"
mi "{MAYABASE}/include/contour.mi"
mi "{MAYABASE}/include/zDepthDOF.mi"
echo "mental ray for Maya - startup done"
end registry
$lookup "{MRMAYA_START}"
This registers the zDepthDOF shader with Mental Ray.
If your 'maya.rayrc' file looks different, especially if it has more 'link' and 'mi' entries, leave them as they are as these are for other shaders previously installed. Important is the addition of the two highlighted lines.
2.
Copy 'zDepthDOF.mi' into folder 'C:\Program Files\Alias\Maya6.0\mentalray\include\'.
This is the Mental Ray shader description file, containing info about the shader's user variables.
3.
Copy 'zDepthDOF.dll' into folder 'C:\Program Files\Alias\Maya6.0\mentalray\lib\'.
The actual shader DLL.
4.
Copy 'render_zDepthDOF.xpm' into folder '%USERPROFILE%\My Documents\maya\6.0\prefs\icons\'.

This is the zDepthDOF icon. It will show up in Maya's Hypershade under 'Create mental ray Nodes' in the bottom section 'Miscellaneous'.
5.
Copy 'AEzDepthDOFTemplate.mel' into folder '%USERPROFILE%\My Documents\maya\6.0\scripts\'.
This is the user interface MEL script for zDepthDOF's Attribute Editor settings.
6.
Make sure Mental Ray is up and running as zDepthDOF is a Mental Ray shader and only works with Mental Ray. (It does not work with any other renderers like 'Maya Software' or 'Maya Hardware'.)
To do so, go to Maya's Windows menu -> Settings/Preferences -> Plug-in Manager and ensure 'Mayatomr.lib' is set to 'loaded' and 'auto load'.
And Finally
There is one potential issue with the latest Microsoft Service Pack which might affect you.
Read about it in
Latest Additions.
Installation - Maya 6.0 Mac OS X 10.4
Note
Due to a compiler issue on my PowerBook the Mac version currently compiles to 650K (where it should be no more than 8-10K). I had hoped Mac OS X 10.4 with gcc 4.0 would resolve this, but it didn't. It probably takes a new G5 to get rid of the problem...
zDepthDOF is fully functional on the Mac but due to its size I do not include it in the download files. You can
download it from here.
It is best if you install zDepthDOF in your local user folder. It's a slightly lengthier process but you do not need to install files inside the Maya application package, which is never a good idea.
Just follow these step by step instructions:
1.
Copy the file 'maya.rayrc' from /Applications/Alias/maya6.0/Maya/Contents/mentalray/ to [user_folder]/Library/Preferences/Alias/maya/6.0/prefs/
(Replace '[user_folder]' with the full file path of your local user folder, which is typically '/Users/[user_name]'.)
To get to the contents inside the Maya application control-click (or right-click) on its icon and select 'Show Package Contents' from the popup menu.
'maya.rayrc' is the Maya preferences file for Mental Ray. At startup Maya looks in your local user folder first to see if a prefs file is present, if so Maya uses it. Otherwise the default 'maya.rayrc' file (from inside the Maya application package) gets used.
2.
Edit 'maya.rayrc' to e.g. this:
#*****************************************************************************
# Copyright 1986-2003 by mental images GmbH & Co.KG, Fasanenstr. 81, D-10623
# Berlin, Germany. All rights reserved.
#*****************************************************************************
# Evaluated at startup time of the plug-in to fill the mental ray registry.
#*****************************************************************************/
registry "{MAYABASE}" value "/Applications/Alias/maya6.0/Maya.app/Contents/mentalray" end registry
registry "{USER}" value "[user_folder]/Library/Preferences/Alias/maya/6.0/mentalray" end registry
registry "{SYSTEM}" value "irix" end registry
registry "{DSO}" value "so" end registry
$lookup "{MAYABASE}"
$lookup "{SYSTEM}"
$lookup "{DSO}"
registry "{MRMAYA_START}"
link "{MAYABASE}/lib/base.{DSO}"
link "{MAYABASE}/lib/physics.{DSO}"
link "{MAYABASE}/lib/mayabase.{DSO}"
link "{MAYABASE}/lib/contour.{DSO}"
link "{USER}/lib/zDepthDOF.{DSO}"
mi "{MAYABASE}/include/mayabase.mi"
mi "{MAYABASE}/include/base.mi"
mi "{MAYABASE}/include/physics.mi"
mi "{MAYABASE}/include/contour.mi"
mi "{USER}/include/zDepthDOF.mi"
echo "mental ray for Maya - startup done"
end registry
$lookup "{MRMAYA_START}"
This registers the zDepthDOF shader with Mental Ray.
If your 'maya.rayrc' file looks different, especially if it has more 'link' and 'mi' entries, leave them as they are as these are for other shaders previously installed. Important is the addition of the three highlighted lines.
3.
Add this line to the file [user_folder]/Library/Preferences/Alias/maya/6.0/
Maya.env (create the file if it isn't already present):
MI_CUSTOM_SHADER_PATH = [user_folder]/Library/Preferences/Alias/maya/6.0/mentalray/include
The text should be all on one line. This tells Mental Ray where to look for custom shaders.
4.
Copy 'zDepthDOF.mi' to [user_folder]/Library/Preferences/Alias/maya/6.0/mentalray/include/
This is the Mental Ray shader description file, containing info about the shader's user variables.
5.
Copy 'zDepthDOF.so' to [user_folder]/Library/Preferences/Alias/maya/6.0/mentalray/lib/
The actual shader DLL.
6.
Copy 'render_zDepthDOF.xpm' to [user_folder]/Library/Preferences/Alias/maya/6.0/prefs/icons/

This is the zDepthDOF icon. It will show up in Maya's Hypershade under 'Create mental ray Nodes' in the bottom section 'Miscellaneous'.
7.
Copy 'AEzDepthDOFTemplate.mel' to [user_folder]/Library/Preferences/Alias/maya/6.0/scripts/
This is the user interface MEL script for zDepthDOF's Attribute Editor settings.
8.
And finally make sure Mental Ray is up and running as zDepthDOF only works with Mental Ray. (It does not work with any other renderers like 'Maya Software' or 'Maya Hardware'.)
To do so, go to Maya's Windows menu -> Settings/Preferences -> Plug-in Manager and ensure 'Mayatomr.lib' is set to 'loaded' and 'auto load'.