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

Rendering Exteriors in 3ds Max

From: Rendering Exteriors in 3ds Max

Video: Adding depth of field

One of the really great things about working in The reason we do this is that the order is typically RGB.

Adding depth of field

One of the really great things about working in a post effects and composing program like Nuke is that we can add on things like depth of field and glow after the render is done in 3ds Max. This may sound fairly small, but it's really a giant thing. Here's why. If we render out depth of field in the camera in the 3ds Max either through mental ray or by using the multi pass effect in the camera, that depth of field is baked in. It is part of that image and we can't take out the blur easily. It's also a longer render time.

We may see a doubling or tripling of our render time to get depth of field going. And occasionally, this is the choice we make when the depth of field needs to be rendered in the camera. But if we have the choice to do it in pose, it makes it so easy to simply push around where the focal point is, and how much blur we have. It also allows us in a composite shot then, to match the depth of field to our composited CG elements into a real background plate. Here's how I make this work, and I'll start out on the daylight image. I've got my depth pass.

It's a targa that rendered out as one of my render elements. It's also part of the mass EXR, and so I have a couple of different places I can get this from. In this depth targa, I've got white in the foreground, tapering to a medium grey in the background. In the mask EXR and I'll press one to show it after I've clicked on it. I have got that depth as one of the layers. When we render out EXRs, we can see in here. Dropping down under RGBA, that we've got depth. It's up to you where you would like to use it. Either taking the depth from the EXR or taking the depth luminance over into a depth and a flow.

We can use it in both ways and to have that flexibility is the real key. I'll start out then, by copying that depth in. Because it's in a different image than my main flow. I'll pick my grade two and press one to show it. I'll make sure in my viewer that I'm showing the RGB alpha, and now I'm going to get the depth in. I'll use my depth Targa, selecting it and pressing. K for copy. In a copy node, again it's a over b, and I'll make the b in the copy node, my grade.

With a copy selected, I'll press one, and at the moment there's no change. What I'll do then, is copy in the copy channels RGBA red two depth.z. The reason we do this is that the order is typically RGB. So it's customary when your dealing with an imagine that is a grey scale or just luminous to take the first channel. You could also take green or blue if you wanted but usually the first one work just fine. What we're saying then is copy that red to the apparent Z-depth in the scene so we can the field on it.

Now get the depth on. With my copy selected, I'll right click and choose filter and ZD focus down at the bottom. In the ZD focus note, we've got an incoming image and a filter. And the filter is there if we need a Bokeh blur. If we've got bright points or specular highlights that need to blur out into hexagons, for example, other other shapes. Because I want a fairly wide depth on this, I'm not going to see that shallow focus that gives me a Bokeh blur. In the depth then. Making sure it's showing by pressing one. I've got a focal point, and I'm going to layout or organize my nodes, just a little bit, so I can get to things a little easier.

And then make that viewport a little bigger. Here's what I'll do. I'll pick all of the nodes in this particular nodes in this particular flow. Picking one, holding shift, and picking another. And I'll press L for layout, then I'll take that newly organized flow and slide it over. I'll do the same on my other side, again selecting all the pieces except for my viewer and pressing L for layout. I'll pull this second flow over, and now I've got a little more organization in my node graph. Now in that ZD focus. And I'll slide the timeline down to get a little more room here.

I can pull around the focal point placing it where I'd like to focus in on the image and updates in here, pushing that focus to where I specify. In this case I'm focusing on that railing. And we can see in here that it's defocusing by the back block wall. Here's what's going on. In the ZD focus note, we're working by the straight depth in here as oppose to using different math. And we have different ways of dealing with it. What this lets us do and we can see the tool tip on it, is specify how that distance was created.

Far equals negative zero for MIA for example or for running in Renderman or something similar. Then in here, we can say where is the focus plane, and finally, what is the depth of field. Theoretically, depth of field is zero, meaning one point is in focus, and everything else blurs out from there. I'm going to crank up my depth of field a little bit though, so I have a focal plane thickness, or a zone that's in focus. With depth of field up, then, we can alter how much blur we have. There's a size, how much blur we'd like, and a maximum, so at maximum blur how much blur is there? The maximum keeps our image from just blurring out into mush in the deep background, for example.

