Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 01-01-2010 , 09:49 PM
Registered User
Join Date: Dec 2009
Posts: 6

Mental Ray Render Passes

I'm trying to render out multiple lighting passes to composite my image, and I'm really struggling to figure out how to do it.

Basically I want the following passes of my object:

-ambient
-specular
-depth
-reflection
-shadow
-diffuse

I've tried Render Layers but they don't seem to work with mental ray - the image is the same for each layer. From what I can see, I need to do something with Framebuffers but can't figure out what..

I'm using Maya 2010.

Thanks!

# 2 01-01-2010 , 09:54 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
I haven't used passes much yet, but try going into render settings > render using mental ray. Under the Passes tab > Create new render pass icon (grey and yellow). That will give you the list of possible passes. Hope that gives you something to go on.

# 3 02-01-2010 , 01:06 AM
ben hobden's Avatar
Subscriber
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
render layers do work with mental ray, at least it does with no hassle in 2008, i know they got a revamp in newer versions. are you sure youre rendering each layer seperately



sorry, i reread more carefully, i forgot to distinguish between passes and layers...ignore me...


Last edited by ben hobden; 02-01-2010 at 01:09 AM.
# 4 02-01-2010 , 10:27 AM
Registered User
Join Date: Dec 2009
Posts: 6
Yeah it seems like the only way to do it is to go all techy and install external plugins/scripts to get it working. Pain in the arse! I've resorted to using V-Ray in 3dsmax for now unless theres a way I can get Mental Ray in Maya working.

# 5 02-01-2010 , 01:46 PM
ben hobden's Avatar
Subscriber
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
I think digital tutors has a good render passes tutorial in its mental ray section. A months subscription isnt so expensive...

# 6 02-01-2010 , 04:58 PM
Registered User
Join Date: Mar 2009
Location: india
Posts: 1
u have selected all objects on every layers ....try slct seperate obj on
diffrent layers then it will work
gud luck

# 7 02-01-2010 , 05:40 PM
Registered User
Join Date: Dec 2009
Posts: 6
I want each object on every layer though, I just want different render passes on each image!

Looks like the only way to do it is to install shader plugins and scripts, not really something I know how to do or want to mess with.

V-ray in 3DSMax is working for me now so I think I'll just stay with this, even though I hate the 3DSMax interface in comparison to Maya user added image

# 8 02-01-2010 , 08:08 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Did the passes tab in the render settings not work?

# 9 02-01-2010 , 08:25 PM
Registered User
Join Date: Dec 2009
Posts: 6
Nope, that option seems to be greyed out for me :\ I can click the tab, but can't add any passes..

edit - actually I think that may be working now for some reason. If I select a Render Layer, it appears in the Scene Passes thing and I can choose whether to add to Associated Passes (whatever that means)..


Last edited by toddersby; 02-01-2010 at 08:36 PM.
# 10 02-01-2010 , 10:38 PM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125

Originally posted by toddersby
Looks like the only way to do it is to install shader plugins and scripts, not really something I know how to do or want to mess with.

not sure where you got that idea from... O_o

anyway, hope this attached picture can clear things up for you! user added image

Attached Thumbnails



that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
# 11 03-01-2010 , 11:33 AM
Registered User
Join Date: Dec 2009
Posts: 6
Thanks, that does help a lot!

After setting all that up, how do I render every pass with one click, just do a standard Batch Render? Oh and is it possible to render as a layered PSD with every pass on it? I can't seem to get that to work, it just renders one layer..

# 12 03-01-2010 , 06:31 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Maya 2010 has what used to be Toxik built into it, so I'm sure there is a way to get those passes directly into the compositing module, but since I don't have 2010 I don't know the exact method.

# 13 03-01-2010 , 10:24 PM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125
there are two ways you could do it (That i know of)

first way is to use render preview
when you use that the images from each pass is stored in a corresponding folder inside the tmp folder of your images folder in your project (provided you've used the default project settings)
so... whereever your images are places when you do a render in the render preview and save it out

so.. if your layer was called layer1 then it would be in images/tmp/layer1/masterbeauty
or something like that

alternatively you can use the batch render to render one frame and it'll put the images inside the images/layer1/ folder

i wondered where they went at first too and then i went searching in the tmp folder because i found that was where all the tempory images were stored when you do a render preview and saw the folders there.

do note that the images take on the format that you have set in the render options. so if you have images saved out as psd then it'll appear as a psd. they are an iff file by default




that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
# 14 07-05-2010 , 04:22 PM
Registered User
Join Date: Feb 2007
Posts: 1
Is there a way to remove the master beauty from each render pass?

Thank you,
Craig

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads