Mental Ray - Shaders


I ran into this problem too only a few days ago and couldn’t find any answer online apart from “Mental Ray can’t…”. If it can, please tell us! :slight_smile:


With a quick test I see no problems with the normal maps in mental ray. I get the same result from both VRay and mental ray:

Using this map I found on a google search for normal map:

That being said, if your gamma isn’t setup correctly and you load the normal map with the wrong gamma setting I’m sure you’ll run into some problems like this:


Hmmm I definitely can’t seem to get it to work, but I’m still on Max 2008 - perhaps support was added in later versions?


I made a test with teapot and everything works, strange that it didn’t work before, looks like it was something wrong with gamma.

left - real teapot, right - normal map


Transparent water…i’ve got to be missing something simple here, but i have no idea what.

I have a box, about 12’ x 2’ x 4". Objects may have been touching it’s sides perfectly (coplanar faces), but i’ve since deleted everything but an xref’d site (30’ below it) and stuck a teapot a couple inches under the bottom face. Nothing I do allows me to see throw the water. My best guess is that the reflection is too strong, but lowering it makes the box darker. I’ve upped the samples in the refaction section to like 200. I’ve adjusted the 0 and 90 deg reflection values, used IOR, etc, and i’ve set it to thin wall and solid in the advanced section, and the material comes out solid no matter what.

This happens whether i use a standard AD and adjust the parameters myself, use the water preset (which says it has no transparency I know) and adjust it. Surely seeing through the water just a bit can’t be that hard of thing to achieve.

What is it that i’m missing?

FWIW, the xref scene has a daylight system in it set to MR Sun and MR Sky and the current scene is using MR Physical Sky as the env map…


You could check some of the A&D water sample scenes that are on the second DVD to help track down the problem with your scene/settings.


Thanks Jeff…turns out, that’s what you get for rendering an image the size of your screen. I hadn’t messed with water or anything transparent in months, so no need for refraction. Turns out the refraction depth was set to 0. I got tired of waiting and set the reslution lower for a faster render, and voila, the big ‘0’ sticking out like a sore thumb on the bottom of that tab under the render window. Real homer simpson ‘Doh!’ moment there. :slight_smile:

I knew as soon as posted the answer would be something easy i missed. Just had to go public with it to look to get to that facepalm moment I guess :slight_smile:


Hey guys,
Anyone able to help me out create some nice Procedural rock texture ?
Posted here, scene file also.


For skin i wanted to add SSS fast skin + displacement, because of the displacement, but for some reason It doesn’t work. I tried both Extrude map, and direction map and tried to pump up the strength but I get no effect no matter what. Please help me with a tutorial or an explanation. Do I have to modify some settings in rendering? or do I need to do something else? :bounce: :bounce: :bounce:


Also can anyone tell me how do I get the right “Scale Conversion Factor” for my sss skin? :banghead: :banghead: :banghead:

It would be nice if someone would upload their skin material :slight_smile: But I guess I wouldn’t take it cause it wouldn’t feel like my work to use it…


Comar93 - Check out my thread here aboutdisplacement

Also wouldnt worry about scale conversion factor, focus on tweaking your other settings first.


Thanks. :thumbsup:


I have a bunch of materials created in gamma 1.0 and now i’m working in 2.2.
Is there an easy way to convert the values?
Maybe scripting, a plugin, mathematical formula, magical potion… anything?
All my colors and reflections are inaccurate and it’s looking to be such a pain to fix everything.


Hello guys, i have a question here :

Is it possible to use the raytrace “exclude/include” reflection option (like using it on lights) on the A&D material ? i know it might be some advanced shader stuff involved …but i hope someone knows the answer
-to better understand for what i’m trying to use this - i have a lightplane that i want to be reflected only by one object in my scene .

  • using a light doesn’t even get close to looking as good as the lightplane option;
  • changing my materials to raytrace isnt one of my options -because of its disadvantages vs A&d mat(except for local reflection control , LOL ) ;

The materials i use don’t have the include/exclude reflection option(like the raytrace) -they are A&D shaders;so i thought there might me a way to implement that into MR arch viz shader


I think mr Raytype Switcher does what you want.

It’s hidden and you can enable it. Jeff Patton explains how to do it here:
(but his post is about color bleed)

Put black 0,0,0 in reflection and you’re set, if I understood what you really wanted.


i’ve tried it ,thanks for point ,but doesn’t seem do help :frowning: -can’t control the reflection assigning the switcher to diffuse slot- just its color ;or maybe it can help in a way,but i cant see how;
-to be more clear:
basically i want to exclude all objects from scene but one, from receiving reflections from one bouncecard (a self-illuminating plane)-wich i have more in the scene.-just like having a light instead of the lightplane and use the include option , select one object in the scene -so it will be the only one receiving light&shadow from that light -just that here im concerned about reflections -i could do that if i was using the raytrace shader,but thats doesn’t work for me -as i said in my previous post .can’t be more clear than that -if you still don’t get what i mean ill post an image too.
if anyone has any idea ,ill be very happy to listen it :stuck_out_tongue:
cheers and thanks again for the suggestion


ah sorry I didn’t read your first post well.


You could download a custom shader to help with that problem. For example at you can download a shader named “BA_illum_visbool v24.0” that gives you control over which objects are visible to other objects.

See attachment.


thanks jeff;that does the trick :wink:


[font=Arial][font=Arial]Hi All,

I’ve modelled an ebook reader and I am trying to sort out the materials. I’m having an issue with the textured plastic on the end and bottom of the reader. I know in real life, as you can also in the attached pictures, the plastic has a bumpiness to it. I’ve created an A&D material and put a speckle in the bump map slot and I’ve been playing with the reflectivness setting to get the right look.

When I get the texture right the object is too shiny as you can see in my render but I can’t seem to get it right.

I’m wondering if someone could help me solve this and also it there it any tip on how best to recreate materials as I can never seem to be able to properly.

My render:

Reference Shot 1

[/font][/font][font=Arial] Reference Shot 2[/font]