What I'll do is take that size down to two and the maximum to four. So, most everything is basically in focus, although we're getting a little bit of blur by the back of the roof or the block wall. Most of the house is pretty clean. I'm after the design here or to show it off, so I don't want a shallow focus where everything else just fuzzes out, but instead I want a very deep depth on it where most everything is. Pretty well clear. We can push this around as we need.

And, if you like, we can start to play around with gamma correction and bloom. Really, blowing out an image or even brining in a filter if you're dealing in a Bokeh blur. I'm going to leave this depth as it is and put the same depth of field onto my other image, my dusk shot. In the node graph. I'm going to take my depth of field, my ZD focus and my copy nodes and copy over that depth. With both selected, I'll press Ctrl+C and Ctrl+V. We could probably make it work in one flow, but for clarity here in the node graph to keep the flow separate, I'll copy and paste.

The b node in this new copy will be my color correction, the end of that flow. The a then will come from my existing z depth image. I'll pull it on, select that ZD focus two and press one to show it,. I'll pull the timeline down, and there's that depth of field. Again, focusing roughly around the front door. We see the de-focus, right here on the back roof and the black rock wall. Now that I've implied depth of field, I'm ready to look at glow. And also, putting a proper sky behind this.

Show transcript

This video is part of

Image for Rendering Exteriors in 3ds Max
Rendering Exteriors in 3ds Max

45 video lessons · 1574 viewers

Adam Crespi

Expand all | Collapse all
  1. 3m 52s
    1. Welcome
    2. What you should know before watching this course
    3. Using the exercise files
      2m 33s
  2. 43m 37s
    1. Assessing the design possibilities
      4m 3s
    2. Forming paint colors and sheen levels
      7m 15s
    3. Making brick and concrete sparkle
      4m 7s
    4. Adding subtle detail to wood and siding
      8m 50s
    5. Polishing metals
      8m 13s
    6. Adding luster to glasses
      4m 33s
    7. Converting foliage materials for mental ray
      6m 36s
  3. 25m 9s
    1. Creating the Daylight system and positioning the sun
      4m 23s
    2. Softening the sun and shadows
      4m 46s
    3. Adjusting the Photographic Exposure for stylized imagery
      5m 56s
    4. Lighting using HDR imagery in the Daylight system
      5m 48s
    5. Adding extra lights for glossy surfaces
      4m 16s
  4. 26m 30s
    1. Using the Daylight system for sunsets
      3m 18s
    2. Casting light from exterior fixtures
      8m 13s
    3. Lighting interior spaces for night
      7m 14s
    4. Adjusting luminous and lit surfaces
      4m 7s
    5. Fine-tuning the Photographic Exposure
      3m 38s
  5. 20m 35s
    1. Rendering and optimizing rendering
      4m 49s
    2. Fine-tuning Final Gather for speed
      4m 49s
    3. Pushing Global Illumination values for visual impact
      4m 47s
    4. Stylizing the bounced lighting
      6m 10s
  6. 32m 24s
    1. Creating an ambient-occlusion override material
      5m 56s
    2. Creating an ambient-occlusion rendering pass with custom materials
      8m 33s
    3. Lighting a custom specular pass for sparkle
      7m 15s
    4. Setting up custom masks for compositing flexibility
      6m 51s
    5. Rendering the image passes
      3m 49s
  7. 39m 12s
    1. Importing the imagery and arranging the layers
      3m 28s
    2. Setting blending modes and adjusting opacity
      3m 13s
    3. Fine-tuning color using rendered masks
      5m 57s
    4. Adding depth of field
      6m 47s
    5. Putting on the final polish with glinting highlights and glow
      5m 1s
    6. Adding quick clouds and sky
      10m 14s
    7. Rendering the composited images
      4m 32s
  8. 31m 25s
    1. Importing the imagery and arranging the layers
      2m 49s
    2. Setting blending modes and adjusting opacity
      3m 28s
    3. Fine-tuning color using rendered masks
      5m 47s
    4. Adding depth of field
      5m 19s
    5. Putting on the final polish with glinting highlights and glow
      3m 56s
    6. Adding quick clouds and sky
      6m 9s
    7. Rendering the composited animation
      3m 15s
    8. Rendered movies
  9. 42s
    1. Next steps

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


You have completed Rendering Exteriors in 3ds Max.

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

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.