XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : How to install a MR shader on osx ?

04-28-2009, 12:23 PM
Hi there,

sorry for this newbie question but I just downloaded this shader :

and don't know where to copy the "icons" / "include" / "lib" folders contained in the archive.

It is said : " Unpack the compression file and copy "icons" folder and "mentalray" folder to Maya setup directory ."

I copied the files inside Maya.app>Contents>mentalray>include and lib. I can see the shaders but they don't work.

I get an error at render :

API 0.0 error 301031: call to undeclared function "al_Division_cubemap_lens"
API 0.0 error 301032: while defining camera "cameraShape1": undefined shader "al_Division_cubemap_lens1")

can anybody help ? thanks

04-28-2009, 06:47 PM
This might help you: If youre in the mental ray directory, theres a maya.rayrc file. open it with a texteditor. Normally you have to declare where mental ray should look for the shader files.

So at the end of my maya.rayrc file there are two more lines:

link "{MAYABASE}/lib/mix20layer.{DSO}"
mi "{MAYABASE}/include/mix20layer.mi"

which tells mental ray where it finds the new installed files.

04-29-2009, 07:05 AM
thanks for your reply !
I put the lines at the end of the maya.rayrc file but still no luck.

Warning: (Mayatomr.Custom) : /Applications/Autodesk/maya2009/Maya.app/Contents/mentalray/include/mrsl.mi: couldn't find shader library
API 0.0 error 301031: call to undeclared function "al_Division_cubemap_lens"
API 0.0 error 301032: while defining camera "cameraShape1": undefined shader "al_Division_cubemap_lens1"

that's driving me crazy !

04-29-2009, 08:15 AM
Did you put the lines i wrote? My lines were just an example. You have to edit the maya.rayrc file with these lines: (which are mentioned in the install manual)

link "{MAYABASE}/lib/mrsl.{DSO}"
mi "{MAYABASE}/include/mrsl.mi"

04-29-2009, 08:20 AM
I put the 2 lines for this specific shader at the end of the file...

I wonder if it is working on intel mac as this shader is quite old (2006)

04-29-2009, 08:38 AM
I think you can figure that out, bye using the rosetta emulation mode. Then every non universal binary shader should work. But first, its significant slower in rosetta emulation and for me its only available in maya 2008, not in 2009. Link (http://support.apple.com/kb/HT1730?viewlocale=en_US) .

04-29-2009, 10:11 AM
yes Rosetta doesn't work with maya 2009.
My only chance is to get a recompiled version of the shader...

04-29-2009, 02:06 PM

04-29-2009, 02:38 PM
thanks for the tip ash-man !

by the way, do you know anything about recompiling .so files for intel mac ?

CGTalk Moderation
04-29-2009, 02:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.