Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Install shader (https://simplymaya.com/forum/showthread.php?t=27716)

farbtopf 05-10-2007 06:06 PM

Install shader
 
Hi,

I've just tried to install the z depth shader for mental ray, for about an hour! And of course it doesn't work. I've spend quite some time messing with the "maya.rayrc" file following the step by step instructions.
Now is there any comprehensive way of installing additional shaders? Without writing pieces of "code" maybe?
I'm using maya 2008 on a mac and any help would be greatly appreciated.

thanks.

mirek03 06-10-2007 01:23 AM

this has had me completely confused for years too.., so I would love o know.., how does one use these shaders that can be downloaded from all corners of the web.., mostly they seem ascii files (something like that anyway)

The Architect 06-10-2007 01:46 PM

I'm bored, so could you post a link to the instructions or something so I can take a look at them and see if I can get any info out of them?

farbtopf 06-10-2007 01:54 PM

1 Attachment(s)
thanks, if you want to have a look, here's the package

farbtopf 06-10-2007 01:56 PM

1 Attachment(s)
and this is my maya.rayrc file with the modifications I made, it looked nothing like the one in the example in the first place anyway, so I wasn't too surprised when it didn't work. I just wished there was a simple button for installing add ons.

The Architect 06-10-2007 02:07 PM

Doesn't look that difficult. I think all you have to do is to add this line to the file they mentioned in the instructions:

registry "{USER}" value "[user_folder]/Library/Preferences/Alias/maya/6.0/mentalray" end registry

... under this one:

registry "{MAYABASE}" value "/Applications/Alias/maya6.0/Maya.app/Contents/mentalray" end registry


And add this one:

MI_CUSTOM_SHADER_PATH = [user_folder]/Library/Preferences/Alias/maya/6.0/mentalray/include

in the section where the lines being with 'MI_CUSTOM_SHADER_PATH'



Rember to replace the 'user_folder' bits in the lines with the path to your actual user folder. If Mac OS is similair to Linux (which I read it is), your home folder should be like this: /home/your user name

Hope this helps...

farbtopf 06-10-2007 02:16 PM

thanks for your help, I've done all this, but the shader still doesn't show up in my mental ray nodes...
But as I said my maya.rayrc looked very different from the example one so in some cases I had no idea where to place stuff.

cheers

The Architect 06-10-2007 02:20 PM

You said the maya.rayrc file was modified, so what does the original look like?

From what I've seen the maya rayrc is a registry, so the entries you put into it have to be in certain places and in a certain way. It may look different, but I think its probaly the same regardless...

farbtopf 06-10-2007 02:26 PM

1 Attachment(s)
the original one looked just like the one you saw but without the lines I had to add for the z-depth shader.
I've attached the original one as well

The Architect 06-10-2007 02:47 PM

OK, I've had another look and I have to admit I was wrong with the previous post. Sorry. The instructions that came with the shader are pretty confusing:

The section that deals with editing the the maya.rayrc file is badly written. It doesn't say what should be added, just 'make it look like this'.

And the maya.rayrc file is confusing too. I'm think that the lines with '#' are remarks. So what are the registry entries doing with '#' stuck in front of them?

Is the maya.rayrc file supposed to start only when there are custom modifications and addons?

farbtopf 06-10-2007 02:52 PM

You know, I have noooo idea, while maya is very user friendly, having to install plugins and add ons that way is just hostile, I removed the '#' in front of the relevant entries as well, but it didn't change a thing.

thanks a lot for your support though, at least I'm not the only one finding that annoying. -If you happen to find a way, please let me know.

cheers

The Architect 06-10-2007 03:03 PM

1 Attachment(s)
OK... I made a quick modification of the original file. You'll still have to modify the [user_folder] bits in the file to the path where your user folder is.

Hope this works, I've no idea since I can't test it.

farbtopf 06-10-2007 03:14 PM

unfortunately it didn't work. I'll double check all the paths and everything when I've got time

thanks a lot

The Architect 06-10-2007 03:20 PM

farbtopf > 'thanks a lot'

Your welcome. :)

Let us know if you manage to get it working.

farbtopf 06-10-2007 03:27 PM

Works now, thanks to you!
I think the problem is that unlike the readme says maya doesn't look in the library first. I disregarded the guys advice not to mess with the files in the actual maya package. And after I replaced the original maya.rayrc with yours and copied the assets in the actual maya folder it worked!

thanks again, so what was it you did to the maya.rayrc, I saw you added quite a lot of stuff, so I assume you know your stuff.

still adding shaders that way is a bit inconvenient especially for the not that experienced user. Maybe something they can think about for maya 2009;)

cheers


All times are GMT. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018