Start learning with our library of video tutorials taught by experts. Get started

Lighting and Rendering with mental ray in Maya

Batch-rendering passes


From:

Lighting and Rendering with mental ray in Maya

with Eric Keller

Video: Batch-rendering passes

So I'd like to show you how to set up a batch render, when you are using render layers and render passes together. So I have simple Frankensteins monster toy in this scene. I just have a very simple camera animation. So, it's just moving back and forth. The whole animation is about 48 frames. I have several render layers here. On this toy layer, I am going to render the toy, the ground, I am going to render the shadow of the ball, but not the visibility of the ball.
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

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Lighting and Rendering with mental ray in Maya
4h 56m Intermediate Jul 22, 2010

Viewers: in countries Watching now:

Lighting and Rendering with mental ray in Maya with Eric Keller shows how to master practical mental ray techniques for rendering models created in Maya. This course walks through the most efficient and innovative mental ray techniques, including direct versus indirect lighting methods, creating different types of shadows, using the new ShadowMap camera, and reusing shadow and final gathering maps. A chapter on optimizing render times and enhancing render quality is also included. Exercise files are included with the course.

Topics include:
  • Understanding computer-generated lighting
  • Creating depth map and ray traced shadows
  • Softening and shaping shadows
  • Working with global illumination
  • Lighting with the caustic settings
  • Applying physical and portal shaders
  • Adding depth of field with the Bokeh shader
  • Splitting a scene into render layers
  • Comparing render passes and render layers
Subjects:
3D + Animation Rendering Photography Lighting
Software:
Maya
Author:
Eric Keller

Batch-rendering passes

So I'd like to show you how to set up a batch render, when you are using render layers and render passes together. So I have simple Frankensteins monster toy in this scene. I just have a very simple camera animation. So, it's just moving back and forth. The whole animation is about 48 frames. I have several render layers here. On this toy layer, I am going to render the toy, the ground, I am going to render the shadow of the ball, but not the visibility of the ball.

It's been turned off in this render layer, using render layer overrides. chromeBall, I am going to render just the ball and the reflection of the monster on the ball, and then I have an additional render layer, which has a colorMask, so I have this blue applied to the ground plane, green for the ball and red for the monster toy. So if I open up the Render Settings window and take a look at the passes that I am going to render, for the toy layer, I have an ambient occlusion pass, a diffuse pass, and a reflection pass, and a specular pass.

And I came up with custom names for these passes, which will make it much more easier to see what's going on. I am going to bring them into After Effects. To do this, just double-click on the pass, and in the renderpass field, type in a custom name. It's a great way to help organize your files. Also remember, since I want to render an ambient occlusion pass, remember to go in your Features tab and turn on ambient occlusion. This is an easy thing to forget, and you don't want to come the next day to find that you've rendered out 2,000 frames of nothing, because you forgot to turn this on, so make sure you turn that on.

I am going to switch to the chromeBall render layer, and you will see these are the same thing, ball ambient occlusion, ballDiffuse, reflection, and specular. In some cases, of course, I can reuse the same pass for both render layers, but I would want to demonstrate other files look once you create a batch render. And if I switch to the color mask, all these will pop up to the same passes, meaning there is no associate passes. So I don't have any passes associated with this render layer.

It's just that render layer. So I just want to do a couple of things to set this up to get it ready for the batch render. I am going to switch back to the toy layer, and I want to make sure that I am going to render out a sequence. So I will set the Frame/Animation Extension field to name, number, extension, and I would like to put my frame padding at 4, so that I have a number of zeros before the number of the frame. After Effects is fairly forgiving if you don't put it frame padding here, but Nuke is not.

If you are getting composite with the Nuke, make sure you have some frame padding in there, and I am going to go to my Frame Range and set my End frame to 48. And then in order to organize these a little bit better, I am going to type in the File name prefix, RenderPass. You can find these just by right- clicking and choosing right here, just a little secret there for you. I am going to hit Enter, so what will happen is it's going to create a folder named after my render layer, so there will be a folder called toy, and a folder called chromeBall, and a folder called colorMask, so different folder in my Images Directory for each rendered layer.

Within that directory, it's going to name the image after my renderpass, so I will have an image called toyAO, toyDiffuse, toyReflection, toySpecular. I will actually create an image sequence name for each one of those. The other thing I like to do is, since I am not rendering render passes for the colorMask, I am going to create a render layer override for the file name prefix. Notice this turns to orange. And here I am just going to right-click, and instead of render pass, I am going to choose render layer.

So in this case, for colorMask, I am just going to have sequence named colorMask, so it's not going to add anything that I don't want. But since I have created a render layer override for this, you will notice that it's just on for that layer. If I switch to chromeBall, this should switch back to RenderPass - same with the toy. You can see this is toy/renderpass. The last few things I always like to double check. Make sure I am using the right camera, in this case, the renderCam. That's the one I want. And I can disable the Default Light.

I don't need that. And I have, one more time, double-check my ambient occlusion and at this point, I am ready to create my batch render. So I'll open the Script Editor, so I can see the progress, and I am going to choose Render > Batch Render. And while you are watching the Script Editor update for the batch render, it's just going to show you MasterBeauty. And you will see, in a moment here, it's not actually going to list out the name of the passes, so it will say here is my toy directory and here is the name of the file MasterBeauty.

You won't see a separate label for the render passes, because remember those are coming out of the frameBuffer that's being created here. So don't panic if you don't your Ambient Occlusion pass or your Diffuse pass, and so on and so forth; it should be created as this is rendering. So once the batch render has completed, the next step will be to import the files into a compositing program, such as Adobe After Effects, and piece together the composite from the rendered images created by the render passes.

There are currently no FAQs about Lighting and Rendering with mental ray in Maya.

Share a link to this course
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.
Upgrade now


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.

Upgrade now

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 preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



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.

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