New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

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

Creating ambient-occlusion materials

From: Creating Product Shots in 3ds Max

Video: Creating ambient-occlusion materials

In this movie, we're going to create ambient occlusion as a separate pass. And theoretically, we should be able to render that So, in order to do this, we're going to create shaders.

Creating ambient-occlusion materials

In this movie, we're going to create ambient occlusion as a separate pass. And we're going to do it through a manual process. And it might seem a bit roundabout. But there's a method to my madness here. There are some pretty deep issues with the way that mental ray in 3ds Max deals with ambient occlusion. As you know, we can output ambient occlusion directly from. The material, arch and design, but, unfortunately, we can't control some of the key parameters like spread and falloff.

If you want to have control over those parameters, then we have to use the separate ambient reflective occlusion node, as we did. And theoretically, we should be able to render that out as a separate render element, because, there's a render element called Shader element, that lets us choose any node in the tree, and output that separately. And that should work, but, unfortunately, it treats the entire scene like an environment, and it's almost impossible to exclude objects. There's a method where you're supposed to be able to exclude them, but it doesn't actually really work the way you need it to.

So, what we want in this case is to have ambient occlusion only on the watch face, and we want that to be affected by nearby objects. But we don't want those nearby objects to be affected by it. So, in order to do this, we're going to create shaders. One with ambient occlusion, and one with no ambient occlusion. And they'll be self-illuminated with no lighting, no exposure control, no final gather. And none of the bells and whistles. No render elements, and nothing. And doing it this way, is going to take a little bit of setup.

But it's going to render much faster, and we will actually be able to control the process, which of course is very important. All right, so the first thing we'll do is turn off all the lights, go into Tools> Light Lister, and switch all of those lights off. Then we'll want to go and turn off our exposure control under Rendering> Exposure Control. And just make it inactive by switching it off. Now, we need to hide some of our objects. So, we'll go into the Manage Layers dialogue, and hide the Glass layer.

Also hide the Hands and Markers, because, those are not significant to the ambient occlusion. Now, we'll go into the Material Editor. And we want to create a new material. Just a standard one. We don't need any fancy arch and design. Let's get this out of the way. Just a standard 3ds Max material. Here it is, standard. Just drag that over. Double-click on it, and we'll call it AO Self Illume. We can set the diffuse amount to black. It's actually not going to render, just set that down.

Turn the self-illumination color switch on. Which means that the self-illumination will be driven by a external map, and that will be our ambient occlusion node that we created before. So we're going to make that connection. So we'll, take this ambient occlusion node and connect it to self-illumination. And you can see we have a little m there now. Now double-click on that ambient occlusion node, and set its bright color to white. Absolute white. Now we built that material, and we want to assign it to the watch body.

So, select that layer, and then click to select the objects in the layer. Double-click the shader, the material here. And then assign it. And those objects turn black. So you've done that one. Now, we also need to make a material that does not have ambient occlusion. So, let's duplicate this one. Hold down Shift and drag to make it duplicate. And break this connection, to the second one. Delete that. Double-click on this, and we'll call it, self illum. And we want its self-illumination to be white.

So we can click on that, and set that to be 100% white. 255. And we want to assign that to the back, and the wristband, so select the back, Ctrl+Select the wristband layers, then select the highlighted objects, and then with this material, selected In the material editor, assign material to selection. Okay, so we've made one material that has ambient occlusion, and assigned that to the watch face objects, and another one that has no ambient occlusion, but is fully self-illuminated.

And assign that to all the other visible objects. Okay, cool. Now we're ready to go into our render setup. And we want to do a lot of stuff in here. First of all, in Global Illumination, we want to turn off Final Gather. Then we want to go into our Render Elements and turn all of these off, because we don't want to re-render these. So we Shift+Select all of those, and turn off the Enable switch, and they'll all get turned off. Then in the Comment tab, we're not going to render out to a file through this method. We're just going to do it interactively. So we'll turn off Save File. Okay, and then do the rendering.

Okay, that looks pretty good. That's exactly the result that we need, which is that the watch face objects are all being affected by each other, and also by nearby objects. But, the nearby objects are not being affected at all. We don't need to apply ambient occlusion to the wrist band or any of this other stuff. We're now we're ready to store this image on disk. Click on the Save Image button, and we'll save this as studio_lighting_AO. And when we click Save, we should get the dialog that asks us what options we want for opening XR.

And in this case, we want the type to be RGB. We don't want to store the alpha channel in this case. That would just complicate things. So we're going to have no alpha channel in this. Click OK. That was a bit of an involved process. We had to create special custom shaders. We had to turn off all bells and whistles, but this is the only way we can control ambient occlusion. In order to mask objects, in order to make sure that we can control all the parameters, like the spread and the falloff.

Show transcript

This video is part of

Image for Creating Product Shots in 3ds Max
Creating Product Shots in 3ds Max

42 video lessons · 821 viewers

Aaron F. Ross
Author

 
Expand all | Collapse all
  1. 5m 50s
    1. Welcome
      1m 1s
    2. Using the exercise files
      4m 49s
  2. 32m 32s
    1. Setting the Customize UI and Defaults Switcher
      1m 43s
    2. Choosing units and grid options
      1m 13s
    3. Importing a CAD file
      5m 12s
    4. Managing the scene hierarchy
      7m 46s
    5. Managing display layers
      3m 52s
    6. Working with Body objects
      2m 53s
    7. Modeling an environment sphere
      4m 17s
    8. Creating a camera
      2m 44s
    9. Framing the shot
      2m 52s
  3. 16m 46s
    1. Creating mental ray area spot lights
      4m 31s
    2. Creating photometric spot lights
      5m 9s
    3. Setting exposure for studio lighting
      3m 9s
    4. Controlling Final Gather
      3m 57s
  4. 1h 1m
    1. Creating Arch & Design materials
      7m 26s
    2. Creating an environment material
      6m 14s
    3. Enabling self-illumination
      5m 33s
    4. Applying procedural textures
      7m 20s
    5. Working with reflectivity
      7m 10s
    6. Creating a metal material
      4m 33s
    7. Adjusting highlights
      5m 4s
    8. Varying highlights with a bump map
      6m 43s
    9. Working with transparency
      4m 44s
    10. Adding ambient-occlusion nodes
      6m 40s
  5. 37m 47s
    1. Understanding image-based lighting
      2m 42s
    2. Creating a skylight
      2m 10s
    3. Adding a spherical environment map
      2m 51s
    4. Controlling bitmap coordinates
      4m 5s
    5. Setting exposure for image-based lighting
      7m 36s
    6. Adjusting materials
      5m 38s
    7. Modeling environment geometry
      5m 42s
    8. Self-illuminated image-based lighting
      7m 3s
  6. 50m 6s
    1. Controlling mental ray Sampling Quality
      5m 18s
    2. Rendering to the high-dynamic-range EXR format
      5m 52s
    3. Defining After Effects color settings
      4m 0s
    4. Adjusting the image
      10m 4s
    5. Setting up render elements
      7m 51s
    6. Creating ambient-occlusion materials
      6m 9s
    7. Layering specularity and reflections
      3m 47s
    8. Adding all render-element layers
      7m 5s
  7. 49s
    1. Goodbye
      49s

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

Are you sure you want to delete this note?

No

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.