Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Editing render passes

From: Lighting and Rendering with mental ray in Maya

Video: Editing render passes

The Render Pass Editor allows you to easily manage or render passes for each render layer. To access this interface, I can just go to Window > Render Editors > Render Settings. You'll notice that in the Render Settings I have Common, Passes, Features, Quality, Indirect Lighting, Options. So the interface for Passes is found under the Passes tab. So you will notice that at the top of the Render Settings window, I have a menu, and this has the render layers that I have already set up.

Editing render passes

The Render Pass Editor allows you to easily manage or render passes for each render layer. To access this interface, I can just go to Window > Render Editors > Render Settings. You'll notice that in the Render Settings I have Common, Passes, Features, Quality, Indirect Lighting, Options. So the interface for Passes is found under the Passes tab. So you will notice that at the top of the Render Settings window, I have a menu, and this has the render layers that I have already set up.

So let's go to the toy render layer. You will notice that I already have a couple of passes set up: a reflection pass and a specular pass. So let's take a look at how this is divided. If I am in the render layer toy, what's going on here in the Scene Passes area up here, and what's going on in the Associated Passes? This particular interface right here, this window is kind of like a bucket that holds all the available scene passes that I have already created. This down here, Associated Passes, lists those passes that are associated with this render layer, the toy render layer.

So in other words, if I switch back to the masterlayer, you are going to see now in the Scene Passes section I have reflection, reflection1, specular, specular1. If I switch to the toy layer, I get one reflection pass moves down here, as well as the specular one. So these are the passes associated with the toy layer, and if I switch to the chromeBall layer, you see it switches. Now we have reflection 1, and specular 1 because these are the passes associated with the chromeBall layer.

These are just additional layers that have been created for the scene. So let's start from a blank slate here, so we can see how we can use the editor to easily create, add, and move passes between various different render layers. So what I am going to do is I am going to switch back to the masterlayer here, and I am going to select each one of these layers, and these icons here are just an easy way to manage the layers. This one that has the clapboard with minus sign next to it, it says Delete selected render passes. So I am going to delete this specular pass by clicking on that, and I will delete these other three, as well.

So now, I don't have any render passes in my layer anymore. They have been removed. I can prove this by switching render layers; you see no more render passes. So let's switch to the toy layer. I'm going to add a new render pass to the toy layer using the Render Passes Editor interface. In this case, I will just click on the Create new render pass icon, and this brings up a list. In this list we see all of the preset render passes that are available to us.

It's very rare that you are going to use all of these. Mostly, you are just going to use three or four, depending on how complex you want to make your render passes. In this case, I am going to create a Shadow pass, and I am going to scroll up in here, and let's see. I will make an Ambient Occlusion pass. I am going to Ctrl+Shift on Ambient Occlusion. So I have both Shadow, and Ambient Occlusion selected, and I'm also going to click Camera Depth Remapped.

So I am going to create these three passes. So I will create them, and here they are. Now they appear in the Scene Passes area. So this means that they are available for any of the render layers in the scene. So what I like to do is I'd like to associate them with the toy layer. So I have toy selected here in Render layer. What I want to do is move these from up here to down here, to the Associated Passes section. So I'll just select Shadow and click on this little green check box right here, and this just moves this down here; same with that, and then AO stands for Ambient Occlusion, and I will select that.

If I wanted to move these out of the Associated Passes area, all I have to do is select them. I can actually Shift+Select all of them and click on this icon right here, and this is just going to move them back up here, which means that this render layer will no longer use any of those render passes. So let's just Shift+Select them again and move them back down. Now, what I can do is I want to make some changes in these associated render passes for the toy layer. So what I can do is the first thing I will do is I will double-click on depthRemapped.

By double-clicking on it, it actually opens up the depthRemapped render pass in the Attribute Editor. So this means that I can edit the settings. If I wanted to, I can actually change the type of render pass that it is. I could change this to Specular, Reflective, or whatever, but since I have already decided on Camera Depth, I will just leave that alone. I know from personal experience working with the depthRemapped render pass that the point of this pass is it's going to create a render pass based on the distance of the objects here from the camera, so the objects will be shaded.

The lighter parts of the objects will be closer to the camera, the darker parts of the object will be farther away, and this is a great type of render pass to use when you like to do things like Depth of Field effects in the composite after you have rendered the entire animation, or the entire image. Let's take a look at a render and see what happens when I actually render it, because actually all these associated passes, with the exception of shadow, both of these are going to have some problems. So I would like to show you what those problems are ahead of time. So I have got the toy layer selected, and I am just going to create a render here.

We will just see the regular toy by itself, and I am going to load the render pass. So if I load the shadow, I am guessing that this one will look just fine. Here is our shadow. Just remember that when you composite this, you may want to invert this so that this is dark. But if I load the depthRemapped pass, I am going to see a very dim image, almost black. In some cases, this might be completely black; in some cases, it might be completely white. So what's going on there? Well, the problem with this render pass is it's determining the depth - if I double-click on this to open up the Attribute Editor - is determining the depth based on these values.

The near clipping plane is the area close to the camera; the far clipping plane is the areas far away from the camera. So this is basically a thousand units away from the camera. So I need to lower this value in order to bring the back of the rendered frame closer, so that the range of depth- mapped values is more visible in the render pass. I will bring this down to 100, and click on this, and if I lower the render pass, now we are getting something that's a bit more usable.

So I will bring this down even more, maybe down to 50; cut it in half, and now when I load the render pass, you can see that this is a little bit easier, so you can see the different parts of the object. In this case, the darker parts of the object are closer to the camera, and the lighter parts are farther away. So I can continue to tune the way this render pass works by using the attributes here in the Attribute Editor.

If I take a look at the Ambient Occlusion pass, let's open up Render view again, and do File > Load Render Pass > AO, this is what I get. I get something that looks like an alpha. I am not seeing any Ambient Occlusion shadowing; this is actually even easier to fix, but it's an easy thing to forget. So in this case I just need to go to my Features tab, and under Features, there is an option here for Ambient Occlusion. If this isn't on, it's not going to render the ambient occlusion in the pass, and this is an easy thing to forget.

So make sure you turn that on. I'll do another render, so now if I go to File > Load Render Pass > AO, now I see my ambient occlusion, and it's working nicely. So I am going to go back to my Passes, I will double-click on AO for ambient occlusion, and this will bring up the attributes for this particular pass. So I can change things on here, for instance the number of channels, if I want to include an alpha channel, I'll set that to 4, basically the different settings.

I think one of the most useful areas, and this is new to Maya 2011, is the use Local A0 settings. If I turn this on, I can adjust the number of Rays, to adjust the quality. I can also change the Maximum Distance and the Spread. The Maximum Distance is going to determine how far mental ray looks in the scene to determine how dark to make the various areas of ambient occlusion. This is in scene units. So a scene unit in this particular scene is represented by the grid, so these squares right here.

So what I might do is I will probably set this to something like maybe for this particular monster model I'll set it to 2.000, and so on and so forth, and you can just continue to edit the way the ambient occlusion looks by turning on this option. Once again, I can go to the chromeBall. Now that I have edited the settings for these render passes, if I switch to the chromeBall render layer, you will see that these pop back up to the scene passes. Since I have already determined the settings for these passes, I can select them whichever ones I want - maybe all of them or just individual ones, click on this - and now associate those render passes with this render layer, as well.

So the nice thing about the Render Layer Editor is that once I have established how I want my render passes to work, I can mix and mash all I want. If I wanted a different type of ambient occlusion for this render layer, I could just create a new Ambient Occlusion pass, and notice that it says AO1. If I wanted to rename this, I could call this ballAO, or something like that, so I know that it goes with this render layer, and simply click on this icon to remove that ambient occlusion layer, select this, move that down, and click on this icon with the green check box to move the ballAO pass down to the Associated Passes.

Double-click on this to open its Attribute Editor, and now I can have completely different settings for this Ambient Occlusion pass than for this one. So this is what makes passes very convenient and easy to work with.

Show transcript

This video is part of

Image for Lighting and Rendering with mental ray in Maya
Lighting and Rendering with mental ray in Maya

59 video lessons · 8239 viewers

Eric Keller
Author

 
Expand all | Collapse all
  1. 3m 46s
    1. Welcome
      1m 32s
    2. Using the exercise files
      2m 14s
  2. 19m 8s
    1. What is a CG light?
      1m 22s
    2. Types of CG lights
      10m 55s
    3. Direct lighting
      4m 48s
    4. Indirect lighting
      2m 3s
  3. 53m 20s
    1. Decay rate
      6m 30s
    2. Previewing lighting and shadows
      2m 37s
    3. Creating depth map shadows
      1m 57s
    4. Troubleshooting depth map shadows
      2m 38s
    5. Shadow map overrides
      5m 30s
    6. Using the shadow map camera
      5m 31s
    7. Saving and reusing shadow maps
      2m 48s
    8. Creating raytraced shadows
      1m 56s
    9. Adding softness to raytraced shadows
      3m 42s
    10. Creating area light shadows
      5m 11s
    11. Sample: mental ray area light
      4m 23s
    12. Setting area light visibility
      8m 7s
    13. Creating soft shadows with spot lights
      2m 30s
  4. 43m 35s
    1. Setting global illumination for interiors
      2m 33s
    2. Tuning global illumination
      5m 56s
    3. Global illumination photons
      1m 12s
    4. Activating caustic light effects
      3m 28s
    5. Tuning caustic settings
      3m 35s
    6. Setting caustic light effects on metal
      2m 35s
    7. Using final gathering for indirect lighting
      2m 9s
    8. Tuning final gathering
      4m 2s
    9. Reusing final gathering maps
      3m 21s
    10. Adding light with shaders
      5m 27s
    11. Creating final gathering maps for animation
      4m 26s
    12. Combining final gathering with global illumination
      4m 51s
  5. 1h 2m
    1. Activating the Physical Sun and Sky network
      2m 33s
    2. Tuning the Physical Sun and Sky settings
      7m 18s
    3. Applying physical light shaders
      8m 54s
    4. Applying image-based lighting
      8m 57s
    5. Tone mapping
      6m 23s
    6. Applying portal light shaders
      7m 45s
    7. Creating light beams with participating media
      10m 9s
    8. Adding depth of field with the Bokeh lens shader
      10m 39s
  6. 48m 21s
    1. Introducing render layers
      6m 13s
    2. Creating render layers
      4m 28s
    3. Splitting a scene into render layers
      15m 36s
    4. Applying render layer presets
      7m 47s
    5. Setting render layer overrides
      7m 7s
    6. Creating render layer composites
      3m 52s
    7. Organizing renders with tokens
      3m 18s
  7. 42m 24s
    1. Introducing render passes
      2m 56s
    2. Comparing render passes and render layers
      6m 44s
    3. Editing render passes
      10m 41s
    4. Using appropriate materials
      5m 51s
    5. Batch-rendering passes
      5m 56s
    6. Compositing in After Effects
      6m 41s
    7. Rendering the EXR image format
      3m 35s
  8. 23m 3s
    1. Anti-Aliasing Quality
      6m 44s
    2. Setting color profiles
      2m 53s
    3. Diagnosing raytracing
      5m 7s
    4. Adjusting motion blur
      6m 57s
    5. Finding mental ray help
      1m 22s
  9. 21s
    1. Goodbye
      21s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Lighting and Rendering with mental ray in Maya.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.